Page 1 of 1

Holes in data causes drawing problems for Bar Charts

Posted: Wed Feb 20, 2008 4:00 pm
by 10545668
If the series data is missing information then the bar chart will have holes in the stacks.

For example, if you have two series and the following data:

Series 1 Series 2
# Text X Bar X Bar
1 8 1,079 8 2,908
2 10 1,918 9 4,198
3 11 1.406 10 4,286
4 12 1,835 11 4,717
5 12 4,066

The stacked bar for the 9 and 11 entries will contain gaps.

I have sent an email to the support e-mail address with a jpeg of the Data Table for the chart and the resulting chart display.

Posted: Thu Feb 21, 2008 10:24 am
by yeray
Hi MikeD,

Yes, the problem is when setting a value for an X in one series and not in the other. Then, teechart draws the first series well and the second series according to ValueIndex, not to X values as expected.

I've added it to the wish list to be investigated and fixed in further releases (TV52012840).

Note that as a workaround you could add a null point at desired place:

Code: Select all

Series1.AddNullXY(9,0);