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?
Grid lines
-
- Advanced
- Posts: 192
- Joined: Thu Feb 01, 2007 12:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Mike,
Try using this:
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 |
Instructions - How to post in this forum |