Skip to content

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

Open

Description

@V0du

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.

Activity

  1. VisualMelon commented on Jan 19, 2023

    @VisualMelon
    Contributor

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

  2. V0du commented on Jan 19, 2023

    @V0du
    Author

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

  3. V0du commented on Jan 24, 2023

    @V0du
    Author

    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.

  4. VisualMelon commented on Jan 24, 2023

    @VisualMelon
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions