statistics 页面中echarts 图表配置项修改

This commit is contained in:
任珮宇 2024-01-24 15:40:05 +08:00
parent fa690f0153
commit 212af00ee9

View File

@ -201,14 +201,14 @@ const commonOptions = {
let str = arr[0]
return str
}
// if (index === xDataLength - 1) {
// let arr = value.split(' ')
// arr[0] = arr[0] + ' '
// // arr[1] = arr[1] + ' '
// // let str = arr.join('\n')
// let str = arr[0]
// return str
// }
if (index === xDataLength - 1) {
let arr = value.split(' ')
arr[0] = arr[0] + ' '
// arr[1] = arr[1] + ' '
// let str = arr.join('\n')
let str = arr[0]
return str
}
return val
},
},
@ -397,6 +397,7 @@ export default {
...params,
})
if (success) {
// let result = jsonData.result
this.spinning = false
this.$set(this.itemTitle, id, result.STATION_NAME)
if (result.CollectStart.length < 1) {
@ -425,13 +426,10 @@ export default {
type: 'line',
name: key,
smooth: true,
showSymbol: true,
symbolSize: 6,
symbol: this.symbolList[num_symbol],
animation: false,
lineStyle: {
normal: {
width: 2,
},
},
data: element,
}
series.push(param)