Skip to content

RangeBar Displays Wrong Time Values on X-Axis #1607

@Gari-sincere

Description

@Gari-sincere

Thanks for your work on this library :) Keep up the good work!

Bug report

RangeBar Displays Wrong Time Values on X-Axis

Codepen

https://codepen.io/GariSincere/pen/ZEbMKPJ

Explanation

What is the behavior you expect?
The x-axis should line up with the tooltip and the JSON of the datapoints

What is happening instead?
The x-axis is intermittently off by 1 hour and disagrees with the tooltip (which is lining up with actual data points)

image

The issue seems to be related to the plot range. As you can see from the code pen, after one of the series is hidden the plot range changes, and the axis labels are then correct. Sometimes adding data points that extend the plot range will also set it back on track.

It might be related to #1601 and is distinct from #1485 since it is not reflective of timezones and is consistently off in safari vs non-safari.

Currently, I can't find any way to work around this issue :/ If manual tick options were added as suggested in #1590 I could work around this issue until it is solved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions