Hide Comments
Hide Comments

Comments (0)

Returns the embedded sub-chart for the value. Use the SubChart property like any other chart in the component suite (e.g., add values, set properties, etc). You may need to cast the SubChart to the specific chart type to access all the properties (e.g., FMX.RS.Charts.TRSPieChart , TRSBarChart, etc). To set the SubChart, assign a chart object to the property.

The TRSChartInChartValue class will ensure freeing the SubChart if its Owner is nil.
 

Namespace: FMX.RS.Charts

expandingSyntax

Delphi

public
  property SubChart: TRSCustomChart read FSubChart write SetSubChart;
 

Property Value

Type: TRSCustomChart

expandingExamples

The following example creates three sub-charts, two in which the SubChart is managed by the TRSChartInChartValue class and one in which the SubChart is freed by its Owner:

Delphi

begin
   // Chart In Chart will ensure freeing the pie chart
   RSChartInChart1.Values.Add.SubChart := TRSPieChart.Create(nil);
   // Chart In Chart will ensure freeing the bar chart
   RSChartInChart1.Values.Add.SubChartType := ctBarChart;
   // Form will free the line chart
   RSChartInChart1.Values.Add.SubChart := TRSLineChart.Create(Self);
 end;

expandingSee Also

Comments (0)

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