TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
rhillebrand
- Newbie
- Posts: 36
- Joined: Fri Sep 05, 2003 4:00 am
Post
by rhillebrand » Tue Mar 21, 2006 12:20 pm
Hello,
I am traying to set the color of the ticks on the bottom axis. The color is now gray and we want this to be colored black (same as color of the labels). The grid must be gray.
If we do this like so :
Code: Select all
chart.Chart.Axes.Bottom.Ticks.Length = 7;
chart.Chart.Axes.Bottom.Ticks.Color = Color.Black;
chart.Chart.Axes.Bottom.MinorTickCount = 1;
We get a black dot on the tick (with length=1 and the line will be gray), and a line (length =7) on top of the gray tick.
How can we color the ticks complete black.
Must we use Axispen / DrawingPen ?
With regards,
Roland Hillebrand
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Wed Mar 22, 2006 9:48 am
Hi Roland,
You can try using something like the code below.
Code: Select all
tChart1.Axes.Bottom.Ticks.Length = 7;
tChart1.Axes.Bottom.Ticks.Color = Color.Black;
tChart1.Axes.Bottom.MinorTicks.Color = Color.Black;
tChart1.Axes.Bottom.MinorTickCount = 1;
-
rhillebrand
- Newbie
- Posts: 36
- Joined: Fri Sep 05, 2003 4:00 am
Post
by rhillebrand » Wed Mar 22, 2006 9:55 am
Thks,
Works.
With regards,
Roland Hillebrand