diff --git a/src/components/Linechart.vue b/src/components/Linechart.vue index 2223474..e6de7f7 100644 --- a/src/components/Linechart.vue +++ b/src/components/Linechart.vue @@ -47,11 +47,11 @@ const option = computed(() => { }, yAxis: { type: 'value', - max: 100, - min: 0, + // max: 100, + // min: 0, axisLabel: { color: '#fff', - formatter: '{value}%' + // formatter: '{value}%' } }, grid: { @@ -61,7 +61,7 @@ const option = computed(() => { bottom: '10%', }, title: { - text: '有功功率kW', + text: '有功功率w', textStyle: { color: '#fff' } @@ -81,7 +81,7 @@ const option = computed(() => { formatter: '{value} 时' } }, - valueFormatter: (value) => value + '%' + // valueFormatter: (value) => value + '%' }, series: [ {