DBTeeChart - Changing chart type in code
I am trying to find a way to change the chart type between Bar or Pie based
on user selection on a Delphi form before the report prints. I cannot find
the property to access this. If anyone has any ideas, I would apprecate it.
RB 11
Delphi 2009
Teechart std 8.03.11068
Thanks,
Dave Lawnicki
on user selection on a Delphi form before the report prints. I cannot find
the property to access this. If anyone has any ideas, I would apprecate it.
RB 11
Delphi 2009
Teechart std 8.03.11068
Thanks,
Dave Lawnicki
This discussion has been closed.
Comments
The chart component in ReportBuilder is simply a wrapper around the TChart
component. The Bar chart uses the TBarSeries object and the Pie chart uses
the TPieSeries. Each one of these would need to be created and added to the
Series array of the chart object.
Another option would be to create both series manually in the chart editor
then perhaps toggle the visibility of each one based on the user input. See
the following article on creating charts in code.
http://www.digital-metaphors.com/rbWiki/RCL/Chart/How_To...Create_a_Chart_in_Code
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com