Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap color scale is not consistent with legend highlight behavior #4658

Closed
meronz opened this issue Aug 22, 2024 · 0 comments
Closed

Heatmap color scale is not consistent with legend highlight behavior #4658

meronz opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@meronz
Copy link

meronz commented Aug 22, 2024

Description

When creating a Heatmap chart with color ranges, the elements highlighted not always match the ones colored correctly.
It is not documented if the to/from values for each color in the colorrange is inclusive/exclusive so I assumed that they must be inclusive (the from and to values for each consecutive step must match in order)

Steps to Reproduce

  1. Create a heatmap chart, with no shades and a color range (see code pen)
  2. Bring the mouse on a legend element. The highlighted elements are wrong

Expected Behavior

On legend mouseover, only the elements in range are highlighted

Actual Behavior

On legend mouseover, the element immediately after is highlighted

Screenshots

image

Reproduction Link

https://codepen.io/meronz/pen/OJevGQL

@meronz meronz added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant