venkatesh
Posts: 5
Joined: Mon Sep 05, 2022 11:33 am

Positive sign in a series

is there any possibility to add a positive sign for value in a series like we are showing the -ve sign for the -ve values?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Positive sign in a series

Hi there,

Of course it is possible, but where exactly would you need to place your sign? Most often, you can use the format or formatter property, to create a custom formatting for tooltips, dataLabels etc.

Take a look at the dataLabel example, with a plus sign in front of the value:
https://jsfiddle.net/BlackLabel/b8ey35gk/

Do not hesitate to contact us,
Best regards!
Kamil Musiałowski
Highcharts Developer
venkatesh
Posts: 5
Joined: Mon Sep 05, 2022 11:33 am

Re: Positive sign in a series

I need like this https://jsfiddle.net/49ur3t8m/1/ kindly refer and give suggestions
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Positive sign in a series

You can use xAxis.labels.format to achieve exactly what you need.

DEMO: https://jsfiddle.net/BlackLabel/pyjxgdwa/
API Reference: https://api.highcharts.com/highcharts/x ... els.format

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

Return to “Highcharts Usage”