-
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
Tooltip label is incorrect on Bar chart when min is defined #3618
Comments
I am currently working on this one, @etimberg feel free to assign this to me. |
ok, sounds good @Jareechang |
#3620 and #3649 have fixed the same problem. Build from the current latest codehttps://jsfiddle.net/T_SAiTO/jw29rrnq/ Invalidated the change of #3620 from the above build.(only#3649)https://jsfiddle.net/T_SAiTO/vogqedw1/ Invalidated the change of #3649 from the above build.(only#3620)https://jsfiddle.net/T_SAiTO/mnL7wmfj/ Thank you for your consideration. |
Sounds like we need to revert the second change. |
Expected Behavior
When
min
is defined, the first tooltip label should display the label at the minimum.ex. when
min
is set to'March'
, the tooltip should show'March'
as the label.Current Behavior
currently, it displays data label two indexes down.
ex. when
min
is set to'March'
, it displays'May'
.Possible Solution
It seems the API slices the datasets into a subset when
min
ormax
is defined. Possible solution is to map the index of theparseVisibleItems
method.Steps to Reproduce (for bugs)
min
on the chartEnvironment
Chart.js version: 2.4.0
Browser name and version: Google Chrome 54.0.2840.98
Link to your project: https://jsfiddle.net/d29yoL8u/5
Related to issue [BUG] Wrong category size of Bar with min ,max options. #3589 (discovered when trying to resolve this)
The text was updated successfully, but these errors were encountered: