Skip to content

Unable to dynamically add/remove series #114

Closed
@3ll3d00d

Description

@3ll3d00d

NB: This might be the same issue as #90

I have a chart that allows the user to add/remove series, each series has a unique id and the user can change the series on screen at will without rerendering the page. If I set redraw then everything works fine, if not then the chart rapidly gets confused and either doesn't update or renders the wrong series.

This seems like it is due to memoizeDataProps in that it compares lists by indexes rather than via some id (so that it knows exactly which dataset to add/remove).

Is there a key property I'm missing that would allow this to work or is this not possible with the current implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions