oxyplot / oxyplot-avalonia

A cross-platform plotting library for .NET. This package targets Avalonia apps.
https://oxyplot.github.io/
MIT License
278 stars 47 forks source link

Can't hide plost series while keeping the legend #40

Closed yesod30 closed 3 years ago

yesod30 commented 3 years ago

I was trying to hide/unhide a series by double clicking on the relative legend text. I got to the point where i can get the series i want to hide, but setting the IsVisible property of the series to false seems to also remove it/hide it from the legend. This is a problem, sinceif the legend disappear, the user can't unhide the series anymore. Is there any way to do this in the current version?

VisualMelon commented 3 years ago

In the current version, I do not think this is viable.

The ability to hide series is built into OxyPlot 2.1.0, but we've not got around to releasing OxyPlot-Avalonia 2.1.0. See #38

yesod30 commented 3 years ago

Yeah i saw that, was wondering if it was just a 2.1.0 feature or if i was missing something. Thanks for the confirmation, i'll wait for a release, you guys are doing a great job ^^