Grid lines

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike Jones
Advanced
Posts: 192
Joined: Thu Feb 01, 2007 12:00 am
Contact:

Grid lines

Post by Mike Jones » Thu May 03, 2007 7:14 pm

I am wanting to turn off the default dotted lines that extend horizontally and vertically across a chart displaying a Line series.

I found if I open the Editor and go to Axes Tab, Select "Left Axis" from the list on the left, then click on the Ticks Tab, click on the Grid button and it opens up a Border Editor dialog. If I uncheck the Visible checkbox the line going horizontal turn off. That is what I am trying to accomplish in code.

I thought the following would accomplish this

tchart.Axis.Left.Ticks.Visible = false;

This does not seem to work.

Can someone point me to the correct way to accomplish what I can do in the Editor that comes with the TeeChart control for .NET?

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

Post by Narcís » Fri May 04, 2007 7:31 am

Hi Mike,

Try using this:

Code: Select all

			tChart1.Axes.Left.Grid.Visible = false;
			tChart1.Axes.Bottom.Grid.Visible = false;
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