使用HighCharts是否可以在列组中的1列上居中点?

时间:2013-04-07 01:08:41

标签: highcharts

在此HighCharts图表中,您可以看到3列分组的线条。该行的数据与第三列的数据相同。

我想在每个列组的第3列中显示以行为中心的点。有没有办法用HighCharts做到这一点?

HighCharts column and line graph

1 个答案:

答案 0 :(得分:0)

我能找到的最简单的方法是给行系列一个pointStart值,使其向右移动。

       {
            type: 'line',
            name: 'Joe\'s Line',
            data: [4, 3, 3, 9, 1],
            marker: {
                lineWidth: 2,
                lineColor: Highcharts.getOptions().colors[3],
                fillColor: 'white'
            },
            pointStart: 0.20 //force it to start further right.
        }

小提琴here

enter image description here

相关问题