Holes in data causes drawing problems for Bar Charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MikeD
Newbie
Newbie
Posts: 30
Joined: Mon Jun 25, 2007 12:00 am

Holes in data causes drawing problems for Bar Charts

Post by MikeD » Wed Feb 20, 2008 4:00 pm

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.

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

Post by Yeray » Thu Feb 21, 2008 10:24 am

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);
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

Post Reply