var options2 = myChat.getOption();
var s =a.name;
options2.series[0].markPoint.data = [{
name: '最大值',
xAxis: s,//添加标记的x轴的坐标
yAxis:"MT044257.1",//添加标记的y轴的坐标
symbol: 'rect',
label: {
textStyle: { color: 'red' },
padding: [5.312, 5.28],
fontSize: 15,
borderRadius: 5,
backgroundColor: 'rgba(25, 189, 122, 0.2)',
position: 'bottom',
formatter: s
}
}];
myChat.setOption(options2);
echarts增加标记
最新推荐文章于 2024-05-06 15:49:21 发布