@carbon/charts 0.30.5 → 0.30.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +14 -8
- package/build/demo/data/bar.d.ts +56 -94
- package/build/demo/data/bubble.d.ts +58 -13
- package/build/demo/data/donut.d.ts +3 -6
- package/build/demo/data/line.d.ts +35 -35
- package/build/demo/data/pie.d.ts +3 -6
- package/build/demo/data/scatter.d.ts +33 -20
- package/build/demo/data/step.d.ts +15 -16
- package/build/demo/data/time-series-axis.d.ts +12 -48
- package/build/src/charts/bar-grouped.d.ts +2 -2
- package/build/src/charts/bar-simple.d.ts +2 -4
- package/build/src/components/essentials/legend.d.ts +0 -4
- package/build/src/components/essentials/tooltip-bar.d.ts +1 -1
- package/build/src/components/essentials/tooltip-pie.d.ts +5 -0
- package/build/src/components/essentials/tooltip-scatter.d.ts +1 -1
- package/build/src/components/graphs/bar-grouped.d.ts +6 -4
- package/build/src/components/graphs/bar-simple.d.ts +0 -1
- package/build/src/components/graphs/bar-stacked.d.ts +0 -1
- package/build/src/components/graphs/bubble.d.ts +0 -1
- package/build/src/components/graphs/line.d.ts +3 -1
- package/build/src/components/graphs/pie.d.ts +0 -1
- package/build/src/components/graphs/scatter.d.ts +0 -1
- package/build/src/components/index.d.ts +1 -0
- package/build/src/interfaces/axis-scales.d.ts +4 -16
- package/build/src/interfaces/charts.d.ts +23 -1
- package/build/src/interfaces/enums.d.ts +0 -4
- package/build/src/interfaces/events.d.ts +20 -0
- package/build/src/model-pie.d.ts +1 -7
- package/build/src/model.d.ts +31 -13
- package/build/src/services/scales-cartesian.d.ts +11 -3
- package/build/src/tools.d.ts +2 -2
- package/build/stories/tutorials.stories.d.ts +1 -0
- package/bundle.js +1 -1
- package/chart.js +2 -2
- package/chart.js.map +1 -1
- package/charts/bar-grouped.d.ts +2 -2
- package/charts/bar-grouped.js.map +1 -1
- package/charts/bar-simple.d.ts +2 -4
- package/charts/bar-simple.js +0 -2
- package/charts/bar-simple.js.map +1 -1
- package/charts/donut.js +2 -2
- package/charts/donut.js.map +1 -1
- package/charts/pie.js +2 -2
- package/charts/pie.js.map +1 -1
- package/components/axes/grid.js +12 -19
- package/components/axes/grid.js.map +1 -1
- package/components/component.js +1 -1
- package/components/component.js.map +1 -1
- package/components/essentials/legend.d.ts +0 -4
- package/components/essentials/legend.js +8 -22
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/title.js +4 -4
- package/components/essentials/title.js.map +1 -1
- package/components/essentials/tooltip-bar.d.ts +1 -1
- package/components/essentials/tooltip-bar.js +13 -5
- package/components/essentials/tooltip-bar.js.map +1 -1
- package/components/essentials/tooltip-pie.d.ts +5 -0
- package/components/essentials/tooltip-pie.js +40 -0
- package/components/essentials/tooltip-pie.js.map +1 -0
- package/components/essentials/tooltip-scatter.d.ts +1 -1
- package/components/essentials/tooltip-scatter.js +8 -6
- package/components/essentials/tooltip-scatter.js.map +1 -1
- package/components/essentials/tooltip.js +14 -17
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/bar-grouped.d.ts +6 -4
- package/components/graphs/bar-grouped.js +60 -32
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.d.ts +0 -1
- package/components/graphs/bar-simple.js +12 -30
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.d.ts +0 -1
- package/components/graphs/bar-stacked.js +26 -108
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/bar.js.map +1 -1
- package/components/graphs/bubble.d.ts +0 -1
- package/components/graphs/bubble.js +16 -20
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/donut.js +1 -1
- package/components/graphs/donut.js.map +1 -1
- package/components/graphs/line.d.ts +3 -1
- package/components/graphs/line.js +41 -30
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/pie.d.ts +0 -1
- package/components/graphs/pie.js +13 -20
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/scatter.d.ts +0 -1
- package/components/graphs/scatter.js +26 -41
- package/components/graphs/scatter.js.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/configuration.js +7 -0
- package/configuration.js.map +1 -1
- package/demo/data/bar.d.ts +56 -94
- package/demo/data/bar.js +106 -271
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bubble.d.ts +58 -13
- package/demo/data/bubble.js +74 -174
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/donut.d.ts +3 -6
- package/demo/data/index.js +22 -4
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +35 -35
- package/demo/data/line.js +70 -196
- package/demo/data/line.js.map +1 -1
- package/demo/data/pie.d.ts +3 -6
- package/demo/data/pie.js +8 -10
- package/demo/data/pie.js.map +1 -1
- package/demo/data/scatter.d.ts +33 -20
- package/demo/data/scatter.js +50 -68
- package/demo/data/scatter.js.map +1 -1
- package/demo/data/step.d.ts +15 -16
- package/demo/data/time-series-axis.d.ts +12 -48
- package/demo/data/time-series-axis.js +34 -46
- package/demo/data/time-series-axis.js.map +1 -1
- package/demo/styles.css +28 -0
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +38 -37
- package/interfaces/axis-scales.d.ts +4 -16
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +23 -1
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.d.ts +0 -4
- package/interfaces/enums.js +0 -5
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.d.ts +20 -0
- package/interfaces/events.js +23 -0
- package/interfaces/events.js.map +1 -1
- package/model-pie.d.ts +1 -7
- package/model-pie.js +2 -107
- package/model-pie.js.map +1 -1
- package/model.d.ts +31 -13
- package/model.js +200 -76
- package/model.js.map +1 -1
- package/package.json +3 -1
- package/services/essentials/dom-utils.js +3 -2
- package/services/essentials/dom-utils.js.map +1 -1
- package/services/scales-cartesian.d.ts +11 -3
- package/services/scales-cartesian.js +104 -122
- package/services/scales-cartesian.js.map +1 -1
- package/tools.d.ts +2 -2
- package/tools.js +23 -2
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +87 -88
- package/build/src/model-simple-bar.d.ts +0 -11
- package/model-simple-bar.d.ts +0 -11
- package/model-simple-bar.js +0 -88
- package/model-simple-bar.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.30.9](https://github.com/IBM/carbon-charts/compare/v0.30.8...v0.30.9) (2020-04-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **bar-stacked:** render 0 value bars ([425e11d](https://github.com/IBM/carbon-charts/commit/425e11d9dacb8bbaf9740759754eab1f0aa45843))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.30.8](https://github.com/IBM/carbon-charts/compare/v0.30.7...v0.30.8) (2020-04-03)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @carbon/charts
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.30.7](https://github.com/IBM/carbon-charts/compare/v0.30.6...v0.30.7) (2020-03-31)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **core:** update import path carbon-components ([e9fca73](https://github.com/IBM/carbon-charts/commit/e9fca73cd3768b1b85247a2798908c26da99216b)), closes [#546](https://github.com/IBM/carbon-charts/issues/546)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [0.30.6](https://github.com/IBM/carbon-charts/compare/v0.30.5...v0.30.6) (2020-03-30)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @carbon/charts
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [0.30.5](https://github.com/IBM/carbon-charts/compare/v0.30.4...v0.30.5) (2020-03-30)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @carbon/charts
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Carbon Charting components
|
|
4
4
|
|
|
5
|
-
## Getting
|
|
5
|
+
## Getting started
|
|
6
6
|
|
|
7
7
|
Run the following command using [npm](https://www.npmjs.com/):
|
|
8
8
|
|
|
@@ -17,15 +17,21 @@ instead:
|
|
|
17
17
|
yarn add @carbon/charts d3
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Step-by-step
|
|
20
|
+
## Step-by-step instructions
|
|
21
21
|
[Read on carbondesignsystem.com](https://www.carbondesignsystem.com/data-visualization/getting-started/vanilla)
|
|
22
22
|
|
|
23
|
-
##
|
|
24
|
-
[
|
|
23
|
+
## Codesandbox examples
|
|
24
|
+
[Sample use cases can be seen here](https://carbon-design-system.github.io/carbon-charts).
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
Although we will definitely introduce new models in the future as we start shipping new components such as maps, Data and options follow the same model in all charts, with minor exceptions and differences in specific components, .
|
|
26
|
+
**When opening the link above**, click on the **Edit on Codesandbox** button for each demo to see an isolated project showing you how to reproduce the demo.
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
## Charting data & options
|
|
29
|
+
Although we will definitely introduce new models in the future as we start shipping new components such as maps, Data and options follow the same model in all charts, with minor exceptions and differences in specific components.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
For instance in the case of a donut chart you're able to pass in an additional field called `center` in your options configuring the donut center.
|
|
32
|
+
|
|
33
|
+
For instructions on using the **tabular data format**, see [here](https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format)
|
|
34
|
+
|
|
35
|
+
There are also additional options available depending on the chart type being used, [see our demo examples here](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/demo/data).
|
|
36
|
+
|
|
37
|
+
Customizable options (specific to chart type) can be found [here](https://carbon-design-system.github.io/carbon-charts/documentation/modules/_interfaces_charts_.html)
|
package/build/demo/data/bar.d.ts
CHANGED
|
@@ -1,57 +1,50 @@
|
|
|
1
1
|
export declare const groupedBarData: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
2
|
+
group: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
8
6
|
export declare const groupedBarOptions: {
|
|
9
7
|
title: string;
|
|
10
8
|
axes: {
|
|
11
9
|
left: {
|
|
12
|
-
|
|
10
|
+
mapsTo: string;
|
|
13
11
|
};
|
|
14
12
|
bottom: {
|
|
15
13
|
scaleType: string;
|
|
16
|
-
|
|
14
|
+
mapsTo: string;
|
|
17
15
|
};
|
|
18
16
|
};
|
|
19
17
|
};
|
|
20
18
|
export declare const groupedHorizontalBarData: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
19
|
+
group: string;
|
|
20
|
+
key: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
27
23
|
export declare const groupedHorizontalBarOptions: {
|
|
28
24
|
title: string;
|
|
29
25
|
axes: {
|
|
30
26
|
left: {
|
|
31
27
|
scaleType: string;
|
|
32
|
-
|
|
28
|
+
mapsTo: string;
|
|
33
29
|
};
|
|
34
30
|
bottom: {
|
|
35
|
-
|
|
31
|
+
mapsTo: string;
|
|
36
32
|
};
|
|
37
33
|
};
|
|
38
34
|
};
|
|
39
35
|
export declare const simpleBarData: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
data: number[];
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
36
|
+
group: string;
|
|
37
|
+
value: number;
|
|
38
|
+
}[];
|
|
46
39
|
export declare const simpleBarOptions: {
|
|
47
40
|
title: string;
|
|
48
41
|
axes: {
|
|
49
42
|
left: {
|
|
50
|
-
|
|
43
|
+
mapsTo: string;
|
|
51
44
|
};
|
|
52
45
|
bottom: {
|
|
46
|
+
mapsTo: string;
|
|
53
47
|
scaleType: string;
|
|
54
|
-
secondary: boolean;
|
|
55
48
|
};
|
|
56
49
|
};
|
|
57
50
|
};
|
|
@@ -59,53 +52,45 @@ export declare const simpleBarFixedDomainOptions: {
|
|
|
59
52
|
title: string;
|
|
60
53
|
axes: {
|
|
61
54
|
left: {
|
|
62
|
-
|
|
55
|
+
mapsTo: string;
|
|
63
56
|
domain: number[];
|
|
64
57
|
};
|
|
65
58
|
bottom: {
|
|
66
59
|
scaleType: string;
|
|
67
|
-
|
|
60
|
+
mapsTo: string;
|
|
68
61
|
};
|
|
69
62
|
};
|
|
70
63
|
};
|
|
71
64
|
export declare const simpleHorizontalBarData: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
data: number[];
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
65
|
+
group: string;
|
|
66
|
+
value: number;
|
|
67
|
+
}[];
|
|
78
68
|
export declare const simpleHorizontalBarOptions: {
|
|
79
69
|
title: string;
|
|
80
70
|
axes: {
|
|
81
71
|
left: {
|
|
82
|
-
|
|
72
|
+
mapsTo: string;
|
|
83
73
|
scaleType: string;
|
|
84
74
|
};
|
|
85
75
|
bottom: {
|
|
86
|
-
|
|
76
|
+
mapsTo: string;
|
|
87
77
|
};
|
|
88
78
|
};
|
|
89
79
|
};
|
|
90
80
|
export declare const simpleBarTimeSeriesData: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
date: Date;
|
|
96
|
-
value: number;
|
|
97
|
-
}[];
|
|
98
|
-
}[];
|
|
99
|
-
};
|
|
81
|
+
group: string;
|
|
82
|
+
date: Date;
|
|
83
|
+
value: number;
|
|
84
|
+
}[];
|
|
100
85
|
export declare const simpleBarTimeSeriesOptions: {
|
|
101
86
|
title: string;
|
|
102
87
|
axes: {
|
|
103
88
|
left: {
|
|
104
|
-
|
|
89
|
+
mapsTo: string;
|
|
105
90
|
};
|
|
106
91
|
bottom: {
|
|
92
|
+
mapsTo: string;
|
|
107
93
|
scaleType: string;
|
|
108
|
-
secondary: boolean;
|
|
109
94
|
};
|
|
110
95
|
};
|
|
111
96
|
timeScale: {
|
|
@@ -116,84 +101,68 @@ export declare const simpleHorizontalBarTimeSeriesOptions: {
|
|
|
116
101
|
title: string;
|
|
117
102
|
axes: {
|
|
118
103
|
left: {
|
|
104
|
+
mapsTo: string;
|
|
119
105
|
scaleType: string;
|
|
120
|
-
primary: boolean;
|
|
121
106
|
};
|
|
122
107
|
bottom: {
|
|
123
|
-
|
|
108
|
+
mapsTo: string;
|
|
124
109
|
};
|
|
125
110
|
};
|
|
126
111
|
};
|
|
127
112
|
export declare const simpleHorizontalBarTimeSeriesData: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
date: Date;
|
|
133
|
-
value: number;
|
|
134
|
-
}[];
|
|
135
|
-
}[];
|
|
136
|
-
};
|
|
113
|
+
group: string;
|
|
114
|
+
date: Date;
|
|
115
|
+
value: number;
|
|
116
|
+
}[];
|
|
137
117
|
export declare const stackedBarData: {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}[];
|
|
143
|
-
};
|
|
118
|
+
group: string;
|
|
119
|
+
key: string;
|
|
120
|
+
value: number;
|
|
121
|
+
}[];
|
|
144
122
|
export declare const stackedBarOptions: {
|
|
145
123
|
title: string;
|
|
146
124
|
axes: {
|
|
147
125
|
left: {
|
|
148
|
-
|
|
126
|
+
mapsTo: string;
|
|
149
127
|
stacked: boolean;
|
|
150
128
|
};
|
|
151
129
|
bottom: {
|
|
130
|
+
mapsTo: string;
|
|
152
131
|
scaleType: string;
|
|
153
|
-
secondary: boolean;
|
|
154
132
|
};
|
|
155
133
|
};
|
|
156
134
|
};
|
|
157
135
|
export declare const stackedHorizontalBarData: {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}[];
|
|
163
|
-
};
|
|
136
|
+
group: string;
|
|
137
|
+
key: string;
|
|
138
|
+
value: number;
|
|
139
|
+
}[];
|
|
164
140
|
export declare const stackedHorizontalBarOptions: {
|
|
165
141
|
title: string;
|
|
166
142
|
axes: {
|
|
167
143
|
left: {
|
|
168
144
|
scaleType: string;
|
|
169
|
-
primary: boolean;
|
|
170
145
|
};
|
|
171
146
|
bottom: {
|
|
172
147
|
stacked: boolean;
|
|
173
|
-
secondary: boolean;
|
|
174
148
|
};
|
|
175
149
|
};
|
|
176
150
|
};
|
|
177
151
|
export declare const stackedBarTimeSeriesData: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
date: Date;
|
|
183
|
-
value: number;
|
|
184
|
-
}[];
|
|
185
|
-
}[];
|
|
186
|
-
};
|
|
152
|
+
group: string;
|
|
153
|
+
date: Date;
|
|
154
|
+
value: number;
|
|
155
|
+
}[];
|
|
187
156
|
export declare const stackedBarTimeSeriesOptions: {
|
|
188
157
|
title: string;
|
|
189
158
|
axes: {
|
|
190
159
|
left: {
|
|
191
|
-
|
|
160
|
+
mapsTo: string;
|
|
192
161
|
stacked: boolean;
|
|
193
162
|
};
|
|
194
163
|
bottom: {
|
|
164
|
+
mapsTo: string;
|
|
195
165
|
scaleType: string;
|
|
196
|
-
secondary: boolean;
|
|
197
166
|
};
|
|
198
167
|
};
|
|
199
168
|
};
|
|
@@ -201,22 +170,15 @@ export declare const stackedHorizontalBarTimeSeriesOptions: {
|
|
|
201
170
|
title: string;
|
|
202
171
|
axes: {
|
|
203
172
|
left: {
|
|
204
|
-
primary: boolean;
|
|
205
173
|
scaleType: string;
|
|
206
174
|
};
|
|
207
175
|
bottom: {
|
|
208
176
|
stacked: boolean;
|
|
209
|
-
secondary: boolean;
|
|
210
177
|
};
|
|
211
178
|
};
|
|
212
179
|
};
|
|
213
180
|
export declare const stackedHorizontalBarTimeSeriesData: {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
date: Date;
|
|
219
|
-
value: number;
|
|
220
|
-
}[];
|
|
221
|
-
}[];
|
|
222
|
-
};
|
|
181
|
+
group: string;
|
|
182
|
+
date: Date;
|
|
183
|
+
value: number;
|
|
184
|
+
}[];
|
|
@@ -1,24 +1,69 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export declare const bubbleDoubleLinearData: {
|
|
2
|
+
group: string;
|
|
3
|
+
sales: number;
|
|
4
|
+
profit: number;
|
|
5
|
+
surplus: number;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const bubbleDoubleLinearOptions: {
|
|
8
|
+
title: string;
|
|
9
|
+
axes: {
|
|
10
|
+
bottom: {
|
|
11
|
+
title: string;
|
|
12
|
+
mapsTo: string;
|
|
13
|
+
includeZero: boolean;
|
|
14
|
+
};
|
|
15
|
+
left: {
|
|
16
|
+
title: string;
|
|
17
|
+
mapsTo: string;
|
|
18
|
+
includeZero: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
bubble: {
|
|
22
|
+
radiusMapsTo: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const bubbleDiscreteData: {
|
|
26
|
+
group: string;
|
|
27
|
+
key: string;
|
|
28
|
+
value: number;
|
|
29
|
+
surplus: number;
|
|
30
|
+
}[];
|
|
31
|
+
export declare const bubbleDiscreteOptions: {
|
|
32
|
+
title: string;
|
|
33
|
+
axes: {
|
|
34
|
+
bottom: {
|
|
35
|
+
title: string;
|
|
36
|
+
scaleType: string;
|
|
37
|
+
mapsTo: string;
|
|
38
|
+
};
|
|
39
|
+
left: {
|
|
40
|
+
mapsTo: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
bubble: {
|
|
44
|
+
radiusMapsTo: string;
|
|
45
|
+
};
|
|
11
46
|
};
|
|
12
|
-
export declare const
|
|
47
|
+
export declare const bubbleTimeSeriesData: ({
|
|
48
|
+
group: string;
|
|
49
|
+
date: Date;
|
|
50
|
+
value: number;
|
|
51
|
+
} & {
|
|
52
|
+
surplus: number;
|
|
53
|
+
})[];
|
|
54
|
+
export declare const bubbleTimeSeriesOptions: {
|
|
13
55
|
title: string;
|
|
14
56
|
axes: {
|
|
15
57
|
bottom: {
|
|
16
58
|
title: string;
|
|
17
59
|
scaleType: string;
|
|
18
|
-
|
|
60
|
+
mapsTo: string;
|
|
19
61
|
};
|
|
20
62
|
left: {
|
|
21
|
-
|
|
63
|
+
mapsTo: string;
|
|
22
64
|
};
|
|
23
65
|
};
|
|
66
|
+
bubble: {
|
|
67
|
+
radiusMapsTo: string;
|
|
68
|
+
};
|
|
24
69
|
};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export declare const lineData: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare const lineData: ({
|
|
2
|
+
group: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: number;
|
|
5
|
+
audienceSize?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
group: string;
|
|
8
|
+
key: string;
|
|
9
|
+
value: number;
|
|
10
|
+
audienceSize: number;
|
|
11
|
+
})[];
|
|
8
12
|
export declare const lineOptions: {
|
|
9
13
|
title: string;
|
|
10
14
|
axes: {
|
|
11
15
|
bottom: {
|
|
12
16
|
title: string;
|
|
17
|
+
mapsTo: string;
|
|
13
18
|
scaleType: string;
|
|
14
|
-
secondary: boolean;
|
|
15
19
|
};
|
|
16
20
|
left: {
|
|
17
|
-
|
|
21
|
+
mapsTo: string;
|
|
22
|
+
title: string;
|
|
23
|
+
scaleType: string;
|
|
18
24
|
};
|
|
19
25
|
};
|
|
20
26
|
};
|
|
21
27
|
export declare const lineTimeSeriesData: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
date: Date;
|
|
27
|
-
value: number;
|
|
28
|
-
}[];
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
28
|
+
group: string;
|
|
29
|
+
date: Date;
|
|
30
|
+
value: number;
|
|
31
|
+
}[];
|
|
31
32
|
export declare const lineTimeSeriesOptions: {
|
|
32
33
|
title: string;
|
|
33
34
|
axes: {
|
|
34
|
-
left: {
|
|
35
|
-
secondary: boolean;
|
|
36
|
-
};
|
|
37
35
|
bottom: {
|
|
36
|
+
title: string;
|
|
37
|
+
mapsTo: string;
|
|
38
|
+
scaleType: string;
|
|
39
|
+
};
|
|
40
|
+
left: {
|
|
41
|
+
mapsTo: string;
|
|
42
|
+
title: string;
|
|
38
43
|
scaleType: string;
|
|
39
|
-
primary: boolean;
|
|
40
44
|
};
|
|
41
45
|
};
|
|
42
46
|
curve: string;
|
|
43
47
|
};
|
|
44
48
|
export declare const lineTimeSeriesDataRotatedTicks: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
date: Date;
|
|
50
|
-
value: number;
|
|
51
|
-
}[];
|
|
52
|
-
}[];
|
|
53
|
-
};
|
|
49
|
+
group: string;
|
|
50
|
+
date: Date;
|
|
51
|
+
value: number;
|
|
52
|
+
}[];
|
|
54
53
|
export declare const lineTimeSeriesRotatedTicksOptions: {
|
|
55
54
|
title: string;
|
|
55
|
+
width: string;
|
|
56
56
|
axes: {
|
|
57
|
-
left: {
|
|
58
|
-
secondary: boolean;
|
|
59
|
-
};
|
|
60
57
|
bottom: {
|
|
61
58
|
scaleType: string;
|
|
62
|
-
|
|
59
|
+
mapsTo: string;
|
|
60
|
+
};
|
|
61
|
+
left: {
|
|
62
|
+
mapsTo: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
};
|
package/build/demo/data/pie.d.ts
CHANGED
|
@@ -1,43 +1,56 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export declare const doubleLinearScatterData: {
|
|
2
|
+
group: string;
|
|
3
|
+
employees: number;
|
|
4
|
+
sales: number;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const doubleLinearScatterOptions: {
|
|
7
|
+
title: string;
|
|
8
|
+
axes: {
|
|
9
|
+
bottom: {
|
|
10
|
+
title: string;
|
|
11
|
+
mapsTo: string;
|
|
12
|
+
scaleType: string;
|
|
13
|
+
};
|
|
14
|
+
left: {
|
|
15
|
+
title: string;
|
|
16
|
+
mapsTo: string;
|
|
17
|
+
scaleType: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
7
20
|
};
|
|
8
|
-
export declare const
|
|
21
|
+
export declare const scatterDiscreteData: {
|
|
22
|
+
group: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: number;
|
|
25
|
+
}[];
|
|
26
|
+
export declare const scatterDiscreteOptions: {
|
|
9
27
|
title: string;
|
|
10
28
|
axes: {
|
|
11
29
|
bottom: {
|
|
12
30
|
title: string;
|
|
13
31
|
scaleType: string;
|
|
14
|
-
|
|
32
|
+
mapsTo: string;
|
|
15
33
|
};
|
|
16
34
|
left: {
|
|
17
|
-
|
|
35
|
+
mapsTo: string;
|
|
18
36
|
};
|
|
19
37
|
};
|
|
20
38
|
};
|
|
21
39
|
export declare const scatterTimeSeriesData: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
date: Date;
|
|
27
|
-
value: number;
|
|
28
|
-
}[];
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
40
|
+
group: string;
|
|
41
|
+
date: Date;
|
|
42
|
+
value: number;
|
|
43
|
+
}[];
|
|
31
44
|
export declare const scatterTimeSeriesOptions: {
|
|
32
45
|
title: string;
|
|
33
46
|
axes: {
|
|
34
47
|
bottom: {
|
|
35
48
|
title: string;
|
|
36
49
|
scaleType: string;
|
|
37
|
-
|
|
50
|
+
mapsTo: string;
|
|
38
51
|
};
|
|
39
52
|
left: {
|
|
40
|
-
|
|
53
|
+
mapsTo: string;
|
|
41
54
|
};
|
|
42
55
|
};
|
|
43
56
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
export declare const stepOptions: any;
|
|
2
|
-
export declare const stepData: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export declare const stepData: ({
|
|
3
|
+
group: string;
|
|
4
|
+
key: string;
|
|
5
|
+
value: number;
|
|
6
|
+
audienceSize?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
group: string;
|
|
9
|
+
key: string;
|
|
10
|
+
value: number;
|
|
11
|
+
audienceSize: number;
|
|
12
|
+
})[];
|
|
9
13
|
export declare const stepTimeSeriesOptions: any;
|
|
10
14
|
export declare const stepTimeSeriesData: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
date: Date;
|
|
16
|
-
value: number;
|
|
17
|
-
}[];
|
|
18
|
-
}[];
|
|
19
|
-
};
|
|
15
|
+
group: string;
|
|
16
|
+
date: Date;
|
|
17
|
+
value: number;
|
|
18
|
+
}[];
|