@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.
Files changed (152) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +14 -8
  3. package/build/demo/data/bar.d.ts +56 -94
  4. package/build/demo/data/bubble.d.ts +58 -13
  5. package/build/demo/data/donut.d.ts +3 -6
  6. package/build/demo/data/line.d.ts +35 -35
  7. package/build/demo/data/pie.d.ts +3 -6
  8. package/build/demo/data/scatter.d.ts +33 -20
  9. package/build/demo/data/step.d.ts +15 -16
  10. package/build/demo/data/time-series-axis.d.ts +12 -48
  11. package/build/src/charts/bar-grouped.d.ts +2 -2
  12. package/build/src/charts/bar-simple.d.ts +2 -4
  13. package/build/src/components/essentials/legend.d.ts +0 -4
  14. package/build/src/components/essentials/tooltip-bar.d.ts +1 -1
  15. package/build/src/components/essentials/tooltip-pie.d.ts +5 -0
  16. package/build/src/components/essentials/tooltip-scatter.d.ts +1 -1
  17. package/build/src/components/graphs/bar-grouped.d.ts +6 -4
  18. package/build/src/components/graphs/bar-simple.d.ts +0 -1
  19. package/build/src/components/graphs/bar-stacked.d.ts +0 -1
  20. package/build/src/components/graphs/bubble.d.ts +0 -1
  21. package/build/src/components/graphs/line.d.ts +3 -1
  22. package/build/src/components/graphs/pie.d.ts +0 -1
  23. package/build/src/components/graphs/scatter.d.ts +0 -1
  24. package/build/src/components/index.d.ts +1 -0
  25. package/build/src/interfaces/axis-scales.d.ts +4 -16
  26. package/build/src/interfaces/charts.d.ts +23 -1
  27. package/build/src/interfaces/enums.d.ts +0 -4
  28. package/build/src/interfaces/events.d.ts +20 -0
  29. package/build/src/model-pie.d.ts +1 -7
  30. package/build/src/model.d.ts +31 -13
  31. package/build/src/services/scales-cartesian.d.ts +11 -3
  32. package/build/src/tools.d.ts +2 -2
  33. package/build/stories/tutorials.stories.d.ts +1 -0
  34. package/bundle.js +1 -1
  35. package/chart.js +2 -2
  36. package/chart.js.map +1 -1
  37. package/charts/bar-grouped.d.ts +2 -2
  38. package/charts/bar-grouped.js.map +1 -1
  39. package/charts/bar-simple.d.ts +2 -4
  40. package/charts/bar-simple.js +0 -2
  41. package/charts/bar-simple.js.map +1 -1
  42. package/charts/donut.js +2 -2
  43. package/charts/donut.js.map +1 -1
  44. package/charts/pie.js +2 -2
  45. package/charts/pie.js.map +1 -1
  46. package/components/axes/grid.js +12 -19
  47. package/components/axes/grid.js.map +1 -1
  48. package/components/component.js +1 -1
  49. package/components/component.js.map +1 -1
  50. package/components/essentials/legend.d.ts +0 -4
  51. package/components/essentials/legend.js +8 -22
  52. package/components/essentials/legend.js.map +1 -1
  53. package/components/essentials/title.js +4 -4
  54. package/components/essentials/title.js.map +1 -1
  55. package/components/essentials/tooltip-bar.d.ts +1 -1
  56. package/components/essentials/tooltip-bar.js +13 -5
  57. package/components/essentials/tooltip-bar.js.map +1 -1
  58. package/components/essentials/tooltip-pie.d.ts +5 -0
  59. package/components/essentials/tooltip-pie.js +40 -0
  60. package/components/essentials/tooltip-pie.js.map +1 -0
  61. package/components/essentials/tooltip-scatter.d.ts +1 -1
  62. package/components/essentials/tooltip-scatter.js +8 -6
  63. package/components/essentials/tooltip-scatter.js.map +1 -1
  64. package/components/essentials/tooltip.js +14 -17
  65. package/components/essentials/tooltip.js.map +1 -1
  66. package/components/graphs/bar-grouped.d.ts +6 -4
  67. package/components/graphs/bar-grouped.js +60 -32
  68. package/components/graphs/bar-grouped.js.map +1 -1
  69. package/components/graphs/bar-simple.d.ts +0 -1
  70. package/components/graphs/bar-simple.js +12 -30
  71. package/components/graphs/bar-simple.js.map +1 -1
  72. package/components/graphs/bar-stacked.d.ts +0 -1
  73. package/components/graphs/bar-stacked.js +26 -108
  74. package/components/graphs/bar-stacked.js.map +1 -1
  75. package/components/graphs/bar.js.map +1 -1
  76. package/components/graphs/bubble.d.ts +0 -1
  77. package/components/graphs/bubble.js +16 -20
  78. package/components/graphs/bubble.js.map +1 -1
  79. package/components/graphs/donut.js +1 -1
  80. package/components/graphs/donut.js.map +1 -1
  81. package/components/graphs/line.d.ts +3 -1
  82. package/components/graphs/line.js +41 -30
  83. package/components/graphs/line.js.map +1 -1
  84. package/components/graphs/pie.d.ts +0 -1
  85. package/components/graphs/pie.js +13 -20
  86. package/components/graphs/pie.js.map +1 -1
  87. package/components/graphs/scatter.d.ts +0 -1
  88. package/components/graphs/scatter.js +26 -41
  89. package/components/graphs/scatter.js.map +1 -1
  90. package/components/index.d.ts +1 -0
  91. package/components/index.js +1 -0
  92. package/components/index.js.map +1 -1
  93. package/configuration.js +7 -0
  94. package/configuration.js.map +1 -1
  95. package/demo/data/bar.d.ts +56 -94
  96. package/demo/data/bar.js +106 -271
  97. package/demo/data/bar.js.map +1 -1
  98. package/demo/data/bubble.d.ts +58 -13
  99. package/demo/data/bubble.js +74 -174
  100. package/demo/data/bubble.js.map +1 -1
  101. package/demo/data/bundle.js +1 -1
  102. package/demo/data/donut.d.ts +3 -6
  103. package/demo/data/index.js +22 -4
  104. package/demo/data/index.js.map +1 -1
  105. package/demo/data/line.d.ts +35 -35
  106. package/demo/data/line.js +70 -196
  107. package/demo/data/line.js.map +1 -1
  108. package/demo/data/pie.d.ts +3 -6
  109. package/demo/data/pie.js +8 -10
  110. package/demo/data/pie.js.map +1 -1
  111. package/demo/data/scatter.d.ts +33 -20
  112. package/demo/data/scatter.js +50 -68
  113. package/demo/data/scatter.js.map +1 -1
  114. package/demo/data/step.d.ts +15 -16
  115. package/demo/data/time-series-axis.d.ts +12 -48
  116. package/demo/data/time-series-axis.js +34 -46
  117. package/demo/data/time-series-axis.js.map +1 -1
  118. package/demo/styles.css +28 -0
  119. package/demo/styles.css.map +1 -1
  120. package/demo/styles.min.css +1 -1
  121. package/demo/styles.min.css.map +1 -1
  122. package/demo/tsconfig.tsbuildinfo +38 -37
  123. package/interfaces/axis-scales.d.ts +4 -16
  124. package/interfaces/axis-scales.js.map +1 -1
  125. package/interfaces/charts.d.ts +23 -1
  126. package/interfaces/charts.js.map +1 -1
  127. package/interfaces/enums.d.ts +0 -4
  128. package/interfaces/enums.js +0 -5
  129. package/interfaces/enums.js.map +1 -1
  130. package/interfaces/events.d.ts +20 -0
  131. package/interfaces/events.js +23 -0
  132. package/interfaces/events.js.map +1 -1
  133. package/model-pie.d.ts +1 -7
  134. package/model-pie.js +2 -107
  135. package/model-pie.js.map +1 -1
  136. package/model.d.ts +31 -13
  137. package/model.js +200 -76
  138. package/model.js.map +1 -1
  139. package/package.json +3 -1
  140. package/services/essentials/dom-utils.js +3 -2
  141. package/services/essentials/dom-utils.js.map +1 -1
  142. package/services/scales-cartesian.d.ts +11 -3
  143. package/services/scales-cartesian.js +104 -122
  144. package/services/scales-cartesian.js.map +1 -1
  145. package/tools.d.ts +2 -2
  146. package/tools.js +23 -2
  147. package/tools.js.map +1 -1
  148. package/tsconfig.tsbuildinfo +87 -88
  149. package/build/src/model-simple-bar.d.ts +0 -11
  150. package/model-simple-bar.d.ts +0 -11
  151. package/model-simple-bar.js +0 -88
  152. 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 Started
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 Instructions
20
+ ## Step-by-step instructions
21
21
  [Read on carbondesignsystem.com](https://www.carbondesignsystem.com/data-visualization/getting-started/vanilla)
22
22
 
23
- ## Sample Project
24
- [![Edit Carbon Charts - Vanilla](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/carbon-charts-vanilla-m9r77)
23
+ ## Codesandbox examples
24
+ [Sample use cases can be seen here](https://carbon-design-system.github.io/carbon-charts).
25
25
 
26
- ## Charting Data & Options
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
- For instance, in the case of pie and donut charts, you would only provide one data set. In the case of donut charts, you can pass in an additional field called `center` in your options configuring the donut center.
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
- There are also additional options available depending on the chart type being used, [for more examples please see here](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/demo/demo-data).
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)
@@ -1,57 +1,50 @@
1
1
  export declare const groupedBarData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: number[];
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
- primary: boolean;
10
+ mapsTo: string;
13
11
  };
14
12
  bottom: {
15
13
  scaleType: string;
16
- secondary: boolean;
14
+ mapsTo: string;
17
15
  };
18
16
  };
19
17
  };
20
18
  export declare const groupedHorizontalBarData: {
21
- labels: string[];
22
- datasets: {
23
- label: string;
24
- data: number[];
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
- primary: boolean;
28
+ mapsTo: string;
33
29
  };
34
30
  bottom: {
35
- secondary: boolean;
31
+ mapsTo: string;
36
32
  };
37
33
  };
38
34
  };
39
35
  export declare const simpleBarData: {
40
- labels: string[];
41
- datasets: {
42
- label: string;
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
- primary: boolean;
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
- primary: boolean;
55
+ mapsTo: string;
63
56
  domain: number[];
64
57
  };
65
58
  bottom: {
66
59
  scaleType: string;
67
- secondary: boolean;
60
+ mapsTo: string;
68
61
  };
69
62
  };
70
63
  };
71
64
  export declare const simpleHorizontalBarData: {
72
- labels: string[];
73
- datasets: {
74
- label: string;
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
- primary: boolean;
72
+ mapsTo: string;
83
73
  scaleType: string;
84
74
  };
85
75
  bottom: {
86
- secondary: boolean;
76
+ mapsTo: string;
87
77
  };
88
78
  };
89
79
  };
90
80
  export declare const simpleBarTimeSeriesData: {
91
- labels: string[];
92
- datasets: {
93
- label: string;
94
- data: {
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
- primary: boolean;
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
- secondary: boolean;
108
+ mapsTo: string;
124
109
  };
125
110
  };
126
111
  };
127
112
  export declare const simpleHorizontalBarTimeSeriesData: {
128
- labels: string[];
129
- datasets: {
130
- label: string;
131
- data: {
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
- labels: string[];
139
- datasets: {
140
- label: string;
141
- data: number[];
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
- primary: boolean;
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
- labels: string[];
159
- datasets: {
160
- label: string;
161
- data: number[];
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
- labels: string[];
179
- datasets: {
180
- label: string;
181
- data: {
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
- primary: boolean;
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
- labels: string[];
215
- datasets: {
216
- label: string;
217
- data: {
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 bubbleData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: {
6
- date: Date;
7
- value: number;
8
- radius: number;
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 bubbleOptions: {
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
- secondary: boolean;
60
+ mapsTo: string;
19
61
  };
20
62
  left: {
21
- primary: boolean;
63
+ mapsTo: string;
22
64
  };
23
65
  };
66
+ bubble: {
67
+ radiusMapsTo: string;
68
+ };
24
69
  };
@@ -1,10 +1,7 @@
1
1
  export declare const donutData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: number[];
6
- }[];
7
- };
2
+ group: string;
3
+ value: number;
4
+ }[];
8
5
  export declare const donutOptions: {
9
6
  title: string;
10
7
  resizable: boolean;
@@ -1,65 +1,65 @@
1
- export declare const lineData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: number[];
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
- primary: boolean;
21
+ mapsTo: string;
22
+ title: string;
23
+ scaleType: string;
18
24
  };
19
25
  };
20
26
  };
21
27
  export declare const lineTimeSeriesData: {
22
- labels: string[];
23
- datasets: {
24
- label: string;
25
- data: {
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
- labels: string[];
46
- datasets: {
47
- label: string;
48
- data: {
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
- primary: boolean;
59
+ mapsTo: string;
60
+ };
61
+ left: {
62
+ mapsTo: string;
63
63
  };
64
64
  };
65
65
  };
@@ -1,10 +1,7 @@
1
1
  export declare const pieData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: number[];
6
- }[];
7
- };
2
+ group: string;
3
+ value: number;
4
+ }[];
8
5
  export declare const pieOptions: {
9
6
  title: string;
10
7
  resizable: boolean;
@@ -1,43 +1,56 @@
1
- export declare const scatterData: {
2
- labels: string[];
3
- datasets: {
4
- label: string;
5
- data: number[];
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 scatterOptions: {
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
- secondary: boolean;
32
+ mapsTo: string;
15
33
  };
16
34
  left: {
17
- primary: boolean;
35
+ mapsTo: string;
18
36
  };
19
37
  };
20
38
  };
21
39
  export declare const scatterTimeSeriesData: {
22
- labels: string[];
23
- datasets: {
24
- label: string;
25
- data: {
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
- secondary: boolean;
50
+ mapsTo: string;
38
51
  };
39
52
  left: {
40
- primary: boolean;
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
- labels: string[];
4
- datasets: {
5
- label: string;
6
- data: number[];
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
- labels: string[];
12
- datasets: {
13
- label: string;
14
- data: {
15
- date: Date;
16
- value: number;
17
- }[];
18
- }[];
19
- };
15
+ group: string;
16
+ date: Date;
17
+ value: number;
18
+ }[];