What I need to achieve is to allow the user to change the thickness of the axis line for example, the font size of the axis legend, the background color, the grid lines visibility, etc.
My first idea would be to create a ViewModel with all these properties and bind them to the plot, so that when the user changes them via some other control like a slider or a textbox, they get updated in the plot.
Is that the right way to do it ?
- OscarFonseca asked 5 years ago
- last edited 5 years ago
- You must login to post comments
Well you could bind properties in the axis to a ViewModel yes.
- Axis.BorderThickness changes the thickness of the axis line
- Axis.FontSize changes the text font size
- Axis.DrawMajorGridLines changes visibility of major gridlines etc…
We have an example which allows some setting & changing of axis properties here called WPF Chart Modify Axis Properties.
Take a look, let me know if it helps,
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Please login first to submit.