|
@@ -7,6 +7,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { defineProps, ref, nextTick, reactive, watch } from 'vue';
|
|
|
import * as echarts from 'echarts';
|
|
|
+import { position } from 'html2canvas/dist/types/css/property-descriptors/position';
|
|
|
|
|
|
let props = defineProps({
|
|
|
echartData: {
|
|
@@ -46,8 +47,8 @@
|
|
|
let option = {
|
|
|
title: {
|
|
|
text: '风险比例分析',
|
|
|
- left: '20%',
|
|
|
- top: 0,
|
|
|
+ left: '22%',
|
|
|
+ top: 5,
|
|
|
textStyle: {
|
|
|
color: '#fff',
|
|
|
fontSize: 14,
|
|
@@ -67,14 +68,12 @@
|
|
|
name: '',
|
|
|
type: 'pie',
|
|
|
radius: '50%',
|
|
|
- center: ['30%', '54%'],
|
|
|
+ center: ['32%', '50%'],
|
|
|
color: ['rgb(131,249,103)', '#FBFE27', '#FE5050', '#1DB7E5'], //'#FBFE27','rgb(11,228,96)','#FE5050'
|
|
|
- data: echartDatas.value.sort(function (a, b) {
|
|
|
- return a.value - b.value;
|
|
|
- }),
|
|
|
- roseType: 'radius',
|
|
|
+ data: echartDatas.value,
|
|
|
|
|
|
label: {
|
|
|
+
|
|
|
normal: {
|
|
|
formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
|
|
|
rich: {
|
|
@@ -98,8 +97,8 @@
|
|
|
color: 'rgb(98,137,169)',
|
|
|
},
|
|
|
smooth: 0.2,
|
|
|
- length: 2,
|
|
|
- length2: 2,
|
|
|
+ length: 20,
|
|
|
+ length2: 10,
|
|
|
},
|
|
|
},
|
|
|
itemStyle: {
|