Change a series title with RAP
Hi there,
How can I change the title of a TChartSeries using RAP? I've tried the
following code but the compiler complains about the "Title" property of the
series.
procedure chrtDetailOnPrint;
var
myTeeChart: TppDPTeeChartControl;
mySeries: TChartSeries;
begin
myTeeChart := chrtDetail.Chart;
mySeries := myTeeChart.SeriesList[0];
mySeries.Title := 'My series title';
end;
How can I change the title of a TChartSeries using RAP? I've tried the
following code but the compiler complains about the "Title" property of the
series.
procedure chrtDetailOnPrint;
var
myTeeChart: TppDPTeeChartControl;
mySeries: TChartSeries;
begin
myTeeChart := chrtDetail.Chart;
mySeries := myTeeChart.SeriesList[0];
mySeries.Title := 'My series title';
end;
This discussion has been closed.
Comments
I do not believe the TChartSeriesList is available in native RAP. You will
probably need to create a simple pass-thru function to perform this task in
RAP. For an example of creating a pass-thru function, please see the RAP
section of the ReportBuilder Developer's Guide.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com