diff --git a/src/views/statistics/pieChart.vue b/src/views/statistics/pieChart.vue index 35affe4..a94e0d7 100644 --- a/src/views/statistics/pieChart.vue +++ b/src/views/statistics/pieChart.vue @@ -23,7 +23,8 @@ // } } this.legend = { - bottom: '10px' + bottom: '10px', + show: this.baseConfig.showLegend } this.tooltip = { show: true diff --git a/src/views/statistics/pieChart.vue b/src/views/statistics/pieChart.vue index 35affe4..a94e0d7 100644 --- a/src/views/statistics/pieChart.vue +++ b/src/views/statistics/pieChart.vue @@ -23,7 +23,8 @@ // } } this.legend = { - bottom: '10px' + bottom: '10px', + show: this.baseConfig.showLegend } this.tooltip = { show: true diff --git a/static/config.json b/static/config.json index 0b8ef76..c989b13 100644 --- a/static/config.json +++ b/static/config.json @@ -1,3 +1,4 @@ { - "pieChartLimit": 0 + "pieChartLimit": 0, + "showLegend": false }