Is it possible to insert a break in the high chart

2020-05-01 04:38发布

问题:

Over time i have gotten quite alot of elements in my HighCharts legend. I would like to sort them in a simple way, like insert a break to arrange the elements.

How can i do this?

Thanks in advance!

回答1:

Using legend.width should do the trick - API and Fiddle



回答2:

Increasing itemWidth and itemMarginTop should do the trick and divide legend items evenly.

API Reference:
http://api.highcharts.com/highcharts/legend.itemWidth
http://api.highcharts.com/highcharts/legend.itemMarginTop

Example:
http://jsfiddle.net/015fzv3a/



标签: highcharts