FR and TeeChart, chart series in run-time

edited 12:22AM in FastReport 3.0
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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.