Page 1 of 1

How to suppress empty date labels on bar charts

Posted: Thu Mar 07, 2013 5:37 pm
by 8437895
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?

Re: How to suppress empty date labels on bar charts

Posted: Fri Mar 08, 2013 5:09 pm
by yeray
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.

Re: How to suppress empty date labels on bar charts

Posted: Fri Mar 08, 2013 7:03 pm
by 8437895
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.

Re: How to suppress empty date labels on bar charts

Posted: Mon Mar 11, 2013 2:16 pm
by yeray
Hello,

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

Thanks in advance.