Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden series do not get updated when set visible again #17

Open
V0du opened this issue Jan 19, 2023 · 4 comments
Open

Hidden series do not get updated when set visible again #17

V0du opened this issue Jan 19, 2023 · 4 comments
Labels

Comments

@V0du
Copy link

V0du commented Jan 19, 2023

Steps to reproduce:

  1. Hide any series by clicking on the legend's items
  2. Update the data (my series are bound to a List of custom items and I use the serie's Mapping delegate to convert the item to DataPoints)
  3. Refresh the plot (I bind to the plot's InvalidateFlag property and increment its value)
  4. Make the series visible again by clicking on the legend's items

The series that were invisible when the data changed are not updated on the plot.

@VisualMelon
Copy link
Contributor

Can you clarify, is this an issue with the contrib provision (e.g. when defining series in XAML) or with the normal PlotModel?

@V0du
Copy link
Author

V0du commented Jan 19, 2023

This is in the contrib; I'm using the Plot class and defining legends and series in XAML.

@V0du
Copy link
Author

V0du commented Jan 24, 2023

Update:
It seems this only happens when using the Mapping delegate on the series to convert a custom class to DataPoint.
it works fine if I bind the serie's ItemsSource to a collection of DataPoints.

@VisualMelon
Copy link
Contributor

VisualMelon commented Jan 24, 2023

That makes sense: if the source is already DataPoints then it skips the update anyway. Sorry I've not had time to look into this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants