Skip to content

Hovering highlight of bar charts sits on top of all charts #329

Open

Description

Describe the bug
If you have a bar series with a different type of series (like Line) on the same chart, when hovering the bar the highlight that overlays the bar is also on top of the Line chart.

To Reproduce
Steps to reproduce the behavior:

  1. Create a chart with at least 1 bar series and one other type of series or go here
  2. Hover one of the bars that also has a point overlapping it
  3. See error

Expected behavior
I go back and forth on this one whether it's expected or not. I first noticed it in this screenshot:

Then I visited the theme section in the docs and this visual makes sense to me:

Screen Shot 2019-08-19 at 18 10 14 PM

Because the bar is completely hidden so it's nice to see an outline. However, I can't decide how necessary that is and/or if the main part that's bothering me is that in the first screenshot, the dot has the "hover ring" around it that's being obscured by this overlay.

Since my cursor is on a dot, I would think my main focus is on that point not the bar but that point is being obscured. Maybe that is the fix. To keep the hover/focus rings above the charts below it.

Version (please complete the following information):

  • Elastic Charts: 9.0.4
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 relatedImpact:LowbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions