-
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
max is not working properly in time scale v2.7.0 #4758
Comments
I think this is related to |
I believe |
What is the behavior you expect here? |
@benmccann I know labels is not beyond with max but ticks is dependent on max. In second fiddle when I have only one dataset ticks is not depending on max. I am expecting when I set max to one year and unit : 'month' then ticks should be 12 and bar will show only one tick that is not happening here when I have only one dataset. See the difference of both fiddle. |
I'm not understanding your explanation of what you expect the behavior to be. When I click https://jsfiddle.net/657fxL8r/8/ I see only one tick |
@benmccann this fiddle https://jsfiddle.net/657fxL8r/8/ showing one one tick its right but bar width is not correct. See another fiddle https://jsfiddle.net/657fxL8r/7/ Here bar width is right. |
Yes, I agree that it is strange that the bar is off-center I believe @nagix was working on a solution for that |
Any solution |
Current Behavior
I set max value in time scale it working fine when dataset has 2 and more values otherwise behaviour unexpected.
Why it is behaving like this.
Steps to Reproduce (for bugs)
Dataset with 2 and more values
https://jsfiddle.net/657fxL8r/7/
Dataset with 1 value.
https://jsfiddle.net/657fxL8r/8/
Environment
The text was updated successfully, but these errors were encountered: