success: function (data) {
series3 = [
{
name: '本周工序产出数量最高',
type: 'line',
smooth: true,
label: {
normal: {
show: true,
formatter: (params) => { return (data.Key[params.dataIndex] + "-" + params.value) },
color: '#6de5ff',
position: 'top'
}
},
areaStyle: {
opacity: 1,
color: '#6de5ff'
},
data: data.Value
}
];
name = data.Key;
}
data.Key data.Value 是后台返回的某个数组,formatter:(params) => {}自定义拐点显示数据 params.dataIndex为每个拐点的下标