Page 1 of 1
Stacking data using one dataset
Posted: Wed Jul 13, 2005 10:26 pm
by 8443014
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
Posted: Thu Jul 14, 2005 9:51 am
by narcis
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.
Posted: Thu Jul 14, 2005 3:19 pm
by 8443014
Hi Narcis,
I have posted a simple example which reproduces the problem. Thank you for your quick response.
Richard
Posted: Fri Jul 15, 2005 7:46 am
by narcis
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
Posted: Fri Jul 15, 2005 4:36 pm
by 8443014
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
Posted: Mon Jul 18, 2005 3:34 pm
by Pep
Hi Richard,
to do this you will have to use one Serie for each month.