最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Highcharts putting extra space among legend items - Stack Overflow

programmeradmin0浏览0评论

I am using highcharts and I am trying to display some exxtra space between legend items for example the legend should look like

school teacher

tennis basketball football

paper pen

so basically some extra space like item grouping. Does anyone know is this possible to do?

I am using highcharts and I am trying to display some exxtra space between legend items for example the legend should look like

school teacher

tennis basketball football

paper pen

so basically some extra space like item grouping. Does anyone know is this possible to do?

Share Improve this question edited Oct 31, 2013 at 18:24 tshepang 12.5k25 gold badges97 silver badges139 bronze badges asked Aug 22, 2012 at 8:50 user1573406user1573406 311 silver badge4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

You can provide margin between two legend items in Legend options.

Try:

legend: {
    ..// other options
    itemMarginTop: 5,
    itemMarginBottom: 5
}

Read more: http://api.highcharts./highcharts#legend.padding

发布评论

评论列表(0)

  1. 暂无评论