我使用 Highstock,我会通过点击事件从 xAxis.plotLine 设置值。我该怎么做才能直接显示?我使用 xAxis.plotLines.value = this.x; 设置点击事件的值
series : [
{
xField : 'deltaTime',
yField : 'variableOne'
},{
xField : 'deltaTime',
yField : 'variableTwo',
}],
chartConfig : {
xAxis: {
plotLines: [{
width: 2,
color: 'black'
}]
},
rangeSelector : {
selected : 1
},
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function() {
var hcConfig = Chart.ux.HistoryChart.getConfig('single_line');
hcConfig.chartConfig.xAxis.plotLines.value = this.x;
}
}
}
},
marker: {
lineWidth: 1
}
}
},
}
}