How to remove extra one legend from High Charts- Bar chart (multiple & stacked)

278 Views Asked by At

I have stacked columns for 103 and 104. so either I have to show all 103 colors in the legend or remove the second 103 legend. How can we achieve that?

enter image description here

1

There are 1 best solutions below

0
On

Depending on your needs, you can hide the legend item by disabling showInLegend option or by linking it to other by linkedTo.


API Reference:

https://api.highcharts.com/highcharts/series.column.showInLegend

https://api.highcharts.com/highcharts/series.column.linkedTo