首页 > 解决方案 > 如何使 highchart 蜘蛛图的标题空白消失?

问题描述

例如:

https://jsfiddle.net/zvj2nmyk/

Highcharts.chart('container', {

    chart: {
        polar: true,
        type: 'line'
    },

    title: {
        text:null // Already hide this but still occupy a lot of space at the top of my chart
    },
...
}

在这段代码中,我删除了图表的标题部分,但图表顶部仍然有很多空白。

如何删除顶部空间?

谢谢,

标签: highcharts

解决方案


空格不是来自标题,而是来自paneand legend。此选项将更改渲染:

pane: {
  // size: '60%'
},
legend: {
  enabled:false,
},

小提琴


推荐阅读