Automaticly create series from a dataset (DXE2)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
gpraet
Newbie
Newbie
Posts: 2
Joined: Thu Jan 01, 1970 12:00 am

Automaticly create series from a dataset (DXE2)

Post by gpraet » Mon Mar 26, 2012 2:44 pm

I have a dataset with the fields: supplier(id), historydate and price. I want a chart that displays all the suppliers (in diffirent color) for that article, with the price of that article (Y) and that show these for the past year (Labels).
What's the best/fastest way to automaticly/dynamicly create the series (one for each supplier, suppliers depend from article to article) from one dataset? Can this be done with LiveBindings? Or is there another way?
I'm using Delphi XE2 and I use the TeeChart Standard v2011.03.32815 32bit VCL.

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

Re: Automaticly create series from a dataset (DXE2)

Post by Narcís » Mon Mar 26, 2012 2:56 pm

Hi gpraet,

The best option here probably is DBCrossTabe source. It's only included with TeeChart Pro versions though. You can download the fully functional evaluation version here. It includes tutorials and examples about this feature. You'll find differences between TeeChart versions here.
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