Skip to content

Heatmap time buckets should use value from timeScale #1165

@nickofthyme

Description

@nickofthyme

Describe the bug
When using the Heatmap spec with a time scale, the bucket values are trivial computed and don't always align with the values on the data. This causes charts to render without the cells that should appear the in given domain.

Expected behavior
Min and max domain values should be extended to include the full extent of partial buckets. This could be done using the timeScale.rawTcks.

Screenshots
image

Version (please complete the following information):

  • Elastic Charts: @latest

This is also related to handling partial time buckets in heatmap. Now lens is just increasing the domain to include the partial buckets as if they were full buckets which is not ideal. See https://github.com/elastic/kibana/pull/97978/files/6283fb0d54cfa1c8e482ffad4b249e294750f02a..356109c161583af3ec60a69be57c2e96e1521cc5#diff-ecf0195846e85c9002680a385d9afe155d27ad5de1c696bdf5f08101201a440fR88-R100

Kibana Cross Issues
elastic/kibana#97978 (comment)

Metadata

Metadata

Assignees

Labels

:heatmapHeatmap/Swimlane chart 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