Page 1 of 1

Grid lines

Posted: Thu May 03, 2007 7:14 pm
by 8739068
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?

Posted: Fri May 04, 2007 7:31 am
by narcis
Hi Mike,

Try using this:

Code: Select all

			tChart1.Axes.Left.Grid.Visible = false;
			tChart1.Axes.Bottom.Grid.Visible = false;