Skip to content

Sort highlighter by geometry zIndex #1921

Open

Description

Describe the issue
In a cartesian chart, if two data points fall into the same position, the topmost highlighter covers the bottom most.
The problem is that the topmost highlighter is not the one relative to the topmost geometry, but the opposite.
If you check the attached screenshot you can see that:

  • Sensor1, in green, is rendered in the background of Sensor 2, in blue.
  • Sensor1 is shown on the top in the Legend and in the tooltip.
  • Sensor1 highlighter is shown on top of the Sensor2 highlighter.

Screenshot 2023-01-03 at 14 46 57

the Y data for the two series is:

green: [1, 0.8, 0.5, 0.2]
blue: [1, 0.8, 0.76, 0.12]

Expected behaviour
The rendering order of the highlighter should follow the rendering order of the geometries.

Additional context
A test case was added in #1922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    :interactionsInteractions related issue:xyBar/Line/Area chart relatedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions