Harshad_919
Posts: 27
Joined: Fri Jun 19, 2020 6:53 am

Fix alignment of label of plot lines

Thu Dec 02, 2021 6:46 pm

Hello

I am plotting the solid gauge chart with one plotline which has the label to show the value of that target line. So for some values, this label is plotted inside/outside/on arc of the solid gauge chart. So how can I show this label always outside of arc?
Please refer to the attached image and jsfiddle : https://jsfiddle.net/qchLz5d8/
Attachments
solid-gauge1.PNG
solid-gauge1.PNG (7.34 KiB) Viewed 52 times
solid-gauge.PNG
solid-gauge.PNG (8.02 KiB) Viewed 53 times

magdalena
Posts: 308
Joined: Tue Aug 24, 2021 1:32 pm

Re: Fix alignment of label of plot lines

Thu Dec 02, 2021 8:54 pm

Hi,

Thanks for contacting us with your question!

You can achieve this by changing plotLines.label properties, among others x,y, align. You can find more information in the following links.

API Reference:
https://api.highcharts.com/highcharts/y ... ines.label

Example Demo:
https://jsfiddle.net/BlackLabel/239bxdan/

Let me know if you have any further questions,
Regards!
Magdalena Gut
Highcharts support engineer

Return to “Highcharts Usage”