Ankur Posted March 26, 2010 Report Share Posted March 26, 2010 Hi, How to make the Grid Lines (chart.AxisX.Grids.Major) to be above the the ploted area. For eg. In an area chart the grid lines are beneath the plotted Area. Quote Link to comment Share on other sites More sharing options...
juanZ Posted March 26, 2010 Report Share Posted March 26, 2010 Hi, Mayor and Minor lines of the axis are set as this by desing and there is no property to make them to come up. However there is a class that might help you with this. The CustomGridLine class allows you to create a single line for the Axis (Y or X) and set it up. This is a snippet that might help you: CustomGridLine c1 = new CustomGridLine(100, "Upper Limit"); chart1.AxisY.CustomGridLines.Add(c1); You can also change the AxisY for AxisX. The CustomGridLine contains more proporties for styling and text. Hope this helps. Quote Link to comment Share on other sites More sharing options...
juanZ Posted March 26, 2010 Report Share Posted March 26, 2010 Also, as chart1.AxisY.CustomGridLines is a collection, you can add as many Custom Lines as you want. Quote Link to comment Share on other sites More sharing options...
Ankur Posted March 29, 2010 Author Report Share Posted March 29, 2010 Hi Juan, Thanks for the help. Quote Link to comment Share on other sites More sharing options...
juanZ Posted March 30, 2010 Report Share Posted March 30, 2010 You're welcome. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.