Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

question from:https://stackoverflow.com/questions/65840797/how-to-remove-extra-one-legend-from-high-charts-bar-chart-multiple-stacked

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.4k views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...