diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b5ec45f..53fafe4 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -252,6 +252,9 @@ const initLineChart = (xData,data1, data2) => { type: 'value', name: 'initiate', splitLine: { show: true, lineStyle: { type: 'dashed', color: '#f5f5f5' } }, + nameTextStyle: { + padding: [0, 40, 0, 0] // 上右下左 + }, } ], series: [ @@ -318,6 +321,9 @@ const initLineVandDChart = (xData,data1, data2) => { type: 'value', name: 'download', splitLine: { show: true, lineStyle: { type: 'dashed', color: '#f5f5f5' } }, + nameTextStyle: { + padding: [0, 40, 0, 0] // 上右下左 + }, } ], series: [