Hide Comments
Hide Comments

Comments (0)

Controls the appearance of the built-in legend of a chart panel. The legend is the box in chart graphics where the points of a chart are labeled or all the charts being displayed are labeled. The Legend has properties including    BoxSize,    Lines, and    LegendStyle. Use the    Visible property to hide or show the Legend.

Usually, the legend dynamically chooses and updates the Lines property to determine what to show. By using the    OnGetLegendStrings event, you can add lines to the top of the legend. By using the    Fixed property, you can update the Lines and the legend will not overwrite them.

alert_noteTip

Use the stand-alone legend controls (TRSLegendListBox and TRSChartLegendBox) for more control and visual appeal than the built-in legend.

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  property Legend: TRSChartLegend read FLegend write SetLegend;
 

Property Value

Type: TRSChartLegend

expandingExamples

The following code shows how to set the Lines and then use the Fixed property to prevent the legend from overwriting it:

Delphi

begin
   RSChartPanel1.Legend.Lines.Add('One');
   RSChartPanel1.Legend.Lines.Add('Two');
   RSChartPanel1.Legend.Lines.Add('Three');
   RSChartPanel1.Legend.Lines.Add('Four');
   RSChartPanel1.Fixed := True;
 end;

expandingSee Also

Comments (0)

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