locked
Chart area background grid color RRS feed

  • Question

  • I'd like to know how to change the color of the grid lines in the ChartArea.  By default, they're black like this:


    I'd like for it to be less obtrusive, eg. light gray like this:
    Friday, October 16, 2009 5:43 PM

Answers

  • I figured it out.


            chart.ChartAreas["ChartArea1"].AxisX.MajorGrid.LineColor = Color.Gainsboro;
            chart.ChartAreas["ChartArea1"].AxisY.MajorGrid.LineColor = Color.Gainsboro;
    • Marked as answer by im1dermike Friday, October 16, 2009 7:40 PM
    Friday, October 16, 2009 7:40 PM

All replies

  • I figured it out.


            chart.ChartAreas["ChartArea1"].AxisX.MajorGrid.LineColor = Color.Gainsboro;
            chart.ChartAreas["ChartArea1"].AxisY.MajorGrid.LineColor = Color.Gainsboro;
    • Marked as answer by im1dermike Friday, October 16, 2009 7:40 PM
    Friday, October 16, 2009 7:40 PM
  • thnx very much man...
    Saturday, July 9, 2011 7:05 AM