beto-rodriguez / LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
https://livecharts.dev
MIT License
4.25k stars 552 forks source link

Axis ZeroPaint cannot be changed once set initially. #1578

Closed MajesticBevans closed 12 hours ago

MajesticBevans commented 2 weeks ago

Describe the bug ZeroPaint of Axis cannot be changed from one colour to another once the Axis has been constructed. It just disappears, as if it was set to null.

To Reproduce Create a Cartesian plot and add an Axis reference, with ZeroPaint set to any colour. Then, set the ZeroPaint to a new colour. The separator at 0 will disappear.

Expected behavior When the colour of ZeroPaint is set to a new value, the separator at 0 changes to newly set colour.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop

beto-rodriguez commented 6 days ago

Hi and thanks for the report!

The referenced commit fixes this issue and will be included in the next version of the library (rc3), thanks again!