Skip to content

filter() seems to change stacking of points in certain cases #197

@rpadmanabhan

Description

@rpadmanabhan

Hi,

I ran into a slightly unexpected behavior when filtering points. I find that in certain cases when filtering points the stacking of the points on the plot changes from what it was originally. Here is a minimal e.g.: https://codepen.io/rpadmanabhan/pen/oNKpLmj
If you uncheck Category B, i.e. the blue point, then the red point goes on top of the green one. Hitting it again calls unfilter() and that reverts back to the original stacking.
i.e. :

 initial stacking order: [0, 1, 2]
 action: filter index 1
 new stacking order:  [2, 0]

Do you have any pointers for how I could keep the same stacking order as what was initially when the plot was rendered the first time ?

Best,
Raghav

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions