Page 1 of 1

Remove label from data point

Posted: Wed Oct 22, 2008 11:01 am
by 9793833
I can't seem to remove a label from a single data value in a chart, even though the data is null and not drawn on the chart is still produces a label with "0" in it. This label is then shown if I hover over another datapoint from another series. How can I avoid drawing lables for a single point?
I'm using version 2.0.2652.22.325

Posted: Wed Oct 22, 2008 11:24 am
by narcis
Hello,

You can try using this:

Code: Select all

			tChart1.Axes.Bottom.Labels.Visible = false;
			tChart1.Axes.Left.Labels.Visible = false;
Also notice there are much newer v2 versions available at the client download area.

Posted: Wed Oct 22, 2008 11:34 am
by 9793833
I will try and get the latest version and see how it performs. In the meantime:

What I want to achieve is not to hide all labels on the chart, but just the labels on the points where there are no data values. Can this be done?

Posted: Wed Oct 22, 2008 11:39 am
by narcis
Hello,

In that case the easiest solution would be populating series with null values and empty string labels, for example:

Code: Select all

line1.Add("");