Skip to content

Heatmap legend with linear color scale contains duplicate 0  #1166

@darnautov

Description

@darnautov

Describe the bug
Heatmap chart with colorScale={ScaleType.Linear} ends up with duplicate 0 in legend items.

To Reproduce
Provide a dataset with values range from 0 to N.

See https://codesandbox.io/s/damp-https-2rspz?file=/src/App.tsx

Expected behaviour
Legend doesn't contain duplicate items.

Screenshots
image

Kibana Cross Issues
elastic/kibana#97978

Metadata

Metadata

Assignees

Labels

:heatmapHeatmap/Swimlane chart related issue:legendLegend related issueImpact:HighbugSomething isn't workingreleasedIssue released publicly

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions