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