diff --git a/src/views/dashboard/PieChart.vue b/src/views/dashboard/PieChart.vue index c360057..b56ec90 100644 --- a/src/views/dashboard/PieChart.vue +++ b/src/views/dashboard/PieChart.vue @@ -45,6 +45,16 @@ export default { this.chart = echarts.init(this.$el, 'macarons') this.chart.setOption({ + title: { + text: '标题1 ', + textStyle: { + align: 'center', + color: '#000', + fontSize: 20, + }, + top: '0%', + left: '0%', + }, tooltip: { trigger: 'item', formatter: '{a}
{b} : {c} ({d}%)'