aroylachance
Posts: 1
Joined: Mon Mar 06, 2023 2:07 pm

SVG attribute error on tooltip hover bar chart

Hi!
I use a custom html tooltip with the formatter for my bar chart but I keep getting svg attribute errors in the console. The tooltip works fine but I would like to know if there's any way to fix the console error. I've attached a capture of the console errors and a capture of my tooltip code.

Thank you and have a nice day!
Antoine
Attachments
console_errors.PNG
console_errors.PNG (28.93 KiB) Viewed 365 times
tooltip.PNG
tooltip.PNG (11.48 KiB) Viewed 365 times
jedrzej.r
Posts: 725
Joined: Tue Jan 24, 2023 11:21 am

Re: SVG attribute error on tooltip hover bar chart

Hello Antoine and welcome to our forum!

Thanks for contacting us with your question. Based on the console errors attached, it seems that you are inserting wrong values in SVG attributes, since it expects numbers and not strings. I'm not able to deduce more about this error without looking at your custom function numberFormatWithUnit. If you could provide a demo with your solution, than I'll be able to reproduce this problem and find exact cause.

In case of any other questions related to Highcharts functionality feel free to contact us anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Stock”