【问题标题】:In highcharts's stacked bar chart, how can I remove the white space between different在highcharts堆积条形图中,如何去除不同之间的空白
【发布时间】:2015-01-08 03:26:56
【问题描述】:

我有一个使用 highcharts 的堆积条形图。从 jsfiddle 的例子可以看出,绿色和蓝色之间有一条白线?可以删除这个吗?它会触发 pdf 中的一些问题。

http://jsfiddle.net/daxu/e777hgev/

labels: {
    formatter: function () {
    return this.value;
    },
    style: {
           color: 'black',
           fontFamily: 'DINPro',
           fontSize: '7.76px',
           fontWeight: 'normal'
          }
    },

【问题讨论】:

    标签: highcharts


    【解决方案1】:

    这可以使用plotOptions.bar.borderWidth 参数删除。它默认为 1px。你可以这样设置来移除边框:

    plotOptions: {
        series: {
            stacking: 'normal',
            borderWidth: 0
        },
        animation: false
    },
    

    【讨论】: