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

Incorrect tick alignment in heatmap using irregular timeseries #4809

Open
dschweinbenz opened this issue Nov 14, 2024 · 1 comment
Open

Incorrect tick alignment in heatmap using irregular timeseries #4809

dschweinbenz opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dschweinbenz
Copy link

dschweinbenz commented Nov 14, 2024

Description

When using a heatmap and having inconsistent timeseries (e.g. one time series is missing some ticks) the data is not visualized correctly. If there are missing values on the x axis no gap is shown instead the next data point is directly placed next to the previous data point. Hovering the item shows the correct datetime of the x value, but the visualization is broken. Here is a codepen that shows the behaviour (line vs heatmap) based on datetimes as x axis. Series 1 should start at 15:30 and not be visualized at 10:30. Next to that also gaps within a time range should be handled properly.

A line chart is able to handle that as documented here: https://apexcharts.com/javascript-chart-demos/area-charts/irregular-timeseries
Maybe this is related to this historic issue: 3483 (PR: 3505)

Steps to Reproduce

  1. Create a heatmap based on datetime as x axis
  2. Create multiple series that contain an inconsistent length of data

Expected Behavior

Gaps inside the series is visualized as white space and x values are correctly aligned across the x axis. Example in elastic:
grafik

Actual Behavior

grafik
Line chart is working as expected, heatmap not.

Reproduction Link

https://codepen.io/Schweini/pen/poMYEgL

@dschweinbenz dschweinbenz added the bug Something isn't working label Nov 14, 2024
@LukasBra
Copy link

LukasBra commented Nov 18, 2024

We ran into the same issue, a solution for this would be awesome!

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

2 participants