Browse Source

饼图修改

master
x_ying 3 years ago
parent
commit
ec18ff6ef0
  1. 7
      src/views/components/echarts/catePie.vue
  2. 9
      src/views/components/echarts/typePie.vue

7
src/views/components/echarts/catePie.vue

@ -36,6 +36,8 @@ export default {
bottom: 20,
left: 'center',
icon: 'rect',
itemHeight: 14,
itemWidth: 14,
textStyle: {
color: '#fff'
}
@ -44,8 +46,9 @@ export default {
{
name: '档案类别',
type: 'pie',
radius: ['30%', '60%'],
center: ['50%', '40%'], //
radius: ['20%', '50%'],
center: ['50%', '35%'], //
roseType: 'area',
avoidLabelOverlap: false, //
labelLine: {
normal: {

9
src/views/components/echarts/typePie.vue

@ -38,6 +38,8 @@ export default {
bottom: 20,
left: 'center',
icon: 'rect',
itemHeight: 14,
itemWidth: 14,
textStyle: {
color: '#fff'
}
@ -47,12 +49,13 @@ export default {
{
name: '档案类别',
type: 'pie',
radius: ['30%', '60%'],
center: ['50%', '40%'], //
radius: ['20%', '60%'],
center: ['50%', '35%'], //
roseType: 'area',
avoidLabelOverlap: true,
labelLine: {
normal: {
length: 10, // 线
length: 2, // 线
length2: 60 // 线
}
},

Loading…
Cancel
Save