Hide Comments
Hide Comments

Comments (0)

Specifies the size (in pixels) of the area of the panel that contains the actual charts, e.g., where the charts are drawn. This is the area of the panel that does not include the  Header,  Footer, axes, etc. Read ChartRect to find the size of the chart area of the chart panel. The ChartRect will change in response to what elements of the chart panel are visible and their size.
 

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  property ChartRect: TCanvasRect read FChartRect;
 

Property Value

Type: TCanvasRect

expandingExamples

The following example uses the OnDrawingCharts event, the ChartRect (which is equivalent to ARect in this case), and the Gradient property of the chart panel to draw the gradient only in the chart rectangle area:

Delphi

procedure TForm1.RSChartPanel1DrawingCharts(Sender: TObject;
   const Canvas: TCanvas; ARect: TRect; var DoDraw: Boolean);
 begin
      RSChartPanel1.Gradient.Draw(Canvas, RSChartPanel1.ChartRect);
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb