1 | const axis = {
|
2 | labelOffset: '15px',
|
3 | line: {
|
4 | stroke: '#E8E8E8',
|
5 | lineWidth: '1px',
|
6 | },
|
7 | symbol: {
|
8 | fill: '#E8E8E8',
|
9 | radius: '10px',
|
10 | },
|
11 | tickLine: {
|
12 | stroke: '#E8E8E8',
|
13 | },
|
14 | label: {
|
15 | fill: '#808080',
|
16 | fontSize: '20px',
|
17 | },
|
18 | grid: {
|
19 | stroke: '#E8E8E8',
|
20 | lineWidth: '1px',
|
21 | lineDash: ['4px'],
|
22 | },
|
23 | };
|
24 |
|
25 | const guide = {
|
26 | line: {
|
27 | style: {
|
28 | stroke: '#a3a3a3',
|
29 | lineWidth: 1,
|
30 | },
|
31 | offsetX: 0,
|
32 | offsetY: 0,
|
33 | },
|
34 | text: {
|
35 | style: {
|
36 | fill: '#787878',
|
37 |
|
38 | textBaseline: 'middle',
|
39 | },
|
40 | offsetX: 0,
|
41 | offsetY: 0,
|
42 | },
|
43 | rect: {
|
44 | style: {
|
45 | fill: '#fafafa',
|
46 | },
|
47 | },
|
48 | arc: {
|
49 | style: {
|
50 | stroke: '#a3a3a3',
|
51 | },
|
52 | },
|
53 | html: {
|
54 | offsetX: 0,
|
55 | offsetY: 0,
|
56 | alignX: 'center',
|
57 | alignY: 'middle',
|
58 | },
|
59 | tag: {
|
60 | offsetX: 0,
|
61 | offsetY: 0,
|
62 | side: 4,
|
63 | background: {
|
64 | padding: 5,
|
65 | radius: 2,
|
66 | fill: '#1890FF',
|
67 | },
|
68 | textStyle: {
|
69 | fontSize: 12,
|
70 | fill: '#fff',
|
71 | textAlign: 'center',
|
72 | textBaseline: 'middle',
|
73 | },
|
74 | },
|
75 | point: {
|
76 | offsetX: 0,
|
77 | offsetY: 0,
|
78 | style: {
|
79 | fill: '#fff',
|
80 | r: 3,
|
81 | lineWidth: 2,
|
82 | stroke: '#1890ff',
|
83 | },
|
84 | },
|
85 | };
|
86 |
|
87 | const chart = {
|
88 | padding: ['30px', '30px', '30px', '30px'],
|
89 | };
|
90 |
|
91 | export default {
|
92 | chart,
|
93 | colors: ['#1890FF', '#2FC25B', '#FACC14', '#223273', '#8543E0', '#13C2C2', '#3436C7', '#F04864'],
|
94 | shapes: {
|
95 | line: ['line', 'dash', 'smooth'],
|
96 | point: ['circle', 'hollowCircle', 'rect'],
|
97 | area: ['area', 'smooth'],
|
98 | interval: ['rect', 'pyramid', 'funnel'],
|
99 | },
|
100 | sizes: ['4px', '6px', '8px', '10px', '12px'],
|
101 | shape: {
|
102 | line: {
|
103 | default: {
|
104 | lineWidth: '4px',
|
105 | lineJoin: 'round',
|
106 | lineCap: 'round',
|
107 | },
|
108 | smooth: {
|
109 | smooth: true,
|
110 | },
|
111 | dash: {
|
112 | lineDash: ['8px', '8px'],
|
113 | },
|
114 | },
|
115 | point: {
|
116 | default: {
|
117 | size: '6px',
|
118 | },
|
119 | hollowCircle: {
|
120 | lineWidth: '2px',
|
121 | },
|
122 | },
|
123 | area: {
|
124 | default: {
|
125 | fillOpacity: 0.1,
|
126 | },
|
127 | },
|
128 | interval: {
|
129 | default: {},
|
130 | },
|
131 | },
|
132 | axis,
|
133 | guide,
|
134 | };
|