Page 1 of 1

Color of the bottomaxis (ticks)

Posted: Tue Mar 21, 2006 12:20 pm
by 8120407
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

Posted: Wed Mar 22, 2006 9:48 am
by narcis
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;

Posted: Wed Mar 22, 2006 9:55 am
by 8120407
Thks,

Works.

With regards,

Roland Hillebrand