@@ -117,18 +117,20 @@
this.myChart = this.$echarts.init(document.getElementById('ww'));
this.myChart.setOption({
color: [this.colorArr[0].color1, this.colorArr[0].color1, this.colorArr[1].color1],
- // legend: {
- // data: ["党员", "群众"],
- // left: 'right',
- // textStyle: {
- // color: "#fff"
- // }
- // },
+ legend: {
+ data: ["党员", "群众"],
+ left: 'right',
+ textStyle: {
+ color: "#fff"
+ },
+ padding:[45, 30,0 ,0],
grid: {
left: '20%',
right: '15%',
- bottom: '5%',
+ bottom: '10%',
height: '80%',
+ top:'20%',
containLabel: true
},
xAxis: [