Color of the bottomaxis (ticks)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rhillebrand
Newbie
Newbie
Posts: 36
Joined: Fri Sep 05, 2003 4:00 am

Color of the bottomaxis (ticks)

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
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;
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

rhillebrand
Newbie
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

Post Reply