Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Chart control - line color

How do I change the color of the horizonal and vertical lines? I'd like to make them a little lighter, yet leave the X and Y axis black, probably.

alt text

Edited:

indyfromoz suggestion resulted in this: alt text

The effect I want is this: alt text

(Subtler horiz and vertical lines, maybe even no vertical lines.)

like image 834
Chad Avatar asked Oct 28 '10 06:10

Chad


1 Answers

VB

Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.FromArgb(&H50, &H9C, &H9A, &H95)
Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.FromArgb(&H50, &H9C, &H9A, &H95)

C#

Chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.FromArgb(50, 200, 200, 200);
Chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.FromArgb(50, 200, 200, 200);
like image 196
Chad Avatar answered Oct 14 '22 12:10

Chad