diff --git a/src/components/halfPieChart.vue b/src/components/halfPieChart.vue index f2befa1..7508d10 100644 --- a/src/components/halfPieChart.vue +++ b/src/components/halfPieChart.vue @@ -21,7 +21,7 @@ export default { }, height: { type: String, - default: '135px' + default: '100%' }, autoResize: { type: Boolean, @@ -34,8 +34,7 @@ export default { }, data() { return { - chart: null, - sidebarElm: null + chart: null } }, watch: { @@ -77,8 +76,9 @@ export default { { name: '半径模式', type: 'pie', - radius: ['75%', '90%'], + radius: ['60%', '75%'], center: ['50%', '50%'], + hoverAnimation:false, label: { show: false }, @@ -123,10 +123,7 @@ export default { ], animationType: 'scale', - animationEasing: 'elasticOut', - animationDelay: function(idx) { - return Math.random() * 200; - } + animationEasing: 'elasticOut' } ]