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

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

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

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...