|
@@ -2,6 +2,7 @@ import SquareBox from '@/components/ScreenBox/SquareBox';
|
2
|
2
|
import TitleBox from '@/components/ScreenBox/TitleBox';
|
3
|
3
|
import { Pie, G2 } from '@ant-design/plots';
|
4
|
4
|
// import ba from './a.png'
|
|
5
|
+import RedRing from '@/assets/images/screen/ring-red.png';
|
5
|
6
|
|
6
|
7
|
export default (props) => {
|
7
|
8
|
const data = [
|
|
@@ -22,11 +23,21 @@ export default (props) => {
|
22
|
23
|
value: 70,
|
23
|
24
|
},
|
24
|
25
|
];
|
|
26
|
+
|
25
|
27
|
const config = {
|
26
|
|
- color: ['#FB9900', '#355C9C', '#23E8AE', '#E63404'],
|
27
|
|
- pieStyle: {
|
28
|
|
- strokeOpacity: 0,
|
29
|
|
- lineWidth: 0,
|
|
28
|
+ // color: [
|
|
29
|
+ // 'r(0.5, 0.5, 1) 0:rgba(225,225,225,0.0) 0.25:#FB9900 0.5:rgba(225,225,225,0.0) 0.75:1:#FB9900 1:#FB9900',
|
|
30
|
+ // 'r(0.5, 0.5, 1) 0:rgba(225,225,225,0.0) 1:#23E8AE',
|
|
31
|
+ // 'r(0.5, 0.5, 1) 0:rgba(225,225,225,0.0) 1:#E63404',
|
|
32
|
+ // ],
|
|
33
|
+ // pieStyle: {
|
|
34
|
+ // strokeOpacity: 0,
|
|
35
|
+ // lineWidth: 0,
|
|
36
|
+ // },
|
|
37
|
+ pieStyle: () => {
|
|
38
|
+ return {
|
|
39
|
+ fill: `p(n)${RedRing}`,
|
|
40
|
+ };
|
30
|
41
|
},
|
31
|
42
|
statistic: {
|
32
|
43
|
title: false,
|
|
@@ -55,7 +66,6 @@ export default (props) => {
|
55
|
66
|
interactions: [
|
56
|
67
|
{
|
57
|
68
|
type: 'element-selected',
|
58
|
|
-
|
59
|
69
|
},
|
60
|
70
|
{
|
61
|
71
|
type: 'element-active',
|