有没有方法在highcharts中只选择一个系列标记状态?

时间:2013-05-22 11:26:09

标签: highcharts

example所示,我们可以通过按住CNTL键来选择多个点!是否有任何方法允许用户一次只选择一个点?

                marker: {
                states: {
                    select: {
                        lineWidth: 3
                    }
                }
            }

1 个答案:

答案 0 :(得分:2)

您可以自己编写行为代码,而不是使用allowPointSelect

      series: {
            cursor: 'pointer',
            point: {
                events: {
                    click: function(event) {
                        this.select();
                    }
                }
            }
        }

小提琴here