How to suppress empty date labels on bar charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jon bondy
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am

How to suppress empty date labels on bar charts

Post by jon bondy » Thu Mar 07, 2013 5:37 pm

I have a bar graph where each bar represents a value for a specific date. Since the data does not occur equally spaced in time, I am using an incrementing integer for the X value, and putting the date in as the label value. Some bars do not have a date (the label is empty). The graph shows empty label values as label boxes containing "0", rather than hiding the label boxes for those bars entirely (which would make sense, since the labels are empty, not "0"). Is there any way to instruct TeeChart to remove those unnecessary and confusing label boxes?

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

Re: How to suppress empty date labels on bar charts

Post by Yeray » Fri Mar 08, 2013 5:09 pm

Hi,

A simple example project would be more clarifying, but a workaround to this will probably be to assign an empty string to the labels that contain a '0' at OnGetAxisLabel event.
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

jon bondy
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am

Re: How to suppress empty date labels on bar charts

Post by jon bondy » Fri Mar 08, 2013 7:03 pm

I thought I had made it clear that I had been assigning an empty string, but that TeeChart was displaying a "0" instead. It turns out that if you assign a string with a <space> in it, then TeeChart displays that <space>. If you remove the borders, that <space> then becomes invisible.

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

Re: How to suppress empty date labels on bar charts

Post by Yeray » Mon Mar 11, 2013 2:16 pm

Hello,

Could you please arrange a simple example project we can run as-is to reproduce the situation here?

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