markLine: {
symbol: "none",
itemStyle: {
normal: {
borderWidth: 0,
lineStyle: {
type: "dashed",
color: "#EA3628",
width: 1,
},
},
},
label: {
position:'start',
formatter:'{c}',
normal: {
padding: 1,
fontSize: 12,
fontFamily: "Microsoft YaHei",
formatter: function (params) {
return "平均线";
},
},
},
data: [
{
yAxis: params.map(item=> item.increase).reduce((a,b) => Number(a) + Number(b), 0) / 5 ,
},
],
},
echarts图表平均线展示
最新推荐文章于 2024-07-12 16:27:40 发布