Stacking data using one dataset

TeeChart for ActiveX, COM and ASP
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Stacking data using one dataset

Post by Thomas Klingler » Wed Jul 13, 2005 10:26 pm

Is it possible to stack data using only one dataset? For example, stacking values by month:

Month(X) Value (Y)

Jan 10
Jan 3
Feb 20
Feb 8

When I try to stack them, they simply overlap.

Thanks

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 Jul 14, 2005 9:51 am

Hi ungos,

Could you please send us an example we can run "as-is" or some code to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Thanks in advance.
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

Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Post by Thomas Klingler » Thu Jul 14, 2005 3:19 pm

Hi Narcis,

I have posted a simple example which reproduces the problem. Thank you for your quick response.

Richard

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

Post by Narcís » Fri Jul 15, 2005 7:46 am

Hi Richard,

Thank you very much for the example. To get what you request you should use:

Code: Select all

TChart1.Series(0).asBar.MultiBar = mbStacked
What you have in the .tee file you sent is the result of using:

Code: Select all

TChart1.Series(0).asBar.MultiBar = mbSelfStack
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

Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Post by Thomas Klingler » Fri Jul 15, 2005 4:36 pm

Hi Narcis,

Thanks for your suggestion. I made that change and found that it was not exactly what I am looking for. I posted two images on the newsgroup. One image of what I am currently getting and another of a prototype of what I would like to make in TeeChart.

Thanks again,

Richard

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 18, 2005 3:34 pm

Hi Richard,

to do this you will have to use one Serie for each month.

Post Reply