echarts 动态更新markPoint
`that.solarTermRiskChart.getZr().on('click', params => {
let pointInPixel = [params.offsetX, params.offsetY]
if (that.solarTermRiskChart.containPixel('grid', pointInPixel)) {
let pointInGrid = that.solarTermRiskChart.convertFromPixel({ seriesIndex: 0 }, pointInPixel)
// 也可以通过params.offsetY 来判断鼠标点击的位置是否是图表展示区里面的位置
// 也可以通过name[xIndex] != undefined,name是x轴的坐标名称来判断是否还是点击的图表里面的内容
// x轴数据的索引
let xIndex = pointInGrid[0]
console.log('当前点击的索引', xIndex);
let o = that.solarTermRiskChart.getOption(); //mychart是创建的echarts实例 getOption获取当前实例的配置
o.series[0].markPoint.data = [{ name: '当前节气', value:illProbabilities[xIndex].probability+'%', xAxis: xIndex, yAxis: illProbabilities[xIndex].probability }];
that.solarTermRiskChart.setOption(o)
}
})`