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.38k stars 572 forks source link

Axis ZeroPaint cannot be changed once set initially. #1578

Closed MajesticBevans closed 2 months ago

MajesticBevans commented 2 months 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 2 months 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!