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 position when xAxis.left is set #2062
Comments
Hello Pawel, Thank you for getting back to me. My bad for not reviewing the code, and my guess is the original programmer must have disabled the tooltip precisely for the issue which you highlight above... Have you identified a workaround for the issue? Is it possible to offset all tooltips on the second chart by a given number of pixels? It doesn't look like the y-axis positioning is wrong, just the x-axis. Kind regards and thanks for your help. |
Simplified demo: http://jsfiddle.net/highcharts/X7GKs/ |
Possible workaround is to setup |
Pawel, this is absolutely awesome. Thank you! Any reason why the x-axis of the second chart is below that of the first? Why are these not aligned? |
Just set |
Hello Pawel -that works perfectly, but then breaks if you change the graph to a line chart. Is that expected behaviour, or is it because the positioning methodology you have adopted no longer applies to line charts? Appreciate this is only very loosely related to my initial question, so please feel free to tell me to go away :-) Thanks again for all your help. I am nearly there. |
Looks like my workaround works only for columns. For line chart, tooltip doesn't display at all, so there must be something broken deeper in the core, sorry. Test case for lines: http://jsfiddle.net/X7GKs/4/ |
Hello Pawel, This isn't 100% correct -your workaround does bring about the tooltips with the line graph, but these are not positioned correctly. To reproduce this, go to this link and replace type: 'columns' with type: 'line'. How about setting all tooltips to a fixed location? e.g. top left corner...? |
This one: http://jsfiddle.net/X7GKs/5/ ? I can see tooltip only for last point (sometimes..). |
Hello Pawel, Yeah, that is the one I was referring to. I assumed if you could see the last one when hovering on the first it meant there was an issue with the positioning. :-) As always, thank you for your help and for being so responsive. I will close down my question on SO. Do let me know if you identify a workaround! Kind regards, |
Hide the first series (blue one) It seems that Highcharts thinks the graph is still there (if you move it around you will see that it gives the correct tooltip if the graph would still have been there) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! |
Example: http://jsfiddle.net/45v24/4/
The idea here is to use two separate xAxis both starting from 0, or with different categories, and the tooltip is mispositioned (hover orange series).
The text was updated successfully, but these errors were encountered: