UNPKG

2.13 kBJavaScriptView Raw
1var 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};
24var 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 // textAlign: 'center',
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};
85var chart = {
86 padding: ['30px', '30px', '30px', '30px']
87};
88export default {
89 chart: chart,
90 colors: ['#1890FF', '#2FC25B', '#FACC14', '#223273', '#8543E0', '#13C2C2', '#3436C7', '#F04864'],
91 shapes: {
92 line: ['line', 'dash', 'smooth'],
93 point: ['circle', 'hollowCircle', 'rect'],
94 area: ['area', 'smooth'],
95 interval: ['rect', 'pyramid', 'funnel']
96 },
97 sizes: ['4px', '6px', '8px', '10px', '12px'],
98 shape: {
99 line: {
100 default: {
101 lineWidth: '4px',
102 lineJoin: 'round',
103 lineCap: 'round'
104 },
105 smooth: {
106 smooth: true
107 },
108 dash: {
109 lineDash: ['8px', '8px']
110 }
111 },
112 point: {
113 default: {
114 size: '6px'
115 },
116 hollowCircle: {
117 lineWidth: '2px'
118 }
119 },
120 area: {
121 default: {
122 fillOpacity: 0.1
123 }
124 },
125 interval: {
126 default: {}
127 }
128 },
129 axis: axis,
130 guide: guide
131};
\No newline at end of file