Prodhomme Posted June 10, 2013 Report Share Posted June 10, 2013 Hi! I have a line chart, and I would like its plot area to fill the total area of my chart, as if I set Axis.Visibility=Collapsed. My problem is that, if I do so, the CustomGridLines defined for this axis don't appear anymore. Is there a way to do that? Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 10, 2013 Report Share Posted June 10, 2013 To hide the axis labels (and reduce space occupied by it) you can try the following code chart1.PlotArea.Margin = new Thickness(0, 0, 0, 0); chart1.AxisY.Labels.Visibility = AxisLabelVisibility.Collapsed; chart1.AxisY.Grids.Major.TickMark = TickMark.None; chart1.AxisY.Grids.Major.TickSize = 0; chart1.AxisY.Grids.Minor.TickMark = TickMark.None; chart1.AxisY.Grids.Minor.TickSize = 0; chart1.AxisY.Separation = 0; Note that there will be a small space (about 2-3 pixels). In our next 8.1 build this should be reduced. If you are also hiding the X axis you could remove the chart's outside border so that you do not get the "double border" effect. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Prodhomme Posted June 11, 2013 Author Report Share Posted June 11, 2013 Thanks JuanC, The 2-3 pixels you are talking about are still bothering me... Can you tell me when the next build will be released? Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 13, 2013 Report Share Posted June 13, 2013 We uploaded a new hotfix containing this fix (and a couple of other fixes). Hotfixes do not have the same level of testing as service packs so they can be provided in a more agile manner.JuanC Quote Link to comment Share on other sites More sharing options...
Prodhomme Posted June 13, 2013 Author Report Share Posted June 13, 2013 Thanks, but I didn' found where I can download hotfixes, can you please give me a link? 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.