FR and TeeChart, chart series in run-time
Hi,
I would like to create chart series in runtime but I do not know how to do this. I can create different types of TChartSeries (TBarSeries, TLineSeries, ...) but I can not add created series to a chart. There are two ways how to do it: by assigning ParentChart property of TChartSeries or by calling AddSeries method of the chart.
The method is derived from class TCustomAxisPanel and the property ParentChart is of the same type so I think this is the problem as the class TCustomAxisPanel is not known as RTTI information. In the file fs_ichartrtti.pas there is the class TCustomChart derived from TWinControl, not from TCustomAxisPanel. So would it be possible to add TCustomAxisPanel support to RTTI information ? Or any other help ?
I have report editor and all the reports I must create using the editor, so any help about creating reports in code and assigning teemetafile pictures is not appropriate for me. I must do it using the scripting language.
Thank you.
I would like to create chart series in runtime but I do not know how to do this. I can create different types of TChartSeries (TBarSeries, TLineSeries, ...) but I can not add created series to a chart. There are two ways how to do it: by assigning ParentChart property of TChartSeries or by calling AddSeries method of the chart.
The method is derived from class TCustomAxisPanel and the property ParentChart is of the same type so I think this is the problem as the class TCustomAxisPanel is not known as RTTI information. In the file fs_ichartrtti.pas there is the class TCustomChart derived from TWinControl, not from TCustomAxisPanel. So would it be possible to add TCustomAxisPanel support to RTTI information ? Or any other help ?
I have report editor and all the reports I must create using the editor, so any help about creating reports in code and assigning teemetafile pictures is not appropriate for me. I must do it using the scripting language.
Thank you.