Highchart没有标记零点

时间:2016-10-31 11:00:01

标签: highcharts

我正在实现断开连接的高级图表的同步。 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);
}

enter image description here

0 个答案:

没有答案