-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Xaxis time range does not start and end according to time data #3654
Comments
I think it is adding +-1 value of your current measuring unit to the chart. I have currently the work around to round my dates to my scale: backend
frontend chart options
But I would also expect it to not add this two extra points on the |
I am also experiencing this problem. If my charts were static I'd just use a smaller unit, but since they are generated automatically on user input, I can't use this workaround. Is there any way to fix this? |
I think this is a rounding issue. In your first image your unit scale is in hours so the min and max are on an hour boundary which is outside of your data. Your data starts at "2016-11-29T01:44:04.695Z" but the x-axis min is rounded to "2016-11-29T01:00:00.000Z". It'd be nice to be able to keep the hour unit but round to the nearest minute so that the min/max ticks don't have to start at the beginning of the hour. |
Hello all,
I don't know if it is a bug or just a limitation but I have unwanted gap in my line graph.
Expected Behavior
My data must fill the xaxis range all the time.
Current Behavior
In some cases, my data does not fill the xaxis range.
Steps to Reproduce (for bugs)
https://jsfiddle.net/3w5bke8f/2/
Environment
It depends on the size of my screen :
The text was updated successfully, but these errors were encountered: