SubCharts DataSources

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

SubCharts DataSources

Post by madup » Thu Nov 13, 2008 1:02 am

Is it possible to have a dataset as the datasource for a subchart.
In the charteditor at design time it is not a choice.
If it is possible to add at runtime, How?
Mike

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 13, 2008 8:40 am

Hi Mike,

That's not possible for now as you can see in the discussion here. At runtime you could do as shown in Tutorial 8 - Database access. You'll find tutorials at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Post by madup » Thu Nov 13, 2008 3:14 pm

Hi Narcis
Thanks for the reply.

Reviewing the tutorial, I create the SubChart, (ChartTool2) , with a Chart as Chart1, a FastLineSeries as Series1. My problem now is the syntax to alter/set these parameters.
ChartTool2.Chart[0]. ???????
Now I'm lost. Sample syntax would be ?

Regards
Mike

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 13, 2008 3:28 pm

Hi Mike,

You should use ChartTool1.Charts[0].Chart, for example:

Code: Select all

  ChartTool1.Charts[0].Chart.Axes.Left.SetMinMax(0,10);
  ChartTool1.Charts[0].Chart[0].Add(5);
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply