semrola
Posts: 4
Joined: Mon Oct 04, 2021 6:58 am

Grouped stacked column with centered labels

Hello!

I want to add labels to the chart that are centered above each group for this type of chart https://jsfiddle.net/gh/get/library/pur ... nd-grouped.

Example (these labels can be stored in series data):
Image
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Grouped stacked column with centered labels

Hello semrola,

Thanks for contacting us with your question.

Unfortunately something like that is not supported and you can't do it purely with API options. You could use SVGRenderer which allows you to draw text on your chat. Finding right label position might be hard though.
Demo: https://jsfiddle.net/BlackLabel/r0u5fg6c/
API reference: https://api.highcharts.com/class-refere ... VGRenderer

Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer
semrola
Posts: 4
Joined: Mon Oct 04, 2021 6:58 am

Re: Grouped stacked column with centered labels

Thank you for your help. I ended up doing something similar.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Grouped stacked column with centered labels

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

Return to “Highcharts Usage”