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

Line time scale storybook example off by one #778

Closed
johnaschroeder opened this issue Nov 26, 2019 · 2 comments
Closed

Line time scale storybook example off by one #778

johnaschroeder opened this issue Nov 26, 2019 · 2 comments

Comments

@johnaschroeder
Copy link

johnaschroeder commented Nov 26, 2019

Describe/explain the bug
The ResponsiveLine appears to be off by one visually, as well as off by an additional one from the underlying data. This appears to be true for both the storybook example and our test case.

To Reproduce
Look at first data point in the time scale story.

Data passed in the story: { x: '2018-01-01', y: 7 }
Data show on the tool tip after hovering: x: 2017-12-31, y: 7
Day shown on the x legend: Dec 30

@kltdwrds
Copy link

I just added nivo to my project and I'm seeing the same locally - @plouc any idea how to resolve this?

The docs are great 👍excited to get up and running with Nivo!

@wyze
Copy link
Contributor

wyze commented Dec 17, 2019

You need to add useUTC: false to the xScale property.

@wyze wyze closed this as completed in f3ba3f9 May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants