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!
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!
Using legend.width
should do the trick - API and Fiddle
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/