Group by Label

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
RichardS
Newbie
Newbie
Posts: 8
Joined: Mon Mar 30, 2009 12:00 am

Group by Label

Post by RichardS » Wed Sep 01, 2010 10:46 am

Hello - this must have come up before but my searches aren't finding an answer.

I have a set of data in the form

Company 1, 500
Company 2, 250
Company 1, 300
Company 3, 125
Company 2, 400
Company 3, 200
etc

If I add these to a series using SomeBarSeries.Add(Value, CompanyName) I end up with a point per entry - I actually want them aggregated (grouped) by their Label. So all the values for each company get added together, and I get one bar per company.

The order is random. Is there a quick way that I can set a Series to automatically do this, or do I need to group the data myself and then add it?

Thanks
Richard

RichardS
Newbie
Newbie
Posts: 8
Joined: Mon Mar 30, 2009 12:00 am

Re: Group by Label

Post by RichardS » Wed Sep 01, 2010 10:48 am

(Sorry - this Delphi 7 Using TeeChart Pro 8)

RichardS
Newbie
Newbie
Posts: 8
Joined: Mon Mar 30, 2009 12:00 am

Re: Group by Label

Post by RichardS » Wed Sep 01, 2010 10:49 am

Grrr... wasn't meant to be a smiley, Tee Chart Pro v 8

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Group by Label

Post by Yeray » Wed Sep 01, 2010 2:25 pm

Hi RichardS,

I've added it to the wish list to be implemented in future releases (TV52015131).
In the meanwhile I'm afraid you'll have to do it manually.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

RichardS
Newbie
Newbie
Posts: 8
Joined: Mon Mar 30, 2009 12:00 am

Re: Group by Label

Post by RichardS » Wed Sep 01, 2010 2:42 pm

Thank you very much.

Richard

Post Reply