Stacked TAreaSeries does not work well
Posted: Thu Oct 27, 2005 7:19 pm
I have a chart with a number of TAreaSeries that are stacked--but try as I might, I can not get the chart to look right.
The key is that not all X points are represented--nor can they be. For example, I am monitoring contributions to an account. Accounts may or may not have contributions on given dates, so I use:
Series.AddXY(Date, YearToDateContributions);
I do the same for payouts of the account:
Series.AddXY(Date, YearToDateDistributions);
Not all accounts have contributions/distributions every year.
Doing this causes the chart to go haywire.
I've got a demo for this but thought I would ask before posting.
Any suggestions for achieving a good looking chart under these conditions?
Thanks
Ed Dressel
The key is that not all X points are represented--nor can they be. For example, I am monitoring contributions to an account. Accounts may or may not have contributions on given dates, so I use:
Series.AddXY(Date, YearToDateContributions);
I do the same for payouts of the account:
Series.AddXY(Date, YearToDateDistributions);
Not all accounts have contributions/distributions every year.
Doing this causes the chart to go haywire.
I've got a demo for this but thought I would ask before posting.
Any suggestions for achieving a good looking chart under these conditions?
Thanks
Ed Dressel