[mod]饼状图修改参数

init
wangxi 4 years ago
parent eb1ac0c6e9
commit 53f66d4c13

@ -39,6 +39,11 @@
type: String,
default: ''
},
// (true-false-)
isRing: {
type: Boolean,
default: false
},
//
opinionData: {
type: Array,
@ -53,6 +58,7 @@
}
},
mounted(){
console.log('this.opinion',this.opinion)
this.$nextTick(function() {
this.drawPie('myChart')
})
@ -85,8 +91,8 @@
{
name:this.seriesName, //
type: 'pie',
radius : '65%',
center: ['50%', '50%'],
radius :this.isRing?['40%','65%']: '50%',
center: ['50%', '40%'],
selectedMode: 'single',
data:this.opinionData, //
itemStyle: {

Loading…
Cancel
Save