Commit 961bdd276c657deed774d0298442ad6382df8bfe
1 parent
974ee116
道闸
Showing
1 changed file
with
5 additions
and
8 deletions
src/components/halfPieChart.vue
| @@ -21,7 +21,7 @@ export default { | @@ -21,7 +21,7 @@ export default { | ||
| 21 | }, | 21 | }, |
| 22 | height: { | 22 | height: { |
| 23 | type: String, | 23 | type: String, |
| 24 | - default: '135px' | 24 | + default: '100%' |
| 25 | }, | 25 | }, |
| 26 | autoResize: { | 26 | autoResize: { |
| 27 | type: Boolean, | 27 | type: Boolean, |
| @@ -34,8 +34,7 @@ export default { | @@ -34,8 +34,7 @@ export default { | ||
| 34 | }, | 34 | }, |
| 35 | data() { | 35 | data() { |
| 36 | return { | 36 | return { |
| 37 | - chart: null, | ||
| 38 | - sidebarElm: null | 37 | + chart: null |
| 39 | } | 38 | } |
| 40 | }, | 39 | }, |
| 41 | watch: { | 40 | watch: { |
| @@ -77,8 +76,9 @@ export default { | @@ -77,8 +76,9 @@ export default { | ||
| 77 | { | 76 | { |
| 78 | name: '半径模式', | 77 | name: '半径模式', |
| 79 | type: 'pie', | 78 | type: 'pie', |
| 80 | - radius: ['75%', '90%'], | 79 | + radius: ['60%', '75%'], |
| 81 | center: ['50%', '50%'], | 80 | center: ['50%', '50%'], |
| 81 | + hoverAnimation:false, | ||
| 82 | label: { | 82 | label: { |
| 83 | show: false | 83 | show: false |
| 84 | }, | 84 | }, |
| @@ -123,10 +123,7 @@ export default { | @@ -123,10 +123,7 @@ export default { | ||
| 123 | 123 | ||
| 124 | ], | 124 | ], |
| 125 | animationType: 'scale', | 125 | animationType: 'scale', |
| 126 | - animationEasing: 'elasticOut', | ||
| 127 | - animationDelay: function(idx) { | ||
| 128 | - return Math.random() * 200; | ||
| 129 | - } | 126 | + animationEasing: 'elasticOut' |
| 130 | } | 127 | } |
| 131 | 128 | ||
| 132 | ] | 129 | ] |