Is there a way to show the axes as a line while not drawing the grid? (right now I have a white surface and white gridlines in the custom theme, but with that the axes are now just the ticks)
To clarify the Y-Axis is a middle axis so a border would not work.
- Gingelmaier asked 4 years ago
- You must login to post comments
Hi there,
You can hide the gridline by setting properties Axis.DrawMajorGridlines, Axis.DrawMinorGridlines and Axis.DrawAxisBands false.
See the example in our WPF Chart Examples Suite titled ‘Modify Axis Behaviour‘ for more properties that the axis supports.
Let me know if this helps!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
- You must login to post comments
Hi again,
sadly thats not exactly what I was looking for. I attached three screenshots to explain better what I meant in my question.(named with grid, without grid, what I need).
The goal is to have no grid over the chart but two lines for the x and y axes for better visiblity.
- Gingelmaier answered 4 years ago
-
Got it, understand. Well the Axis also has a border property. Try setting Axis.BorderBrush, BorderThickness to colour just the axis line. An axis Border can be one-sided line if you set BorderThickness to ‘0,0,1,0’ For a demo, see here https://www.scichart.com/example/wpf-chart-example-multiple-yaxis/.
- You must login to post comments
Please login first to submit.