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 | polyline: {
|
86 | style: {
|
87 | lineWidth: '4px',
|
88 | lineJoin: 'round',
|
89 | lineCap: 'round',
|
90 | },
|
91 | offsetX: 0,
|
92 | offsetY: 0,
|
93 | },
|
94 | };
|
95 |
|
96 | const chart = {
|
97 | padding: ['30px', '30px', '30px', '30px'],
|
98 | };
|
99 |
|
100 | export default {
|
101 | chart,
|
102 | colors: ['#1890FF', '#2FC25B', '#FACC14', '#223273', '#8543E0', '#13C2C2', '#3436C7', '#F04864'],
|
103 | shapes: {
|
104 | line: ['line', 'dash', 'smooth'],
|
105 | point: ['circle', 'hollowCircle', 'rect'],
|
106 | area: ['area', 'smooth'],
|
107 | interval: ['rect', 'pyramid', 'funnel'],
|
108 | },
|
109 | sizes: ['4px', '6px', '8px', '10px', '12px'],
|
110 | shape: {
|
111 | line: {
|
112 | default: {
|
113 | lineWidth: '4px',
|
114 | lineJoin: 'round',
|
115 | lineCap: 'round',
|
116 | },
|
117 | smooth: {
|
118 | smooth: true,
|
119 | },
|
120 | 'step-start': {
|
121 | step: 'start',
|
122 | },
|
123 | 'step-middle': {
|
124 | step: 'middle',
|
125 | },
|
126 | 'step-end': {
|
127 | step: 'end',
|
128 | },
|
129 | dash: {
|
130 | lineDash: ['8px', '8px'],
|
131 | },
|
132 | },
|
133 | point: {
|
134 | default: {
|
135 | size: '6px',
|
136 | },
|
137 | hollowCircle: {
|
138 | lineWidth: '2px',
|
139 | },
|
140 | },
|
141 | area: {
|
142 | default: {
|
143 | fillOpacity: 0.1,
|
144 | },
|
145 | },
|
146 | interval: {
|
147 | default: {},
|
148 | },
|
149 | },
|
150 | axis,
|
151 | guide,
|
152 | };
|