UNPKG

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