-
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
[BUG] Wrong category size of Bar with min ,max options. #3589
Comments
@etimberg, I can fix this one. I have a question in regards to |
@Jareechang feel free to work on this 😄 Please include test(s) with your fix. I think |
ok, sounds good! i'll do that 👍 |
Probably, I think this problem can be solved with this correction. Possible SolutionDelete the following two codes. https://github.com/chartjs/Chart.js/blob/master/src/controllers/controller.bar.js#L142-L145 https://github.com/chartjs/Chart.js/blob/master/src/controllers/controller.bar.js#L469-L472 With this fix, it becomes as follows. EnvironmentChart.js version : 2.4.0 (I have poor English. so I am sorry if I am rude.) |
@KoyoSE that's a great fix. Could you PR it and add some tests? |
nice solution @KoyoSE. I was playing around with the code as well. I came up with this solution code section, we can just add Another issueI found another bug while playing with the jsfiddle. The tooltip label is incorrect when min is defined. Should I open another issue for this ? |
@Jareechang please open another issue for the tooltip issue |
Hi @etimberg Hi @Jareechang |
for Bar and horizontalBar type, include stacked scale. issue chartjs#3589
for Bar and horizontalBar type, include stacked scale. issue #3589
for Bar and horizontalBar type, include stacked scale. issue chartjs#3589
Hi! thank you for provide excellent chart library.
I would like to report some issue.
Current Behavior
With
min
(ormax
) option, Category size probably calculated from the total number of labels, not the number of labels displayed.Then, the size of bar will be smaller and shift ,even though
categoryPercentage
andbarPercentage
is 1.(also Issues #3506 plugin added)
Steps to Reproduce (for bugs)
jsfiddle
categoryPercentage
andbarPercentage
is 1 )Environment
Chart.js version : 2.4.0
Browser name and version : Microsoft Edge 38.14393.0.0
Link to my project : https://jsfiddle.net/d29yoL8u/5
Added Issues #3506 duplicate of #3491 and #2870
The text was updated successfully, but these errors were encountered: