VolyaV
Posts: 6
Joined: Thu Mar 24, 2022 1:23 pm

Tooltip cuttsOff

Hello, i have a problem when tooltip is to long it cuts off , i google many informations and find in topics than the property outside=true can help me, but in my case when i set it to true, after this i cant see my tooltip in general
https://i.stack.imgur.com/A7STb.png
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Tooltip cuttsOff

Hi VolyaV,

Thanks for contacting us with your question.

Please create a live demo with the issue. You can start here: https://jsfiddle.net/BlackLabel/9qbkwv0m//

Regards!
Mateusz Bernacik
Highcharts Developer
VolyaV
Posts: 6
Joined: Thu Mar 24, 2022 1:23 pm

Re: Tooltip cuttsOff

Sorry cant reproduce the code,
pre settings
tooltip =useHTML true
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Tooltip cuttsOff

Hi VolyaV,

Sorry to say, but I can't really help you without reproduction of the issue. Here is the demo with outside: true and useHTML: true properties:
https://jsfiddle.net/BlackLabel/4zqrbjLt/

As you can see the tooltip is shown correctly and is not cut at the edges. Perhaps you could provide me with some more relevant informations like your chart config that could help me with reproducing the issue.

Regards!
Mateusz Bernacik
Highcharts Developer
VolyaV
Posts: 6
Joined: Thu Mar 24, 2022 1:23 pm

Re: Tooltip cuttsOff

Hi , pls help me, what should i add in positioner function to y, to be able calculate bounds of my chart, if you hover last point you will see it cuts, so i need somehow add a property in to position -->y and my tooltip stays in the boundaries of chart.
outside:true not suitable
Regards!
http://jsfiddle.net/nt9x5tjj/
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Tooltip cuttsOff

Hi VolyaV,

Basically, you need to check if a sum of point position plus tooltip width is greater than whole chart width, and if so offset the x tooltip position by that value.
Demo:http://jsfiddle.net/BlackLabel/b5s3exh6/

Let me know if it was what you were looking for.
Regards!
Mateusz Bernacik
Highcharts Developer
VolyaV
Posts: 6
Joined: Thu Mar 24, 2022 1:23 pm

Re: Tooltip cuttsOff

mateusz.b thx ,it helps a lot with a few improvements
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Tooltip cuttsOff

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”