@carbon/charts 0.41.4 → 0.41.5

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 +8 -0
  2. package/axis-chart.js +2 -0
  3. package/axis-chart.js.map +1 -1
  4. package/build/demo/data/area.d.ts +25 -0
  5. package/build/demo/data/bubble.d.ts +24 -0
  6. package/build/demo/data/combo.d.ts +422 -0
  7. package/build/demo/data/index.d.ts +6 -0
  8. package/build/demo/data/line.d.ts +31 -0
  9. package/build/demo/data/scatter.d.ts +31 -0
  10. package/build/src/axis-chart.d.ts +1 -1
  11. package/build/src/chart.d.ts +1 -1
  12. package/build/src/charts/bar-stacked.d.ts +2 -2
  13. package/build/src/charts/combo.d.ts +7 -0
  14. package/build/src/charts/index.d.ts +1 -0
  15. package/build/src/components/axes/{ruler-stacked-bar.d.ts → ruler-stacked.d.ts} +1 -1
  16. package/build/src/components/axes/zoom-bar.d.ts +1 -1
  17. package/build/src/components/component.d.ts +7 -0
  18. package/build/src/components/graphs/scatter.d.ts +0 -1
  19. package/build/src/components/index.d.ts +2 -1
  20. package/build/src/configuration.d.ts +2 -1
  21. package/build/src/interfaces/charts.d.ts +11 -2
  22. package/build/src/interfaces/enums.d.ts +12 -0
  23. package/build/src/model.d.ts +17 -10
  24. package/build/src/services/scales-cartesian.d.ts +27 -9
  25. package/build/src/tools.d.ts +2 -0
  26. package/bundle.js +1 -1
  27. package/charts/area-stacked.js +2 -2
  28. package/charts/area-stacked.js.map +1 -1
  29. package/charts/bar-stacked.d.ts +2 -2
  30. package/charts/bar-stacked.js +2 -2
  31. package/charts/bar-stacked.js.map +1 -1
  32. package/charts/combo.d.ts +7 -0
  33. package/charts/combo.js +111 -0
  34. package/charts/combo.js.map +1 -0
  35. package/charts/index.d.ts +1 -0
  36. package/charts/index.js +1 -0
  37. package/charts/index.js.map +1 -1
  38. package/components/axes/axis.js +7 -8
  39. package/components/axes/axis.js.map +1 -1
  40. package/components/axes/grid.js +8 -9
  41. package/components/axes/grid.js.map +1 -1
  42. package/components/axes/{ruler-stacked-bar.d.ts → ruler-stacked.d.ts} +1 -1
  43. package/components/axes/{ruler-stacked-bar.js → ruler-stacked.js} +8 -8
  44. package/components/axes/ruler-stacked.js.map +1 -0
  45. package/components/axes/ruler.js +5 -5
  46. package/components/axes/ruler.js.map +1 -1
  47. package/components/axes/toolbar.js +4 -4
  48. package/components/axes/toolbar.js.map +1 -1
  49. package/components/axes/two-dimensional-axes.js +2 -2
  50. package/components/axes/two-dimensional-axes.js.map +1 -1
  51. package/components/axes/zero-line.js +12 -8
  52. package/components/axes/zero-line.js.map +1 -1
  53. package/components/axes/zoom-bar.d.ts +1 -1
  54. package/components/axes/zoom-bar.js +7 -7
  55. package/components/axes/zoom-bar.js.map +1 -1
  56. package/components/component.d.ts +7 -0
  57. package/components/component.js +24 -3
  58. package/components/component.js.map +1 -1
  59. package/components/essentials/legend.js +4 -4
  60. package/components/essentials/legend.js.map +1 -1
  61. package/components/essentials/threshold.js +4 -4
  62. package/components/essentials/threshold.js.map +1 -1
  63. package/components/essentials/title-meter.js +3 -3
  64. package/components/essentials/title-meter.js.map +1 -1
  65. package/components/essentials/title.js +1 -1
  66. package/components/essentials/title.js.map +1 -1
  67. package/components/essentials/tooltip-axis.js +10 -8
  68. package/components/essentials/tooltip-axis.js.map +1 -1
  69. package/components/essentials/tooltip.js +5 -5
  70. package/components/essentials/tooltip.js.map +1 -1
  71. package/components/graphs/area-stacked.js +11 -13
  72. package/components/graphs/area-stacked.js.map +1 -1
  73. package/components/graphs/area.js +15 -12
  74. package/components/graphs/area.js.map +1 -1
  75. package/components/graphs/bar-grouped.js +29 -23
  76. package/components/graphs/bar-grouped.js.map +1 -1
  77. package/components/graphs/bar-simple.js +4 -3
  78. package/components/graphs/bar-simple.js.map +1 -1
  79. package/components/graphs/bar-stacked.js +10 -8
  80. package/components/graphs/bar-stacked.js.map +1 -1
  81. package/components/graphs/bar.js +1 -1
  82. package/components/graphs/bar.js.map +1 -1
  83. package/components/graphs/bubble.js +4 -3
  84. package/components/graphs/bubble.js.map +1 -1
  85. package/components/graphs/donut.js +2 -2
  86. package/components/graphs/donut.js.map +1 -1
  87. package/components/graphs/gauge.js +7 -7
  88. package/components/graphs/gauge.js.map +1 -1
  89. package/components/graphs/line.js +24 -21
  90. package/components/graphs/line.js.map +1 -1
  91. package/components/graphs/meter.js +1 -1
  92. package/components/graphs/meter.js.map +1 -1
  93. package/components/graphs/pie.js +3 -3
  94. package/components/graphs/pie.js.map +1 -1
  95. package/components/graphs/radar.js +5 -5
  96. package/components/graphs/radar.js.map +1 -1
  97. package/components/graphs/scatter-stacked.js +14 -11
  98. package/components/graphs/scatter-stacked.js.map +1 -1
  99. package/components/graphs/scatter.d.ts +0 -1
  100. package/components/graphs/scatter.js +27 -32
  101. package/components/graphs/scatter.js.map +1 -1
  102. package/components/graphs/skeleton-lines.js +5 -5
  103. package/components/graphs/skeleton-lines.js.map +1 -1
  104. package/components/graphs/skeleton.js +4 -4
  105. package/components/graphs/skeleton.js.map +1 -1
  106. package/components/index.d.ts +2 -1
  107. package/components/index.js +2 -1
  108. package/components/index.js.map +1 -1
  109. package/configuration.d.ts +2 -1
  110. package/configuration.js +6 -2
  111. package/configuration.js.map +1 -1
  112. package/demo/data/area.d.ts +25 -0
  113. package/demo/data/area.js +41 -4
  114. package/demo/data/area.js.map +1 -1
  115. package/demo/data/bubble.d.ts +24 -0
  116. package/demo/data/bubble.js +39 -0
  117. package/demo/data/bubble.js.map +1 -1
  118. package/demo/data/bundle.js +1 -1
  119. package/demo/data/combo.d.ts +422 -0
  120. package/demo/data/combo.js +545 -0
  121. package/demo/data/combo.js.map +1 -0
  122. package/demo/data/index.d.ts +6 -0
  123. package/demo/data/index.js +102 -0
  124. package/demo/data/index.js.map +1 -1
  125. package/demo/data/line.d.ts +31 -0
  126. package/demo/data/line.js +38 -0
  127. package/demo/data/line.js.map +1 -1
  128. package/demo/data/scatter.d.ts +31 -0
  129. package/demo/data/scatter.js +33 -0
  130. package/demo/data/scatter.js.map +1 -1
  131. package/demo/data/zoom-bar.js.map +1 -1
  132. package/demo/tsconfig.tsbuildinfo +35 -21
  133. package/interfaces/charts.d.ts +11 -2
  134. package/interfaces/charts.js +1 -0
  135. package/interfaces/charts.js.map +1 -1
  136. package/interfaces/enums.d.ts +12 -0
  137. package/interfaces/enums.js +13 -0
  138. package/interfaces/enums.js.map +1 -1
  139. package/model.d.ts +17 -10
  140. package/model.js +60 -31
  141. package/model.js.map +1 -1
  142. package/package.json +1 -1
  143. package/services/essentials/dom-utils.js +19 -3
  144. package/services/essentials/dom-utils.js.map +1 -1
  145. package/services/scales-cartesian.d.ts +27 -9
  146. package/services/scales-cartesian.js +130 -52
  147. package/services/scales-cartesian.js.map +1 -1
  148. package/tools.d.ts +2 -0
  149. package/tools.js +4 -2
  150. package/tools.js.map +1 -1
  151. package/tsconfig.tsbuildinfo +125 -100
  152. package/components/axes/ruler-stacked-bar.js.map +0 -1
@@ -0,0 +1,422 @@
1
+ export declare const comboSimpleData: ({
2
+ group: string;
3
+ date: string;
4
+ value: number;
5
+ temp?: undefined;
6
+ } | {
7
+ group: string;
8
+ date: string;
9
+ temp: number;
10
+ value?: undefined;
11
+ })[];
12
+ export declare const comboSimpleOptions: {
13
+ experimental: boolean;
14
+ title: string;
15
+ axes: {
16
+ left: {
17
+ mapsTo: string;
18
+ scaleType: string;
19
+ title: string;
20
+ };
21
+ right: {
22
+ mapsTo: string;
23
+ scaleType: string;
24
+ title: string;
25
+ correspondingDatasets: string[];
26
+ };
27
+ bottom: {
28
+ title: string;
29
+ mapsTo: string;
30
+ scaleType: string;
31
+ };
32
+ };
33
+ comboChartTypes: ({
34
+ type: string;
35
+ correspondingDatasets: string[];
36
+ options?: undefined;
37
+ } | {
38
+ type: string;
39
+ options: {
40
+ points: {
41
+ radius: number;
42
+ };
43
+ };
44
+ correspondingDatasets: string[];
45
+ })[];
46
+ };
47
+ export declare const comboHorizontalData: ({
48
+ group: string;
49
+ date: string;
50
+ value: number;
51
+ temp?: undefined;
52
+ } | {
53
+ group: string;
54
+ date: string;
55
+ temp: number;
56
+ value?: undefined;
57
+ })[];
58
+ export declare const comboHorizontalOptions: {
59
+ experimental: boolean;
60
+ title: string;
61
+ axes: {
62
+ top: {
63
+ mapsTo: string;
64
+ scaleType: string;
65
+ title: string;
66
+ };
67
+ bottom: {
68
+ mapsTo: string;
69
+ scaleType: string;
70
+ title: string;
71
+ correspondingDatasets: string[];
72
+ };
73
+ left: {
74
+ title: string;
75
+ mapsTo: string;
76
+ scaleType: string;
77
+ };
78
+ };
79
+ comboChartTypes: {
80
+ type: string;
81
+ options: {};
82
+ correspondingDatasets: string[];
83
+ }[];
84
+ };
85
+ export declare const comboStackedData: ({
86
+ group: string;
87
+ key: string;
88
+ value: number;
89
+ temp?: undefined;
90
+ } | {
91
+ group: string;
92
+ key: string;
93
+ temp: number;
94
+ value?: undefined;
95
+ })[];
96
+ export declare const comboStackedOptions: {
97
+ experimental: boolean;
98
+ title: string;
99
+ axes: {
100
+ left: {
101
+ title: string;
102
+ mapsTo: string;
103
+ };
104
+ bottom: {
105
+ title: string;
106
+ mapsTo: string;
107
+ scaleType: string;
108
+ };
109
+ right: {
110
+ title: string;
111
+ mapsTo: string;
112
+ correspondingDatasets: string[];
113
+ };
114
+ };
115
+ comboChartTypes: {
116
+ type: string;
117
+ options: {};
118
+ correspondingDatasets: string[];
119
+ }[];
120
+ };
121
+ export declare const comboGroupedData: ({
122
+ group: string;
123
+ key: string;
124
+ value: number;
125
+ temp?: undefined;
126
+ } | {
127
+ group: string;
128
+ key: string;
129
+ temp: number;
130
+ value?: undefined;
131
+ })[];
132
+ export declare const comboGroupedOptions: {
133
+ experimental: boolean;
134
+ title: string;
135
+ axes: {
136
+ left: {
137
+ title: string;
138
+ mapsTo: string;
139
+ };
140
+ bottom: {
141
+ scaleType: string;
142
+ mapsTo: string;
143
+ };
144
+ right: {
145
+ title: string;
146
+ mapsTo: string;
147
+ correspondingDatasets: string[];
148
+ };
149
+ };
150
+ comboChartTypes: ({
151
+ type: string;
152
+ correspondingDatasets: string[];
153
+ options?: undefined;
154
+ } | {
155
+ type: string;
156
+ options: {
157
+ points: {
158
+ filled: boolean;
159
+ opacity: number;
160
+ };
161
+ };
162
+ correspondingDatasets: string[];
163
+ })[];
164
+ };
165
+ export declare const comboGroupedHorizontalData: ({
166
+ group: string;
167
+ key: string;
168
+ value: number;
169
+ temp?: undefined;
170
+ } | {
171
+ group: string;
172
+ key: string;
173
+ temp: number;
174
+ value?: undefined;
175
+ })[];
176
+ export declare const comboGroupedHorizontalOptions: {
177
+ experimental: boolean;
178
+ title: string;
179
+ axes: {
180
+ top: {
181
+ title: string;
182
+ mapsTo: string;
183
+ main: boolean;
184
+ };
185
+ left: {
186
+ scaleType: string;
187
+ mapsTo: string;
188
+ };
189
+ bottom: {
190
+ title: string;
191
+ mapsTo: string;
192
+ correspondingDatasets: string[];
193
+ };
194
+ };
195
+ comboChartTypes: {
196
+ type: string;
197
+ correspondingDatasets: string[];
198
+ }[];
199
+ };
200
+ export declare const comboAreaLineData: ({
201
+ group: string;
202
+ key: string;
203
+ value: number;
204
+ temp?: undefined;
205
+ } | {
206
+ group: string;
207
+ key: string;
208
+ temp: number;
209
+ value?: undefined;
210
+ })[];
211
+ export declare const comboAreaLineOptions: {
212
+ experimental: boolean;
213
+ title: string;
214
+ points: {
215
+ enabled: boolean;
216
+ };
217
+ axes: {
218
+ left: {
219
+ title: string;
220
+ mapsTo: string;
221
+ };
222
+ bottom: {
223
+ scaleType: string;
224
+ mapsTo: string;
225
+ };
226
+ right: {
227
+ title: string;
228
+ mapsTo: string;
229
+ correspondingDatasets: string[];
230
+ };
231
+ };
232
+ comboChartTypes: ({
233
+ type: string;
234
+ options: {
235
+ points?: undefined;
236
+ };
237
+ correspondingDatasets: string[];
238
+ } | {
239
+ type: string;
240
+ options: {
241
+ points: {
242
+ enabled: boolean;
243
+ };
244
+ };
245
+ correspondingDatasets: string[];
246
+ })[];
247
+ curve: string;
248
+ };
249
+ export declare const comboLineScatterData: ({
250
+ group: string;
251
+ key: string;
252
+ temp: number;
253
+ value?: undefined;
254
+ } | {
255
+ group: string;
256
+ key: string;
257
+ value: number;
258
+ temp?: undefined;
259
+ })[];
260
+ export declare const comboLineScatterOptions: {
261
+ experimental: boolean;
262
+ title: string;
263
+ axes: {
264
+ left: {
265
+ mapsTo: string;
266
+ title: string;
267
+ };
268
+ bottom: {
269
+ scaleType: string;
270
+ mapsTo: string;
271
+ };
272
+ right: {
273
+ title: string;
274
+ mapsTo: string;
275
+ scaleType: string;
276
+ correspondingDatasets: string[];
277
+ };
278
+ };
279
+ curve: string;
280
+ comboChartTypes: {
281
+ type: string;
282
+ correspondingDatasets: string[];
283
+ }[];
284
+ };
285
+ export declare const comboEmptyData: any[];
286
+ export declare const comboEmptyOptions: {
287
+ experimental: boolean;
288
+ title: string;
289
+ axes: {
290
+ left: {
291
+ mapsTo: string;
292
+ title: string;
293
+ };
294
+ bottom: {
295
+ scaleType: string;
296
+ mapsTo: string;
297
+ };
298
+ right: {
299
+ title: string;
300
+ mapsTo: string;
301
+ scaleType: string;
302
+ correspondingDatasets: string[];
303
+ };
304
+ };
305
+ comboChartTypes: {
306
+ type: string;
307
+ correspondingDatasets: string[];
308
+ }[];
309
+ };
310
+ export declare const comboLoadingData: ({
311
+ group: string;
312
+ key: string;
313
+ temp: number;
314
+ value?: undefined;
315
+ } | {
316
+ group: string;
317
+ key: string;
318
+ value: number;
319
+ temp?: undefined;
320
+ })[];
321
+ export declare const comboLoadingOptions: {
322
+ experimental: boolean;
323
+ title: string;
324
+ axes: {
325
+ left: {
326
+ mapsTo: string;
327
+ title: string;
328
+ };
329
+ bottom: {
330
+ scaleType: string;
331
+ mapsTo: string;
332
+ };
333
+ right: {
334
+ title: string;
335
+ mapsTo: string;
336
+ scaleType: string;
337
+ correspondingDatasets: string[];
338
+ };
339
+ };
340
+ data: {
341
+ loading: boolean;
342
+ };
343
+ comboChartTypes: {
344
+ type: string;
345
+ correspondingDatasets: string[];
346
+ }[];
347
+ };
348
+ export declare const comboErrorData: ({
349
+ group: string;
350
+ key: string;
351
+ temp: number;
352
+ value?: undefined;
353
+ } | {
354
+ group: string;
355
+ key: string;
356
+ value: number;
357
+ temp?: undefined;
358
+ })[];
359
+ export declare const comboErrorOptions: {
360
+ experimental: boolean;
361
+ title: string;
362
+ axes: {
363
+ left: {
364
+ mapsTo: string;
365
+ title: string;
366
+ };
367
+ bottom: {
368
+ scaleType: string;
369
+ mapsTo: string;
370
+ };
371
+ right: {
372
+ title: string;
373
+ mapsTo: string;
374
+ scaleType: string;
375
+ correspondingDatasets: string[];
376
+ };
377
+ };
378
+ };
379
+ export declare const comboStackedAreaLine: ({
380
+ group: string;
381
+ date: Date;
382
+ value: number;
383
+ temp?: undefined;
384
+ } | {
385
+ group: string;
386
+ date: Date;
387
+ temp: number;
388
+ value?: undefined;
389
+ })[];
390
+ export declare const comboStackedAreaLineOptions: {
391
+ experimental: boolean;
392
+ title: string;
393
+ axes: {
394
+ left: {
395
+ stacked: boolean;
396
+ mapsTo: string;
397
+ };
398
+ bottom: {
399
+ scaleType: string;
400
+ mapsTo: string;
401
+ };
402
+ right: {
403
+ scaleType: string;
404
+ mapsTo: string;
405
+ correspondingDatasets: string[];
406
+ };
407
+ };
408
+ curve: string;
409
+ comboChartTypes: ({
410
+ type: string;
411
+ options: {
412
+ points: {
413
+ enabled: boolean;
414
+ };
415
+ };
416
+ correspondingDatasets: string[];
417
+ } | {
418
+ type: string;
419
+ correspondingDatasets: string[];
420
+ options?: undefined;
421
+ })[];
422
+ };