|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="pieView">
|
|
|
- <div style="height: 20%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>
|
|
|
- <div style="width:100%;height:80%;display: inline-block; overflow: hidden;">
|
|
|
+ <div style="height: 14%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>
|
|
|
+ <div style="width:100%;height:86%;display: inline-block; overflow: hidden;">
|
|
|
<div :id="info.config.idSelector" style="width:100%;height:95%;overflow: hidden;"> </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -47,6 +47,7 @@ export default {
|
|
|
fontWeight: '600'
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
color:this.info.color,
|
|
|
tooltip: {
|
|
|
trigger: 'item',
|
|
|
@@ -55,10 +56,12 @@ export default {
|
|
|
label: {
|
|
|
formatter: '{b}\n({d}%)'
|
|
|
},
|
|
|
+
|
|
|
legend: {
|
|
|
show: true,
|
|
|
z: 3,
|
|
|
- orient: 'vertical',
|
|
|
+
|
|
|
+ // orient: 'vertical', 标题横竖//
|
|
|
left: 'right',
|
|
|
textStyle:{
|
|
|
color: '#fff'
|