@oliasoft-open-source/charts-library 3.5.4 → 3.6.0-beta-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 (42) hide show
  1. package/dist/index.js +2487 -2039
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +1 -1
  4. package/dist/src/components/bar-chart/bar-chart.d.ts +1 -1
  5. package/dist/src/components/bar-chart/bar-chart.stories.d.ts +657 -0
  6. package/dist/src/components/common/helpers/container.d.ts +18 -0
  7. package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +8 -0
  8. package/dist/src/components/common/helpers/range/estimate-close-values.test.d.ts +1 -0
  9. package/dist/src/components/common/helpers/range/range.test.d.ts +1 -0
  10. package/dist/src/components/common/helpers/text.d.ts +1 -0
  11. package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +1 -0
  12. package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +1 -1
  13. package/dist/src/components/line-chart/controls/controls-portal.d.ts +1 -1
  14. package/dist/src/components/line-chart/controls/controls.d.ts +1 -1
  15. package/dist/src/components/line-chart/controls/drag-options.d.ts +1 -1
  16. package/dist/src/components/line-chart/controls/legend-options.d.ts +1 -0
  17. package/dist/src/components/line-chart/controls/line-options.d.ts +1 -1
  18. package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +3 -1
  19. package/dist/src/components/line-chart/initialize/initialize-line-chart.test.d.ts +1 -0
  20. package/dist/src/components/line-chart/legend/legend-dropzone.d.ts +1 -1
  21. package/dist/src/components/line-chart/legend/legend-item.d.ts +1 -1
  22. package/dist/src/components/line-chart/legend/legend.d.ts +1 -1
  23. package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +4 -4
  24. package/dist/src/components/line-chart/line-chart.d.ts +1 -1
  25. package/dist/src/components/line-chart/line-chart.interface.d.ts +1 -1
  26. package/dist/src/components/line-chart/line-chart.stories.d.ts +1009 -0
  27. package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +1 -0
  28. package/dist/src/components/line-chart/utils/__tests__/get-annotations-data.test.d.ts +1 -0
  29. package/dist/src/components/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +1 -0
  30. package/dist/src/components/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +1 -0
  31. package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +1 -0
  32. package/dist/src/components/line-chart/utils/axis-scales/axis-scales.test.d.ts +1 -0
  33. package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +1 -0
  34. package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +1 -0
  35. package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +1 -0
  36. package/dist/src/components/line-chart/utils/get-line-chart-tooltips.test.d.ts +1 -0
  37. package/dist/src/components/line-chart/utils/translations/get-translations.test.d.ts +1 -0
  38. package/dist/src/components/pie-chart/pie-chart.d.ts +1 -1
  39. package/dist/src/components/pie-chart/pie-chart.stories.d.ts +263 -0
  40. package/dist/src/components/scatter-chart/scatter-chart.d.ts +1 -1
  41. package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +118 -0
  42. package/package.json +15 -15
@@ -10,7 +10,7 @@ export declare const getDefaultProps: (props: IBarChartProps) => {
10
10
  title: string | string[];
11
11
  direction: "vertical" | "horizontal";
12
12
  axes: {
13
- x: [{}] | import("../common/common.interface").ICommonAxis<"top" | "bottom">[];
13
+ x: [{}] | import("../common/common.interface").ICommonAxis<"bottom" | "top">[];
14
14
  y: [{}] | import("../common/common.interface").ICommonAxis<"left" | "right">[];
15
15
  };
16
16
  additionalAxesOptions: {
@@ -1,3 +1,3 @@
1
1
  import { IBarChartProps } from './bar-chart.interface';
2
- declare const BarChart: (props: IBarChartProps) => JSX.Element;
2
+ declare const BarChart: (props: IBarChartProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { BarChart };
@@ -0,0 +1,657 @@
1
+ declare namespace _default {
2
+ export const title: string;
3
+ export { BarChart as component };
4
+ export namespace args {
5
+ export { singleChart as chart };
6
+ }
7
+ }
8
+ export default _default;
9
+ export function Default(args: any): import("react/jsx-runtime").JSX.Element;
10
+ export function MultipleSets(args: any): import("react/jsx-runtime").JSX.Element;
11
+ export namespace MultipleSets {
12
+ export namespace args_1 {
13
+ export { multipleBarData as chart };
14
+ }
15
+ export { args_1 as args };
16
+ }
17
+ export function Stacked(args: any): import("react/jsx-runtime").JSX.Element;
18
+ export namespace Stacked {
19
+ export namespace args_2 {
20
+ export { stakedBarData as chart };
21
+ }
22
+ export { args_2 as args };
23
+ }
24
+ export function StackedGrouped(args: any): import("react/jsx-runtime").JSX.Element;
25
+ export namespace StackedGrouped {
26
+ export namespace args_3 {
27
+ export { groupedStacked as chart };
28
+ }
29
+ export { args_3 as args };
30
+ }
31
+ export function MultipleYAxes(args: any): import("react/jsx-runtime").JSX.Element;
32
+ export namespace MultipleYAxes {
33
+ export namespace args_4 {
34
+ export { multipleAxisData as chart };
35
+ }
36
+ export { args_4 as args };
37
+ }
38
+ export function Horizontal(args: any): import("react/jsx-runtime").JSX.Element;
39
+ export namespace Horizontal {
40
+ export namespace args_5 {
41
+ export { horizontal as chart };
42
+ }
43
+ export { args_5 as args };
44
+ }
45
+ export function Reversed(args: any): import("react/jsx-runtime").JSX.Element;
46
+ export namespace Reversed {
47
+ export namespace args_6 {
48
+ export { reversed as chart };
49
+ }
50
+ export { args_6 as args };
51
+ }
52
+ export function HorizontalReversed(args: any): import("react/jsx-runtime").JSX.Element;
53
+ export namespace HorizontalReversed {
54
+ export namespace args_7 {
55
+ export { horizontalReversed as chart };
56
+ }
57
+ export { args_7 as args };
58
+ }
59
+ export function AxesLabels(args: any): import("react/jsx-runtime").JSX.Element;
60
+ export namespace AxesLabels {
61
+ export namespace args_8 {
62
+ export { axesWithLabels as chart };
63
+ }
64
+ export { args_8 as args };
65
+ }
66
+ export function AxesPositions(args: any): import("react/jsx-runtime").JSX.Element;
67
+ export namespace AxesPositions {
68
+ export namespace args_9 {
69
+ export { axisPosition as chart };
70
+ }
71
+ export { args_9 as args };
72
+ }
73
+ export function NonZeroStart(args: any): import("react/jsx-runtime").JSX.Element;
74
+ export namespace NonZeroStart {
75
+ export namespace args_10 {
76
+ export { notBeginAtZero as chart };
77
+ }
78
+ export { args_10 as args };
79
+ }
80
+ export function CustomRange(args: any): import("react/jsx-runtime").JSX.Element;
81
+ export namespace CustomRange {
82
+ export namespace args_11 {
83
+ export { suggestedRange as chart };
84
+ }
85
+ export { args_11 as args };
86
+ }
87
+ export function CustomStepSize(args: any): import("react/jsx-runtime").JSX.Element;
88
+ export namespace CustomStepSize {
89
+ export namespace args_12 {
90
+ export { stepSizeChart as chart };
91
+ }
92
+ export { args_12 as args };
93
+ }
94
+ export function LogarithmicScale(args: any): import("react/jsx-runtime").JSX.Element;
95
+ export namespace LogarithmicScale {
96
+ export namespace args_13 {
97
+ export { logartihmicChart as chart };
98
+ }
99
+ export { args_13 as args };
100
+ }
101
+ export function Datalabels(args: any): import("react/jsx-runtime").JSX.Element;
102
+ export namespace Datalabels {
103
+ export namespace args_14 {
104
+ export { dataLabelsNumberChart as chart };
105
+ }
106
+ export { args_14 as args };
107
+ }
108
+ export function LegendOnRight(args: any): import("react/jsx-runtime").JSX.Element;
109
+ export namespace LegendOnRight {
110
+ export namespace args_15 {
111
+ export { legendRight as chart };
112
+ }
113
+ export { args_15 as args };
114
+ }
115
+ export function AnnotationYAxis(args: any): import("react/jsx-runtime").JSX.Element;
116
+ export namespace AnnotationYAxis {
117
+ export namespace args_16 {
118
+ export { horizontalAnnotationChart as chart };
119
+ }
120
+ export { args_16 as args };
121
+ }
122
+ export function AnnotationXAxis(args: any): import("react/jsx-runtime").JSX.Element;
123
+ export namespace AnnotationXAxis {
124
+ export namespace args_17 {
125
+ export { verticalAnnotationChart as chart };
126
+ }
127
+ export { args_17 as args };
128
+ }
129
+ export function AnnotationDiagonal(args: any): import("react/jsx-runtime").JSX.Element;
130
+ export namespace AnnotationDiagonal {
131
+ export namespace args_18 {
132
+ export { diagonalAnnotationChart as chart };
133
+ }
134
+ export { args_18 as args };
135
+ }
136
+ export function AnnotationsInLegend(args: any): import("react/jsx-runtime").JSX.Element;
137
+ export namespace AnnotationsInLegend {
138
+ export namespace args_19 {
139
+ export { controlAnnotationChart as chart };
140
+ }
141
+ export { args_19 as args };
142
+ }
143
+ export function Animated(args: any): import("react/jsx-runtime").JSX.Element;
144
+ export namespace Animated {
145
+ export namespace args_20 {
146
+ export { animatedChart as chart };
147
+ }
148
+ export { args_20 as args };
149
+ }
150
+ export function CustomLegend(args: any): import("react/jsx-runtime").JSX.Element;
151
+ export namespace CustomLegend {
152
+ export namespace args_21 {
153
+ namespace chart {
154
+ namespace options {
155
+ const title_1: string;
156
+ export { title_1 as title };
157
+ export namespace legend {
158
+ namespace customLegend {
159
+ export const customLegendPlugin: {
160
+ afterUpdate(chart: import("chart.js").Chart<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>, _args: import("chart.js").Plugin<keyof import("chart.js").ChartTypeRegistry, import("../../../node_modules/chart.js/dist/types/basic").AnyObject>, _options: import("chart.js").ChartConfiguration<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>): void;
161
+ };
162
+ export { customLegendContainerID };
163
+ }
164
+ }
165
+ }
166
+ namespace data {
167
+ export { labels1 as labels };
168
+ export const datasets: {
169
+ label: string;
170
+ data: number[];
171
+ }[];
172
+ }
173
+ }
174
+ }
175
+ export { args_21 as args };
176
+ }
177
+ export function DragDataChart(args: any): import("react/jsx-runtime").JSX.Element;
178
+ export namespace DragDataChart {
179
+ export namespace args_22 {
180
+ export { dragDataChart as chart };
181
+ }
182
+ export { args_22 as args };
183
+ }
184
+ import { BarChart } from './bar-chart';
185
+ declare namespace singleChart { }
186
+ declare namespace multipleBarData {
187
+ export namespace data_1 {
188
+ export { labels1 as labels };
189
+ const datasets_1: {
190
+ label: string;
191
+ data: number[];
192
+ }[];
193
+ export { datasets_1 as datasets };
194
+ }
195
+ export { data_1 as data };
196
+ }
197
+ declare namespace stakedBarData {
198
+ export namespace data_2 {
199
+ export { labels1 as labels };
200
+ const datasets_2: {
201
+ label: string;
202
+ data: number[];
203
+ }[];
204
+ export { datasets_2 as datasets };
205
+ }
206
+ export { data_2 as data };
207
+ export namespace options_1 {
208
+ const title_2: string;
209
+ export { title_2 as title };
210
+ export namespace additionalAxesOptions {
211
+ const stacked: boolean;
212
+ }
213
+ }
214
+ export { options_1 as options };
215
+ }
216
+ declare namespace groupedStacked {
217
+ export namespace data_3 {
218
+ export { labels1 as labels };
219
+ const datasets_3: {
220
+ label: string;
221
+ data: number[];
222
+ stack: number;
223
+ }[];
224
+ export { datasets_3 as datasets };
225
+ }
226
+ export { data_3 as data };
227
+ export namespace options_2 {
228
+ const title_3: string;
229
+ export { title_3 as title };
230
+ export namespace additionalAxesOptions_1 {
231
+ const stacked_1: boolean;
232
+ export { stacked_1 as stacked };
233
+ }
234
+ export { additionalAxesOptions_1 as additionalAxesOptions };
235
+ }
236
+ export { options_2 as options };
237
+ }
238
+ declare namespace multipleAxisData {
239
+ export namespace data_4 {
240
+ export { labels1 as labels };
241
+ const datasets_4: {
242
+ label: string;
243
+ data: number[];
244
+ yAxisID: string;
245
+ }[];
246
+ export { datasets_4 as datasets };
247
+ }
248
+ export { data_4 as data };
249
+ export namespace options_3 {
250
+ const title_4: string;
251
+ export { title_4 as title };
252
+ export namespace axes {
253
+ const y: ({
254
+ gridLines?: undefined;
255
+ } | {
256
+ gridLines: {
257
+ drawOnChartArea: boolean;
258
+ };
259
+ })[];
260
+ }
261
+ }
262
+ export { options_3 as options };
263
+ }
264
+ declare namespace horizontal {
265
+ export namespace data_5 {
266
+ export { labels1 as labels };
267
+ const datasets_5: {
268
+ label: string;
269
+ data: number[];
270
+ }[];
271
+ export { datasets_5 as datasets };
272
+ }
273
+ export { data_5 as data };
274
+ export namespace options_4 {
275
+ const title_5: string;
276
+ export { title_5 as title };
277
+ export const direction: string;
278
+ }
279
+ export { options_4 as options };
280
+ }
281
+ declare namespace reversed {
282
+ export namespace data_6 {
283
+ export { labels1 as labels };
284
+ const datasets_6: {
285
+ label: string;
286
+ data: number[];
287
+ }[];
288
+ export { datasets_6 as datasets };
289
+ }
290
+ export { data_6 as data };
291
+ export namespace options_5 {
292
+ const title_6: string;
293
+ export { title_6 as title };
294
+ export namespace additionalAxesOptions_2 {
295
+ const reverse: boolean;
296
+ }
297
+ export { additionalAxesOptions_2 as additionalAxesOptions };
298
+ }
299
+ export { options_5 as options };
300
+ }
301
+ declare namespace horizontalReversed {
302
+ export namespace data_7 {
303
+ export { labels1 as labels };
304
+ const datasets_7: {
305
+ label: string;
306
+ data: number[];
307
+ }[];
308
+ export { datasets_7 as datasets };
309
+ }
310
+ export { data_7 as data };
311
+ export namespace options_6 {
312
+ const title_7: string;
313
+ export { title_7 as title };
314
+ const direction_1: string;
315
+ export { direction_1 as direction };
316
+ export namespace additionalAxesOptions_3 {
317
+ const reverse_1: boolean;
318
+ export { reverse_1 as reverse };
319
+ }
320
+ export { additionalAxesOptions_3 as additionalAxesOptions };
321
+ }
322
+ export { options_6 as options };
323
+ }
324
+ declare namespace axesWithLabels {
325
+ export namespace data_8 {
326
+ export { labels1 as labels };
327
+ const datasets_8: {
328
+ label: string;
329
+ data: number[];
330
+ }[];
331
+ export { datasets_8 as datasets };
332
+ }
333
+ export { data_8 as data };
334
+ export namespace options_7 {
335
+ const title_8: string;
336
+ export { title_8 as title };
337
+ export namespace axes_1 {
338
+ export const x: {
339
+ label: string;
340
+ }[];
341
+ const y_1: {
342
+ label: string;
343
+ }[];
344
+ export { y_1 as y };
345
+ }
346
+ export { axes_1 as axes };
347
+ }
348
+ export { options_7 as options };
349
+ }
350
+ declare namespace axisPosition {
351
+ export namespace data_9 {
352
+ export { labels1 as labels };
353
+ const datasets_9: {
354
+ label: string;
355
+ data: number[];
356
+ }[];
357
+ export { datasets_9 as datasets };
358
+ }
359
+ export { data_9 as data };
360
+ export namespace options_8 {
361
+ const title_9: string[];
362
+ export { title_9 as title };
363
+ export namespace axes_2 {
364
+ const x_1: {
365
+ position: string;
366
+ }[];
367
+ export { x_1 as x };
368
+ const y_2: {
369
+ position: string;
370
+ }[];
371
+ export { y_2 as y };
372
+ }
373
+ export { axes_2 as axes };
374
+ }
375
+ export { options_8 as options };
376
+ }
377
+ declare namespace notBeginAtZero {
378
+ export namespace data_10 {
379
+ export { labels1 as labels };
380
+ const datasets_10: {
381
+ label: string;
382
+ data: number[];
383
+ }[];
384
+ export { datasets_10 as datasets };
385
+ }
386
+ export { data_10 as data };
387
+ export namespace options_9 {
388
+ const title_10: string;
389
+ export { title_10 as title };
390
+ export namespace additionalAxesOptions_4 {
391
+ const beginAtZero: boolean;
392
+ }
393
+ export { additionalAxesOptions_4 as additionalAxesOptions };
394
+ }
395
+ export { options_9 as options };
396
+ }
397
+ declare namespace suggestedRange {
398
+ export namespace data_11 {
399
+ export { labels1 as labels };
400
+ const datasets_11: {
401
+ label: string;
402
+ data: number[];
403
+ }[];
404
+ export { datasets_11 as datasets };
405
+ }
406
+ export { data_11 as data };
407
+ export namespace options_10 {
408
+ const title_11: string;
409
+ export { title_11 as title };
410
+ export namespace additionalAxesOptions_5 {
411
+ const beginAtZero_1: boolean;
412
+ export { beginAtZero_1 as beginAtZero };
413
+ export const suggestedMin: number;
414
+ export const suggestedMax: number;
415
+ }
416
+ export { additionalAxesOptions_5 as additionalAxesOptions };
417
+ }
418
+ export { options_10 as options };
419
+ }
420
+ declare namespace stepSizeChart {
421
+ export namespace data_12 {
422
+ export { labels1 as labels };
423
+ const datasets_12: {
424
+ label: string;
425
+ data: number[];
426
+ }[];
427
+ export { datasets_12 as datasets };
428
+ }
429
+ export { data_12 as data };
430
+ export namespace options_11 {
431
+ const title_12: string;
432
+ export { title_12 as title };
433
+ export namespace additionalAxesOptions_6 {
434
+ const stepSize: number;
435
+ }
436
+ export { additionalAxesOptions_6 as additionalAxesOptions };
437
+ }
438
+ export { options_11 as options };
439
+ }
440
+ declare namespace logartihmicChart {
441
+ export namespace data_13 {
442
+ export { labels1 as labels };
443
+ const datasets_13: {
444
+ label: string;
445
+ data: number[];
446
+ }[];
447
+ export { datasets_13 as datasets };
448
+ }
449
+ export { data_13 as data };
450
+ export namespace options_12 {
451
+ const title_13: string;
452
+ export { title_13 as title };
453
+ export namespace additionalAxesOptions_7 {
454
+ const chartScaleType: string;
455
+ }
456
+ export { additionalAxesOptions_7 as additionalAxesOptions };
457
+ }
458
+ export { options_12 as options };
459
+ }
460
+ declare namespace dataLabelsNumberChart {
461
+ export namespace data_14 {
462
+ export { labels1 as labels };
463
+ const datasets_14: {
464
+ label: string;
465
+ data: number[];
466
+ }[];
467
+ export { datasets_14 as datasets };
468
+ }
469
+ export { data_14 as data };
470
+ export namespace options_13 {
471
+ const title_14: string;
472
+ export { title_14 as title };
473
+ export namespace graph {
474
+ const showDataLabels: boolean;
475
+ }
476
+ }
477
+ export { options_13 as options };
478
+ }
479
+ declare namespace legendRight {
480
+ export namespace data_15 {
481
+ export { labels1 as labels };
482
+ const datasets_15: {
483
+ label: string;
484
+ data: number[];
485
+ }[];
486
+ export { datasets_15 as datasets };
487
+ }
488
+ export { data_15 as data };
489
+ export namespace options_14 {
490
+ const title_15: string;
491
+ export { title_15 as title };
492
+ export namespace legend_1 {
493
+ const position: string;
494
+ }
495
+ export { legend_1 as legend };
496
+ }
497
+ export { options_14 as options };
498
+ }
499
+ declare namespace horizontalAnnotationChart {
500
+ export namespace data_16 {
501
+ export { labels1 as labels };
502
+ const datasets_16: {
503
+ label: string;
504
+ data: number[];
505
+ }[];
506
+ export { datasets_16 as datasets };
507
+ }
508
+ export { data_16 as data };
509
+ export namespace options_15 {
510
+ const title_16: string;
511
+ export { title_16 as title };
512
+ export namespace annotations {
513
+ const showAnnotations: boolean;
514
+ const annotationsData: {
515
+ annotationAxis: string;
516
+ label: string;
517
+ value: number;
518
+ color: string;
519
+ }[];
520
+ }
521
+ }
522
+ export { options_15 as options };
523
+ }
524
+ declare namespace verticalAnnotationChart {
525
+ export namespace data_17 {
526
+ export { labels1 as labels };
527
+ const datasets_17: {
528
+ label: string;
529
+ data: number[];
530
+ }[];
531
+ export { datasets_17 as datasets };
532
+ }
533
+ export { data_17 as data };
534
+ export namespace options_16 {
535
+ const title_17: string;
536
+ export { title_17 as title };
537
+ export namespace annotations_1 {
538
+ const showAnnotations_1: boolean;
539
+ export { showAnnotations_1 as showAnnotations };
540
+ const annotationsData_1: {
541
+ annotationAxis: string;
542
+ label: string;
543
+ value: number;
544
+ color: string;
545
+ }[];
546
+ export { annotationsData_1 as annotationsData };
547
+ }
548
+ export { annotations_1 as annotations };
549
+ }
550
+ export { options_16 as options };
551
+ }
552
+ declare namespace diagonalAnnotationChart {
553
+ export namespace data_18 {
554
+ export { labels1 as labels };
555
+ const datasets_18: {
556
+ label: string;
557
+ data: number[];
558
+ }[];
559
+ export { datasets_18 as datasets };
560
+ }
561
+ export { data_18 as data };
562
+ export namespace options_17 {
563
+ const title_18: string;
564
+ export { title_18 as title };
565
+ export namespace annotations_2 {
566
+ const showAnnotations_2: boolean;
567
+ export { showAnnotations_2 as showAnnotations };
568
+ const annotationsData_2: {
569
+ annotationAxis: string;
570
+ label: string;
571
+ value: number;
572
+ endValue: number;
573
+ color: string;
574
+ }[];
575
+ export { annotationsData_2 as annotationsData };
576
+ }
577
+ export { annotations_2 as annotations };
578
+ }
579
+ export { options_17 as options };
580
+ }
581
+ declare namespace controlAnnotationChart {
582
+ export namespace data_19 {
583
+ export { labels1 as labels };
584
+ const datasets_19: {
585
+ label: string;
586
+ data: number[];
587
+ }[];
588
+ export { datasets_19 as datasets };
589
+ }
590
+ export { data_19 as data };
591
+ export namespace options_18 {
592
+ const title_19: string;
593
+ export { title_19 as title };
594
+ export namespace annotations_3 {
595
+ const showAnnotations_3: boolean;
596
+ export { showAnnotations_3 as showAnnotations };
597
+ export const controlAnnotation: boolean;
598
+ const annotationsData_3: ({
599
+ annotationAxis: string;
600
+ label: string;
601
+ value: number;
602
+ endValue: number;
603
+ color: string;
604
+ } | {
605
+ annotationAxis: string;
606
+ label: string;
607
+ value: number;
608
+ color: string;
609
+ endValue?: undefined;
610
+ })[];
611
+ export { annotationsData_3 as annotationsData };
612
+ }
613
+ export { annotations_3 as annotations };
614
+ }
615
+ export { options_18 as options };
616
+ }
617
+ declare namespace animatedChart {
618
+ export namespace data_20 {
619
+ export { labels1 as labels };
620
+ const datasets_20: {
621
+ label: string;
622
+ data: number[];
623
+ }[];
624
+ export { datasets_20 as datasets };
625
+ }
626
+ export { data_20 as data };
627
+ export namespace options_19 {
628
+ namespace chartStyling {
629
+ const performanceMode: boolean;
630
+ }
631
+ }
632
+ export { options_19 as options };
633
+ }
634
+ declare const customLegendContainerID: "custom-legend-container";
635
+ declare const labels1: string[];
636
+ declare namespace dragDataChart {
637
+ export namespace data_21 {
638
+ export { labels1 as labels };
639
+ const datasets_21: {
640
+ label: string;
641
+ data: number[];
642
+ }[];
643
+ export { datasets_21 as datasets };
644
+ }
645
+ export { data_21 as data };
646
+ export namespace options_20 {
647
+ namespace dragData {
648
+ const enableDragData: boolean;
649
+ const showTooltip: boolean;
650
+ const roundPoints: boolean;
651
+ function onDragStart(evt: any, element: any): void;
652
+ function onDrag(evt: any, datasetIndex: any, index: any, value: any): void;
653
+ function onDragEnd(evt: any, datasetIndex: any, index: any, value: any): void;
654
+ }
655
+ }
656
+ export { options_20 as options };
657
+ }
@@ -0,0 +1,18 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ interface ContainerProps {
3
+ style?: CSSProperties;
4
+ children: ReactNode;
5
+ margin?: boolean;
6
+ deprecatedMessage?: string;
7
+ warningMessage?: string;
8
+ }
9
+ export declare const Container: {
10
+ ({ style, children, margin, deprecatedMessage, warningMessage, }: ContainerProps): import("react/jsx-runtime").JSX.Element;
11
+ defaultProps: {
12
+ style: {};
13
+ margin: boolean;
14
+ deprecatedMessage: null;
15
+ warningMessage: null;
16
+ };
17
+ };
18
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Chart, Plugin, ChartConfiguration } from 'chart.js';
2
+ /**
3
+ * Gets an example custom legend plugin for use in storybook.
4
+ * @param {string} customLegendContainerID - the id of the div container to put the generated legend in
5
+ */
6
+ export declare const getCustomLegendPlugin: (customLegendContainerID: string) => {
7
+ afterUpdate(chart: Chart, _args: Plugin, _options: ChartConfiguration): void;
8
+ };
@@ -0,0 +1 @@
1
+ export declare const getTextWidth: (text: string, font: string) => number | undefined;