ECharts中Y轴坐标上标记有实心圆

ECharts中Y轴坐标上标记有实心圆

想要实现这种效果:
在这里插入图片描述
实现:在这里插入图片描述
在series中添加markLine属性,其中有个symbol属性前面设置为‘circle’即可
(symbol标记类型有很多种,‘circle’, ‘rect’, ‘roundRect’, ‘triangle’, ‘diamond’, ‘pin’, ‘arrow’, ‘none’,可以去看文档)
(https://echarts.apache.org/zh/option.html#series-line.markLine.silent)

猜你喜欢

转载自blog.csdn.net/weixin_45324044/article/details/109774093