codenamezero
Posts: 22
Joined: Thu Dec 19, 2019 7:23 pm

How to remove inline styles from tooltip?

How can we remove these inline styles from Highcharts? Theres actually a lot of those baked-in inline stlye in many places and we have a hard time overpowering them with CSS classes.
Screen Shot 2022-06-28 at 11.33.17 AM.png
Screen Shot 2022-06-28 at 11.33.17 AM.png (94.74 KiB) Viewed 242 times
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: How to remove inline styles from tooltip?

Hi there,

Thank you for contacting us.

Have you considered using a styled mode? Read more about it here: https://www.highcharts.com/docs/chart-d ... yle-by-css
API Reference: https://api.highcharts.com/highcharts/chart.styledMode

Also for the tooltip, you can format your own tooltip, with the tooltip.formatter method.
API Reference: https://api.highcharts.com/highcharts/tooltip.formatter

Do not hesitate to contact us with any further requests,
Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”