fnSyzlEcharts (data) {
this.empiOption = {
// title: {
// text: ‘增量趋势图’,
// },
color: [
‘#5470c6’,
‘#91cc75’,
‘#fac858’,
‘#ee6666’,
‘#73c0de’,
‘#3ba272’,
‘#fc8452’,
‘#9a60b4’,
‘#ea7ccc’
],
tooltip: {
trigger: ‘axis’,
},
legend: {
data: [‘新增xx数’, ‘新增yy数’],
right: ‘right’,
},
grid: {
left: ‘3%’,
right: ‘4%’,
bottom: ‘15%’,
containLabel: true,
},
// x轴
xAxis: {
type: ‘category’,
boundaryGap: false,
data: []
},
yAxis: {
type: ‘value’,
minInterval: 1
},
series: [
{
name: ‘新增xx数’,
type: ‘line’,
smooth: 0.5,
data: this.getFieldData(data, ‘ZSYZL’),
},
{
name: ‘新增yy数’,
type: ‘line’,
smooth:0.5,
data: this.getFieldData(data, ‘HZZL’),
}
],
}
this.$refs.empiOption.updateOptions(this.empiOption)
}
Echarts折线图 增量趋势图加载
最新推荐文章于 2024-02-01 09:01:52 发布