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

Bar chart with datetime series data in range unable to pan full range #4795

Open
ascendedguard opened this issue Nov 6, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ascendedguard
Copy link

Description

I have a bar graph showing weekly data, with 1 datapoint per week, with roughly 2 years of data. If I set the range of the graph to be 52 weeks and use the panning tool, I'm unable to reach the 2 weeks on the left. In practice, I've seen up to 4 weeks of inaccessible data.

Additionally, intersect tooltips seem to break, with a small area (a few pixels) on the left between data points showing the first week outside of the bounds of the graph.

Steps to Reproduce

  1. Reproducing JSFiddle: https://jsfiddle.net/L1mt4w6z/
  2. Create weekly time-series data with ~2 years data.
  3. Limit range to 1 year
  4. tooltip: { intersect: false} (not required, but shows a second issues with it)

Expected Behavior

The full dataset to be accessible via the pan tool, with working tooltips.

Actual Behavior

At least 2 bars of data are inaccessible, with tooltips show inconsistent data.

Screenshots

Incorrect tooltip, with highlighted area shown under Y axis labels (which is where that datapoint actually is). This is also as far as I can pan left, leaving 1 bar missing and 1 bar mostly cut off.

image

Reproduction Link

https://codepen.io/ascendedguard/pen/xxvygWw

@ascendedguard ascendedguard added the bug Something isn't working label Nov 6, 2024
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

1 participant