echarts整体调整

This commit is contained in:
2025-08-13 14:51:26 +08:00
parent 763338cc2a
commit 9ad720823a
15 changed files with 68 additions and 24 deletions

View File

@ -73,16 +73,21 @@ export default {
})
this.chart.setOption({
color:['#FFBD00','#3C81FF','#05AEA3'],
// legend: {
// left: 'right',
// bottom: '10',
// },
tooltip: {},
xAxis: {
type: 'category',
name:unit,
nameLocation:'center'
legend: {
left: 'center',
bottom: '15',
},
grid: {
top:40,
containLabel: true
},
tooltip: {},
xAxis: [{
type: 'category',
name:`单位:${unit}`,
nameLocation:'center',
nameGap:30
}],
yAxis: [{
type: 'value',
name:'充电量/放电量kWh',
@ -102,7 +107,6 @@ export default {
onZero:false
}
}],
grid:{top:40},
dataset:{
source
},