我正在实现断开连接的高级图表的同步。 searchPoint()给出左或右点,而不是返回空数据点。当十字准线在空数据点上并显示空标签值时,如何显示标记?
handleMove(e) {
let chart, point, event, indexValue;
chart = this.refs[this.props.id].getChart();
event = chart.pointer.normalize(e.originalEvent); // Find coordinates within the chart
point = chart.series[0].searchPoint(event, true); // Get the hovered point
if (point)
indexValue = point.index;
this.syncCrossHair(indexValue, e);
}