Skip to content

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

@meronz

Description

@meronz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions