@carbon/charts 1.16.11 → 1.17.1

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 (76) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -26
  3. package/dist/{angle-utils-ByrL6LVp.mjs → angle-utils-Cq7fAZ_G.mjs} +2 -2
  4. package/dist/{angle-utils-ByrL6LVp.mjs.map → angle-utils-Cq7fAZ_G.mjs.map} +1 -1
  5. package/dist/{array-6NAAybxf.mjs → array-Dp6N70oc.mjs} +2 -2
  6. package/dist/{array-6NAAybxf.mjs.map → array-Dp6N70oc.mjs.map} +1 -1
  7. package/dist/{choropleth-BAn8HIaC.mjs → choropleth-BVD28Asn.mjs} +4 -10
  8. package/dist/choropleth-BVD28Asn.mjs.map +1 -0
  9. package/dist/{color-scale-utils-CSwgszB6.mjs → color-scale-utils-BpobzRX6.mjs} +2 -2
  10. package/dist/{color-scale-utils-CSwgszB6.mjs.map → color-scale-utils-BpobzRX6.mjs.map} +1 -1
  11. package/dist/components/diagrams/buildPaths.d.ts +15 -27
  12. package/dist/components/essentials/legend.spec.d.ts +1 -0
  13. package/dist/components/essentials/title.spec.d.ts +1 -0
  14. package/dist/components/index.mjs +1 -1
  15. package/dist/{index-fFi6OCaz.mjs → index-CeYuVh-h.mjs} +3 -3
  16. package/dist/{index-fFi6OCaz.mjs.map → index-CeYuVh-h.mjs.map} +1 -1
  17. package/dist/index.mjs +7 -7
  18. package/dist/model/index.mjs +2 -2
  19. package/dist/selectedGroups.spec.d.ts +1 -0
  20. package/dist/services/index.mjs +3 -3
  21. package/dist/services/time-series.spec.d.ts +1 -0
  22. package/dist/tests/index.d.ts +2 -0
  23. package/dist/tests/test-environment.d.ts +16 -0
  24. package/dist/tests/tools.d.ts +4 -0
  25. package/dist/tools.spec.d.ts +1 -0
  26. package/dist/umd/bundle.umd.cjs +1 -1
  27. package/dist/umd/bundle.umd.cjs.map +1 -1
  28. package/dist/umd/bundle.umd.js +1 -1
  29. package/package.json +18 -26
  30. package/dist/choropleth-BAn8HIaC.mjs.map +0 -1
  31. package/dist/demo/charts/alluvial.d.ts +0 -110
  32. package/dist/demo/charts/area.d.ts +0 -225
  33. package/dist/demo/charts/bar.d.ts +0 -763
  34. package/dist/demo/charts/boxplot.d.ts +0 -35
  35. package/dist/demo/charts/bubble.d.ts +0 -142
  36. package/dist/demo/charts/bullet.d.ts +0 -25
  37. package/dist/demo/charts/chart-types.d.ts +0 -128
  38. package/dist/demo/charts/choropleth.d.ts +0 -736
  39. package/dist/demo/charts/circle-pack.d.ts +0 -91
  40. package/dist/demo/charts/combo.d.ts +0 -483
  41. package/dist/demo/charts/donut.d.ts +0 -65
  42. package/dist/demo/charts/gauge.d.ts +0 -40
  43. package/dist/demo/charts/heatmap.d.ts +0 -126
  44. package/dist/demo/charts/hightlight.d.ts +0 -41
  45. package/dist/demo/charts/histogram.d.ts +0 -64
  46. package/dist/demo/charts/index.d.ts +0 -62
  47. package/dist/demo/charts/line.d.ts +0 -362
  48. package/dist/demo/charts/lollipop.d.ts +0 -40
  49. package/dist/demo/charts/meter.d.ts +0 -95
  50. package/dist/demo/charts/pie.d.ts +0 -47
  51. package/dist/demo/charts/radar.d.ts +0 -64
  52. package/dist/demo/charts/scatter.d.ts +0 -119
  53. package/dist/demo/charts/step.d.ts +0 -96
  54. package/dist/demo/charts/time-series-axis.d.ts +0 -326
  55. package/dist/demo/charts/toolbar.d.ts +0 -12
  56. package/dist/demo/charts/topojson-110.d.ts +0 -360
  57. package/dist/demo/charts/tree.d.ts +0 -30
  58. package/dist/demo/charts/treemap.d.ts +0 -15
  59. package/dist/demo/charts/wordcloud.d.ts +0 -14
  60. package/dist/demo/charts/zoom-bar.d.ts +0 -79
  61. package/dist/demo/index.d.ts +0 -4
  62. package/dist/demo/index.mjs +0 -51456
  63. package/dist/demo/index.mjs.map +0 -1
  64. package/dist/demo/styles.css +0 -34613
  65. package/dist/demo/styles.css.map +0 -1
  66. package/dist/demo/utils/index.d.ts +0 -2
  67. package/dist/demo/utils/package-versions.d.ts +0 -18
  68. package/dist/demo/utils/stackblitz/angular.d.ts +0 -3
  69. package/dist/demo/utils/stackblitz/index.d.ts +0 -5
  70. package/dist/demo/utils/stackblitz/object-to-string.d.ts +0 -5
  71. package/dist/demo/utils/stackblitz/react.d.ts +0 -3
  72. package/dist/demo/utils/stackblitz/svelte.d.ts +0 -3
  73. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +0 -3
  74. package/dist/demo/utils/stackblitz/vue.d.ts +0 -3
  75. package/dist/demo/utils/story-widgets.d.ts +0 -6
  76. package/scss/demos.scss +0 -412
@@ -1,763 +0,0 @@
1
- import { Alignments, ScaleTypes } from '../../interfaces';
2
- export declare const groupedBarData: {
3
- group: string;
4
- key: string;
5
- value: number;
6
- }[];
7
- export declare const groupedBarTimeSeriesData: {
8
- group: string;
9
- date: Date;
10
- value: number;
11
- }[];
12
- export declare const groupedBarTimeSeriesDenseData: {
13
- group: string;
14
- date: Date;
15
- value: number;
16
- }[];
17
- export declare const groupedBarOptions: {
18
- title: string;
19
- axes: {
20
- left: {
21
- mapsTo: string;
22
- };
23
- bottom: {
24
- scaleType: ScaleTypes;
25
- mapsTo: string;
26
- };
27
- };
28
- };
29
- export declare const groupedBarSelectedGroupsData: {
30
- group: string;
31
- key: string;
32
- value: number;
33
- }[];
34
- export declare const groupedBarSelectedGroupsOptions: {
35
- title: string;
36
- data: {
37
- selectedGroups: string[];
38
- };
39
- axes: {
40
- left: {
41
- mapsTo: string;
42
- };
43
- bottom: {
44
- scaleType: ScaleTypes;
45
- mapsTo: string;
46
- };
47
- };
48
- };
49
- export declare const groupedHorizontalBarData: {
50
- group: string;
51
- key: string;
52
- value: number;
53
- }[];
54
- export declare const groupedHorizontalBarOptions: {
55
- title: string;
56
- axes: {
57
- left: {
58
- scaleType: ScaleTypes;
59
- mapsTo: string;
60
- };
61
- bottom: {
62
- mapsTo: string;
63
- };
64
- };
65
- };
66
- export declare const groupedBarTimeSeriesOptions: {
67
- title: string;
68
- axes: {
69
- left: {
70
- mapsTo: string;
71
- };
72
- bottom: {
73
- mapsTo: string;
74
- scaleType: ScaleTypes;
75
- };
76
- };
77
- };
78
- export declare const groupedBarHorizontalTimeSeriesOptions: {
79
- title: string;
80
- axes: {
81
- left: {
82
- mapsTo: string;
83
- scaleType: ScaleTypes;
84
- };
85
- bottom: {
86
- mapsTo: string;
87
- };
88
- };
89
- };
90
- export declare const groupedBarTimeSeriesDenseOptions: {
91
- title: string;
92
- axes: {
93
- left: {
94
- mapsTo: string;
95
- };
96
- bottom: {
97
- mapsTo: string;
98
- scaleType: ScaleTypes;
99
- };
100
- };
101
- };
102
- export declare const simpleBarData: {
103
- group: string;
104
- value: number;
105
- }[];
106
- export declare const simpleBarOptions: {
107
- title: string;
108
- axes: {
109
- left: {
110
- mapsTo: string;
111
- };
112
- bottom: {
113
- mapsTo: string;
114
- scaleType: ScaleTypes;
115
- };
116
- };
117
- };
118
- export declare const simpleBarColorOverrideOptions: {
119
- title: string;
120
- axes: {
121
- left: {
122
- mapsTo: string;
123
- };
124
- bottom: {
125
- scaleType: ScaleTypes;
126
- mapsTo: string;
127
- };
128
- };
129
- color: {
130
- pairing: {
131
- option: number;
132
- };
133
- scale: {
134
- Qty: string;
135
- Misc: string;
136
- };
137
- };
138
- };
139
- export declare const simpleBarCustomLegendOrderOptions: {
140
- title: string;
141
- axes: {
142
- left: {
143
- mapsTo: string;
144
- };
145
- bottom: {
146
- mapsTo: string;
147
- scaleType: ScaleTypes;
148
- };
149
- };
150
- legend: {
151
- order: string[];
152
- };
153
- };
154
- export declare const simpleBarAdditionalLegendItemsOptions: {
155
- title: string;
156
- axes: {
157
- left: {
158
- mapsTo: string;
159
- };
160
- bottom: {
161
- mapsTo: string;
162
- scaleType: ScaleTypes;
163
- };
164
- };
165
- legend: {
166
- additionalItems: {
167
- type: string;
168
- name: string;
169
- }[];
170
- };
171
- };
172
- export declare const simpleBarDataCustomTicks: {
173
- group: string;
174
- value: number;
175
- }[];
176
- export declare const simpleBarOptionsCustomTicks: {
177
- title: string;
178
- axes: {
179
- left: {
180
- mapsTo: string;
181
- ticks: {
182
- values: number[];
183
- };
184
- };
185
- bottom: {
186
- mapsTo: string;
187
- scaleType: ScaleTypes;
188
- };
189
- };
190
- };
191
- export declare const simpleBarCenteredLegendData: {
192
- group: string;
193
- value: number;
194
- }[];
195
- export declare const simpleBarCenteredLegendOptions: {
196
- title: string;
197
- axes: {
198
- left: {
199
- mapsTo: string;
200
- };
201
- bottom: {
202
- mapsTo: string;
203
- scaleType: ScaleTypes;
204
- };
205
- };
206
- legend: {
207
- alignment: Alignments;
208
- };
209
- };
210
- export declare const simpleBarFixedDomainOptions: {
211
- title: string;
212
- axes: {
213
- left: {
214
- mapsTo: string;
215
- domain: number[];
216
- };
217
- bottom: {
218
- scaleType: ScaleTypes;
219
- mapsTo: string;
220
- };
221
- };
222
- };
223
- export declare const simpleHorizontalBarData: {
224
- group: string;
225
- value: number;
226
- }[];
227
- export declare const simpleHorizontalBarLongLabelData: {
228
- group: string;
229
- value: number;
230
- }[];
231
- export declare const simpleHorizontalBarOptions: {
232
- title: string;
233
- axes: {
234
- left: {
235
- mapsTo: string;
236
- scaleType: ScaleTypes;
237
- };
238
- bottom: {
239
- mapsTo: string;
240
- };
241
- };
242
- };
243
- export declare const simpleHorizontalBarCenteredLegendData: {
244
- group: string;
245
- value: number;
246
- }[];
247
- export declare const simpleHorizontalBarCenteredLegendOptions: {
248
- title: string;
249
- axes: {
250
- left: {
251
- mapsTo: string;
252
- scaleType: ScaleTypes;
253
- };
254
- bottom: {
255
- mapsTo: string;
256
- };
257
- };
258
- legend: {
259
- alignment: Alignments;
260
- };
261
- };
262
- export declare const simpleHorizontalBarLongLabelOptions: {
263
- title: string;
264
- axes: {
265
- left: {
266
- mapsTo: string;
267
- scaleType: ScaleTypes;
268
- truncation: {
269
- type: string;
270
- threshold: number;
271
- numCharacter: number;
272
- };
273
- };
274
- bottom: {
275
- mapsTo: string;
276
- };
277
- };
278
- legend: {
279
- truncation: {
280
- type: string;
281
- threshold: number;
282
- numCharacter: number;
283
- };
284
- };
285
- };
286
- export declare const simpleBarTimeSeriesData: {
287
- group: string;
288
- date: Date;
289
- value: number;
290
- }[];
291
- export declare const simpleBarTimeSeriesDenseData: {
292
- group: string;
293
- date: Date;
294
- value: number;
295
- }[];
296
- export declare const simpleBarTimeSeriesOptions: {
297
- title: string;
298
- axes: {
299
- left: {
300
- mapsTo: string;
301
- };
302
- bottom: {
303
- mapsTo: string;
304
- scaleType: ScaleTypes;
305
- };
306
- };
307
- };
308
- export declare const simpleBarTurkishLocaleData: {
309
- group: string;
310
- date: Date;
311
- value: number;
312
- }[];
313
- export declare const simpleBarTurkishLocaleOptions: {
314
- title: string;
315
- axes: {
316
- left: {
317
- mapsTo: string;
318
- };
319
- bottom: {
320
- mapsTo: string;
321
- scaleType: ScaleTypes;
322
- };
323
- };
324
- locale: {
325
- code: string;
326
- };
327
- };
328
- export declare const simpleBarArabicLocaleOptions: {
329
- title: string;
330
- axes: {
331
- left: {
332
- mapsTo: string;
333
- };
334
- bottom: {
335
- mapsTo: string;
336
- scaleType: ScaleTypes;
337
- };
338
- };
339
- locale: {
340
- code: string;
341
- };
342
- };
343
- export declare const simpleBarIranianLocaleOptions: {
344
- title: string;
345
- axes: {
346
- left: {
347
- mapsTo: string;
348
- };
349
- bottom: {
350
- mapsTo: string;
351
- scaleType: ScaleTypes;
352
- };
353
- };
354
- locale: {
355
- code: string;
356
- };
357
- };
358
- export declare const simpleBarJapaneseLocaleOptions: {
359
- title: string;
360
- axes: {
361
- left: {
362
- mapsTo: string;
363
- };
364
- bottom: {
365
- mapsTo: string;
366
- scaleType: ScaleTypes;
367
- };
368
- };
369
- locale: {
370
- code: string;
371
- };
372
- };
373
- export declare const simpleBarHindiLocaleOptions: {
374
- title: string;
375
- axes: {
376
- left: {
377
- mapsTo: string;
378
- };
379
- bottom: {
380
- mapsTo: string;
381
- scaleType: ScaleTypes;
382
- };
383
- };
384
- locale: {
385
- code: string;
386
- };
387
- };
388
- export declare const simpleBarBanglaLocaleOptions: {
389
- title: string;
390
- axes: {
391
- left: {
392
- mapsTo: string;
393
- };
394
- bottom: {
395
- mapsTo: string;
396
- scaleType: ScaleTypes;
397
- };
398
- };
399
- locale: {
400
- code: string;
401
- };
402
- };
403
- export declare const simpleHorizontalBarTimeSeriesOptions: {
404
- title: string;
405
- axes: {
406
- left: {
407
- mapsTo: string;
408
- scaleType: ScaleTypes;
409
- };
410
- bottom: {
411
- mapsTo: string;
412
- };
413
- };
414
- };
415
- export declare const simpleBarTimeSeriesDenseOptions: {
416
- title: string;
417
- axes: {
418
- left: {
419
- mapsTo: string;
420
- ticks: {
421
- formatter: (ticks: number) => string;
422
- };
423
- };
424
- bottom: {
425
- mapsTo: string;
426
- scaleType: ScaleTypes;
427
- ticks: {
428
- formatter: (ticks: Date) => string;
429
- };
430
- };
431
- };
432
- tooltip: {
433
- valueFormatter: (value: any, category: string) => any;
434
- };
435
- bars: {
436
- maxWidth: number;
437
- };
438
- };
439
- export declare const simpleHorizontalBarTimeSeriesData: {
440
- group: string;
441
- date: Date;
442
- value: number;
443
- }[];
444
- export declare const floatingHorizontalBarTimeSeriesData: ({
445
- group: string;
446
- date: Date;
447
- value: number[];
448
- } | {
449
- group: string;
450
- date: Date;
451
- value: number;
452
- })[];
453
- export declare const floatingHorizontalBarTimeSeriesOptions: {
454
- title: string;
455
- axes: {
456
- left: {
457
- mapsTo: string;
458
- scaleType: ScaleTypes;
459
- };
460
- bottom: {
461
- mapsTo: string;
462
- };
463
- };
464
- };
465
- export declare const stackedBarData: {
466
- group: string;
467
- key: string;
468
- value: number;
469
- }[];
470
- export declare const stackedBarOptions: {
471
- title: string;
472
- axes: {
473
- left: {
474
- mapsTo: string;
475
- stacked: boolean;
476
- };
477
- bottom: {
478
- mapsTo: string;
479
- scaleType: ScaleTypes;
480
- };
481
- };
482
- };
483
- export declare const stackedBarNegativeData: {
484
- group: string;
485
- key: string;
486
- value: number;
487
- }[];
488
- export declare const stackedBarNegativeOptions: {
489
- title: string;
490
- axes: {
491
- left: {
492
- mapsTo: string;
493
- stacked: boolean;
494
- };
495
- bottom: {
496
- mapsTo: string;
497
- scaleType: ScaleTypes;
498
- };
499
- };
500
- } & {
501
- title: string;
502
- };
503
- export declare const stackedHorizontalBarData: {
504
- group: string;
505
- key: string;
506
- value: number;
507
- }[];
508
- export declare const stackedHorizontalBarOptions: {
509
- title: string;
510
- axes: {
511
- left: {
512
- scaleType: ScaleTypes;
513
- };
514
- bottom: {
515
- stacked: boolean;
516
- };
517
- };
518
- };
519
- export declare const stackedBarTimeSeriesData: {
520
- group: string;
521
- date: Date;
522
- value: number;
523
- }[];
524
- export declare const stackedBarTimeSeriesOptions: {
525
- title: string;
526
- axes: {
527
- left: {
528
- mapsTo: string;
529
- stacked: boolean;
530
- };
531
- bottom: {
532
- mapsTo: string;
533
- scaleType: ScaleTypes;
534
- };
535
- };
536
- };
537
- export declare const stackedBarShortIntervalTimeSeriesData: {
538
- group: string;
539
- date: Date;
540
- value: number;
541
- }[];
542
- export declare const stackedBarShortIntervalTimeSeriesOptions: {
543
- title: string;
544
- axes: {
545
- left: {
546
- mapsTo: string;
547
- stacked: boolean;
548
- };
549
- bottom: {
550
- mapsTo: string;
551
- scaleType: ScaleTypes;
552
- };
553
- };
554
- };
555
- export declare const stackedBarTimeSeriesDataCustomTicks: {
556
- group: string;
557
- date: Date;
558
- value: number;
559
- }[];
560
- export declare const stackedBarTimeSeriesOptionsCustomTicks: {
561
- title: string;
562
- axes: {
563
- left: {
564
- mapsTo: string;
565
- stacked: boolean;
566
- };
567
- bottom: {
568
- mapsTo: string;
569
- scaleType: ScaleTypes;
570
- ticks: {
571
- values: Date[];
572
- };
573
- };
574
- };
575
- };
576
- export declare const stackedHorizontalBarTimeSeriesOptions: {
577
- title: string;
578
- axes: {
579
- left: {
580
- scaleType: ScaleTypes;
581
- };
582
- bottom: {
583
- stacked: boolean;
584
- };
585
- };
586
- };
587
- export declare const stackedHorizontalBarTimeSeriesData: {
588
- group: string;
589
- date: Date;
590
- value: number;
591
- }[];
592
- export declare const simpleBarEmptyStateData: any[];
593
- export declare const simpleBarEmptyStateOptions: {
594
- title: string;
595
- axes: {
596
- left: {};
597
- bottom: {
598
- scaleType: ScaleTypes;
599
- };
600
- };
601
- };
602
- export declare const simpleBarSkeletonData: any[];
603
- export declare const simpleBarSkeletonOptions: {
604
- title: string;
605
- axes: {
606
- left: {};
607
- bottom: {
608
- scaleType: ScaleTypes;
609
- };
610
- };
611
- data: {
612
- loading: boolean;
613
- };
614
- };
615
- export declare const groupedBarEmptyStateData: any[];
616
- export declare const groupedBarEmptyStateOptions: {
617
- title: string;
618
- axes: {
619
- left: {};
620
- bottom: {
621
- scaleType: ScaleTypes;
622
- };
623
- };
624
- };
625
- export declare const groupedBarSkeletonData: any[];
626
- export declare const groupedBarSkeletonOptions: {
627
- title: string;
628
- axes: {
629
- left: {};
630
- bottom: {
631
- scaleType: ScaleTypes;
632
- };
633
- };
634
- data: {
635
- loading: boolean;
636
- };
637
- };
638
- export declare const stackedBarEmptyStateData: any[];
639
- export declare const stackedBarEmptyStateOptions: {
640
- title: string;
641
- axes: {
642
- left: {};
643
- bottom: {
644
- scaleType: ScaleTypes;
645
- };
646
- };
647
- };
648
- export declare const stackedBarSkeletonData: any[];
649
- export declare const stackedBarSkeletonOptions: {
650
- title: string;
651
- axes: {
652
- left: {};
653
- bottom: {
654
- scaleType: ScaleTypes;
655
- };
656
- };
657
- data: {
658
- loading: boolean;
659
- };
660
- };
661
- export declare const simpleHorizontalBarEmptyStateData: any[];
662
- export declare const simpleHorizontalBarEmptyStateOptions: {
663
- title: string;
664
- axes: {
665
- left: {
666
- scaleType: ScaleTypes;
667
- };
668
- bottom: {};
669
- };
670
- };
671
- export declare const simpleHorizontalBarSkeletonData: any[];
672
- export declare const simpleHorizontalBarSkeletonOptions: {
673
- title: string;
674
- axes: {
675
- left: {
676
- scaleType: ScaleTypes;
677
- };
678
- bottom: {};
679
- };
680
- data: {
681
- loading: boolean;
682
- };
683
- };
684
- export declare const groupedHorizontalBarEmptyStateData: any[];
685
- export declare const groupedHorizontalBarEmptyStateOptions: {
686
- title: string;
687
- axes: {
688
- left: {
689
- scaleType: ScaleTypes;
690
- };
691
- bottom: {};
692
- };
693
- };
694
- export declare const groupedHorizontalBarSkeletonData: any[];
695
- export declare const groupedHorizontalBarSkeletonOptions: {
696
- title: string;
697
- axes: {
698
- left: {
699
- scaleType: ScaleTypes;
700
- };
701
- bottom: {};
702
- };
703
- data: {
704
- loading: boolean;
705
- };
706
- };
707
- export declare const stackedHorizontalBarEmptyStateData: any[];
708
- export declare const stackedHorizontalBarEmptyStateOptions: {
709
- title: string;
710
- axes: {
711
- left: {
712
- scaleType: ScaleTypes;
713
- };
714
- bottom: {};
715
- };
716
- };
717
- export declare const stackedHorizontalBarSkeletonData: any[];
718
- export declare const stackedHorizontalBarSkeletonOptions: {
719
- title: string;
720
- axes: {
721
- left: {
722
- scaleType: ScaleTypes;
723
- };
724
- bottom: {};
725
- };
726
- data: {
727
- loading: boolean;
728
- };
729
- };
730
- export declare const floatingBarData: {
731
- group: string;
732
- value: number[];
733
- }[];
734
- export declare const floatingBarOptions: {
735
- title: string;
736
- axes: {
737
- left: {
738
- mapsTo: string;
739
- includeZero: boolean;
740
- };
741
- bottom: {
742
- mapsTo: string;
743
- scaleType: ScaleTypes;
744
- };
745
- };
746
- };
747
- export declare const floatingHorizontalBarData: {
748
- group: string;
749
- value: number[];
750
- }[];
751
- export declare const floatingHorizontalBarOptions: {
752
- title: string;
753
- axes: {
754
- left: {
755
- mapsTo: string;
756
- scaleType: ScaleTypes;
757
- };
758
- bottom: {
759
- mapsTo: string;
760
- includeZero: boolean;
761
- };
762
- };
763
- };