1 | var 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 | var guide = {
|
25 | line: {
|
26 | style: {
|
27 | stroke: '#a3a3a3',
|
28 | lineWidth: 1
|
29 | },
|
30 | offsetX: 0,
|
31 | offsetY: 0
|
32 | },
|
33 | text: {
|
34 | style: {
|
35 | fill: '#787878',
|
36 |
|
37 | textBaseline: 'middle'
|
38 | },
|
39 | offsetX: 0,
|
40 | offsetY: 0
|
41 | },
|
42 | rect: {
|
43 | style: {
|
44 | fill: '#fafafa'
|
45 | }
|
46 | },
|
47 | arc: {
|
48 | style: {
|
49 | stroke: '#a3a3a3'
|
50 | }
|
51 | },
|
52 | html: {
|
53 | offsetX: 0,
|
54 | offsetY: 0,
|
55 | alignX: 'center',
|
56 | alignY: 'middle'
|
57 | },
|
58 | tag: {
|
59 | offsetX: 0,
|
60 | offsetY: 0,
|
61 | side: 4,
|
62 | background: {
|
63 | padding: 5,
|
64 | radius: 2,
|
65 | fill: '#1890FF'
|
66 | },
|
67 | textStyle: {
|
68 | fontSize: 12,
|
69 | fill: '#fff',
|
70 | textAlign: 'center',
|
71 | textBaseline: 'middle'
|
72 | }
|
73 | },
|
74 | point: {
|
75 | offsetX: 0,
|
76 | offsetY: 0,
|
77 | style: {
|
78 | fill: '#fff',
|
79 | r: 3,
|
80 | lineWidth: 2,
|
81 | stroke: '#1890ff'
|
82 | }
|
83 | },
|
84 | polyline: {
|
85 | style: {
|
86 | lineWidth: '4px',
|
87 | lineJoin: 'round',
|
88 | lineCap: 'round'
|
89 | },
|
90 | offsetX: 0,
|
91 | offsetY: 0
|
92 | }
|
93 | };
|
94 | var chart = {
|
95 | padding: ['30px', '30px', '30px', '30px']
|
96 | };
|
97 | export default {
|
98 | chart: chart,
|
99 | colors: ['#1890FF', '#2FC25B', '#FACC14', '#223273', '#8543E0', '#13C2C2', '#3436C7', '#F04864'],
|
100 | shapes: {
|
101 | line: ['line', 'dash', 'smooth'],
|
102 | point: ['circle', 'hollowCircle', 'rect'],
|
103 | area: ['area', 'smooth'],
|
104 | interval: ['rect', 'pyramid', 'funnel']
|
105 | },
|
106 | sizes: ['4px', '6px', '8px', '10px', '12px'],
|
107 | shape: {
|
108 | line: {
|
109 | default: {
|
110 | lineWidth: '4px',
|
111 | lineJoin: 'round',
|
112 | lineCap: 'round'
|
113 | },
|
114 | smooth: {
|
115 | smooth: true
|
116 | },
|
117 | 'step-start': {
|
118 | step: 'start'
|
119 | },
|
120 | 'step-middle': {
|
121 | step: 'middle'
|
122 | },
|
123 | 'step-end': {
|
124 | step: 'end'
|
125 | },
|
126 | dash: {
|
127 | lineDash: ['8px', '8px']
|
128 | }
|
129 | },
|
130 | point: {
|
131 | default: {
|
132 | size: '6px'
|
133 | },
|
134 | hollowCircle: {
|
135 | lineWidth: '2px'
|
136 | }
|
137 | },
|
138 | area: {
|
139 | default: {
|
140 | fillOpacity: 0.1
|
141 | }
|
142 | },
|
143 | interval: {
|
144 | default: {}
|
145 | }
|
146 | },
|
147 | axis: axis,
|
148 | guide: guide
|
149 | }; |
\ | No newline at end of file |