datadoge
Posts: 27
Joined: Sat Aug 28, 2021 11:34 pm

Different tooltip decimals on subplots

Hi!

Is it possible to explicitly define the number of decimals in the tooltip for different subplots, like in this example here the volume and price?

https://www.highcharts.com/demo/stock/stock-tools-gui

I know you can set the tooltip property

valueDecimals: 2,

but then the decimals are 2 in each plot. I need 2 in the first, and 1 in the second. Thanks!
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Different tooltip decimals on subplots

Hello datadoge,

Thanks for contacting us with your question.

In this case you have to change the tooltip separately for each series.
Demo: https://jsfiddle.net/BlackLabel/v7un3ceo/

Let me know if that was what you were looking for!
Best regards!
Mateusz Bernacik
Highcharts Developer
datadoge
Posts: 27
Joined: Sat Aug 28, 2021 11:34 pm

Re: Different tooltip decimals on subplots

Thank you mateusz.b! You guys are doing a really great job here in the forum! <3
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Different tooltip decimals on subplots

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

Return to “Highcharts Stock”