Highcharts中的代码是什么,以便同一组中的条(列)使用相同的颜色?

时间:2013-06-29 17:34:16

标签: highcharts

I want a bar chart like this

对于我的生活,我无法弄清楚如何在Highcharts中进行如上所述的情节。我还发现这在Excel中很难做到

1 个答案:

答案 0 :(得分:1)

您可以使用colorByPoint option

来实现上述目标
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0,
                colorByPoint: true
            }
        },

请参阅小提琴here

enter image description here