Remove label from data point

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Vestas.com, Plant IT developer
Newbie
Newbie
Posts: 9
Joined: Thu Jan 11, 2007 12:00 am

Remove label from data point

Post by Vestas.com, Plant IT developer » Wed Oct 22, 2008 11:01 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 22, 2008 11:24 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Vestas.com, Plant IT developer
Newbie
Newbie
Posts: 9
Joined: Thu Jan 11, 2007 12:00 am

Post by Vestas.com, Plant IT developer » Wed Oct 22, 2008 11:34 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 22, 2008 11:39 am

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("");
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply