TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
andyb
- Newbie
- Posts: 8
- Joined: Tue Feb 01, 2005 5:00 am
Post
by andyb » Fri Mar 17, 2006 1:05 pm
Hi,
I want to have the grid features, and be able to draw a line at a value, but i don't want to be able to see the axis labels (values). I think that this means I can't use "tChart1->Axes->Bottom->Labels->Visible = false;", because that removes the grid, and when i use the same on the left axis, it stops colorLine from working
Code: Select all
tChart1->Aspect->View3D = false;
tChart1->Axes->Bottom->Automatic = false;
tChart1->Axes->Bottom->Inverted = true;
tChart1->Axes->Bottom->Increment = 60;
// can't use...
// tChart1->Axes->Bottom->Labels->Visible = false;
Could you help?
Cheers,
Andy
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Mon Mar 20, 2006 8:59 am
Hi Andy,
Then you can try with GetAxisLabel event and set the LabelText to an empty string, i.e.:
Code: Select all
private void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
{
if (sender=tChart1.Axes.Bottom)
{
e.LabelText = "";
}
}