Provides a stand-alone legend paintbox-like component for a FMX.RS.ChartPanel.TRSChartPanel or FMX.RS.ChartPanel.TRSCustomChart. This legend may be placed anywhere a normal control can be placed in your form.
Use the Panel property to select the TRSChartPanel to display charts or chart values from. The Chart property can be used to select the specific chart to display its values. The
Legend property controls what is displayed in the legend.
The TRSLegendListBox component implements the FMX.RS.ChartPanel.IChartPanelListener interface
Namespace: FMX.RS.ChartLegends
TPaintBox
FMX.RS.ChartLegends.TRSChartLegendBox
|
|
Name
|
Description
|
|
Chart
|
Specifies the chart that the legend should display values from. Note that this property will be set automatically to the active chart of a chart panel if the Panel property is set.
|
|
Legend
|
Defines the properties of the legend to display
|
|
NeedsUpdate
|
Represents property NeedsUpdate.
|
|
Panel
|
Specifies the TRSChartPanel that the legend should display charts and/or values for. Set the Panel property if you want the legend to display a legend similar to the Legend of the TRSChartPanel. In this case, the legend will display all the chart names if there is more than one chart attached to the panel. However, if there is only one chart attached to the panel, the legend would display the chart's values. To only display one chart's values, leave the Panel property blank and set the Chart property.
|
Top
|
More than one TRSChartLegendBox may be used at a time.
|
To display a list of all the charts of a chart panel:
• | Set the Panel property of the TRSChartLegendBox to the TRSChartPanel |
• | Change the LegendStyle to lsChartNames. If you leave the LegendStyle as lsAutomatic, the legend will display all the chart names if there is more than one chart attached to the panel. However, if there is only one chart attached to the panel, the legend would display the chart's values. Use lsChartNames to force the legend to always display only the charts attached to the chart panel. |
|
To display one chart's values:
• | Drop a chart on a form. Note that the chart does not have to be visible or attached to a chart panel to display the values of the chart in the legend. |
• | Set the Chart property of the TRSChartLegendBox to the chart
|
|
|