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
Stacked Column Chart Tooltip issues in 5.0.0 #5832
Comments
Thanks for reporting! I'm not sure why you use Nevertheless, it is a regression. |
Fails since v4.2.7, 5ef14ea Removing the Probably we don't want to modify the |
Not really - I think it should be there. As an alternative, we can make this less strict and involve
It will filter out cases, where clientX is different by pointPlacement, but x-values are in fact excatly the same. Edit: That solution won't resolve displacement with +/- 1 and above, for example blue series: http://jsfiddle.net/brzs1vLw/4/ - however, |
It sounds like a good idea... Do we need the check for clientX at all? Can we think of situations were a test for
If you can't think of other problem areas I suggest we replace the comparing |
I think we should. The test for
Not exactly, it finds all closest point by x-dimension, as you said, but according to x+y distance we can determine which of the points is the closest one (for example click event on a tracker - that param |
But using a shared tooltip with two X axes is wrong under any circumstances, in your sample the tooltip header shows only the date of the first point: http://jsfiddle.net/jhyhn2ty/ In this case we would at least need to get rid of the shared header. |
Yes, of course - it was just a minimal example, an idea. |
I think we'll give it a try with comparing x-es... |
Expected behaviour
When using point placement with a stacked column chart, shared labels should show all stacks, worked in 4.2
Actual behaviour
When point placement is added, stacks do not appear correctly in shared tooltip.
Live demo with steps to reproduce
http://jsfiddle.net/brzs1vLw/
Affected browser(s)
Chrome
The text was updated successfully, but these errors were encountered: