Hide Comments
Hide Comments

Comments (0)

Provides the chart panel the ability to draw a gradient as the background of the chart panel. If the Gradient is Visible, it completely covers the  Background of the chart panel.
 

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  property Gradient: TRSChartGradient read FGradient write SetGradient;
 

Property Value

Type: TRSChartGradient

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