@sproutsocial/seeds-react-data-viz 0.19.0 → 0.21.0

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 (46) hide show
  1. package/dist/bar/index.d.mts +20 -4
  2. package/dist/bar/index.d.ts +20 -4
  3. package/dist/bar/index.js +56 -24
  4. package/dist/bar/index.js.map +1 -1
  5. package/dist/charts.css +583 -0
  6. package/dist/{chunk-DLO4WZLT.js → chunk-27M4FDNK.js} +14 -14
  7. package/dist/chunk-27M4FDNK.js.map +1 -0
  8. package/dist/chunk-46L4YBLC.js +544 -0
  9. package/dist/chunk-46L4YBLC.js.map +1 -0
  10. package/dist/{chunk-4IOYAUAK.js → chunk-XYE6O77Z.js} +3 -3
  11. package/dist/{chunk-4IOYAUAK.js.map → chunk-XYE6O77Z.js.map} +1 -1
  12. package/dist/donut/index.d.mts +16 -5
  13. package/dist/donut/index.d.ts +16 -5
  14. package/dist/donut/index.js +22 -16
  15. package/dist/donut/index.js.map +1 -1
  16. package/dist/esm/bar/index.js +44 -12
  17. package/dist/esm/bar/index.js.map +1 -1
  18. package/dist/esm/{chunk-J5QE7VCW.js → chunk-KMFRRUTY.js} +2 -2
  19. package/dist/esm/{chunk-U6ZOSXK7.js → chunk-QSSYSKRP.js} +2 -2
  20. package/dist/esm/chunk-QSSYSKRP.js.map +1 -0
  21. package/dist/esm/chunk-XEKQTAUH.js +544 -0
  22. package/dist/esm/chunk-XEKQTAUH.js.map +1 -0
  23. package/dist/esm/donut/index.js +19 -13
  24. package/dist/esm/donut/index.js.map +1 -1
  25. package/dist/esm/index.js +536 -134
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/line-area/index.js +36 -13
  28. package/dist/esm/line-area/index.js.map +1 -1
  29. package/dist/esm/sparkline/index.js +2 -2
  30. package/dist/index.js +497 -95
  31. package/dist/index.js.map +1 -1
  32. package/dist/interactions-DoWoL7bu.d.mts +29 -0
  33. package/dist/interactions-DoWoL7bu.d.ts +29 -0
  34. package/dist/line-area/index.d.mts +17 -4
  35. package/dist/line-area/index.d.ts +17 -4
  36. package/dist/line-area/index.js +40 -17
  37. package/dist/line-area/index.js.map +1 -1
  38. package/dist/sparkline/index.js +4 -4
  39. package/package.json +16 -11
  40. package/dist/chunk-DLO4WZLT.js.map +0 -1
  41. package/dist/chunk-WEKDYQ4T.js +0 -968
  42. package/dist/chunk-WEKDYQ4T.js.map +0 -1
  43. package/dist/esm/chunk-U6ZOSXK7.js.map +0 -1
  44. package/dist/esm/chunk-Z4LOM4OZ.js +0 -968
  45. package/dist/esm/chunk-Z4LOM4OZ.js.map +0 -1
  46. /package/dist/esm/{chunk-J5QE7VCW.js.map → chunk-KMFRRUTY.js.map} +0 -0
package/dist/index.js CHANGED
@@ -31,19 +31,7 @@ var _chunkCYQXUAJCjs = require('./chunk-CYQXUAJC.js');
31
31
 
32
32
 
33
33
 
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- var _chunkWEKDYQ4Tjs = require('./chunk-WEKDYQ4T.js');
34
+ var _chunk46L4YBLCjs = require('./chunk-46L4YBLC.js');
47
35
 
48
36
  // src/components/AreaChart/AreaChart.tsx
49
37
  var _react = require('react');
@@ -57,18 +45,56 @@ var _seedsreactbox = require('@sproutsocial/seeds-react-box');
57
45
  // src/components/AreaChart/components/AreaChartLegend.tsx
58
46
 
59
47
  var _seedsreacttheme = require('@sproutsocial/seeds-react-theme');
48
+
49
+ // src/components/ColorBox/DatavizColorBox.tsx
50
+
51
+
52
+ var DatavizColorBox = _styledcomponents2.default.call(void 0, _chunk46L4YBLCjs.ColorBox).attrs(
53
+ ({ colorIndex }) => ({
54
+ style: {
55
+ background: getDatavizColor(colorIndex),
56
+ opacity: getDatavizOpacity(colorIndex)
57
+ }
58
+ })
59
+ )``;
60
+ var getDatavizColor = (colorIndex) => _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[colorIndex % _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST.length] || "";
61
+ var getDatavizOpacity = (colorIndex) => {
62
+ const opacitySteps = [1, 0.6, 0.4, 0.2];
63
+ const opacityStep = Math.floor(colorIndex / _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST.length) % opacitySteps.length;
64
+ return opacitySteps[opacityStep];
65
+ };
66
+ var getDatavizColorWithAlpha = (colorIndex) => {
67
+ const color = getDatavizColor(colorIndex);
68
+ const opacity = getDatavizOpacity(colorIndex);
69
+ if (opacity < 0 || opacity > 1) {
70
+ return color;
71
+ }
72
+ return `${color}${Math.floor(opacity * 255).toString(16).padStart(2, "0")}`;
73
+ };
74
+
75
+ // src/components/ColorBox/NetworkColorBox.tsx
76
+ var _seedsnetworkcolor = require('@sproutsocial/seeds-networkcolor'); var _seedsnetworkcolor2 = _interopRequireDefault(_seedsnetworkcolor);
60
77
  var _jsxruntime = require('react/jsx-runtime');
78
+ var NetworkColorBox = ({
79
+ networkColor,
80
+ ...props
81
+ }) => {
82
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ColorBox, { ...props, bg: _seedsnetworkcolor2.default[networkColor] });
83
+ };
84
+
85
+ // src/components/AreaChart/components/AreaChartLegend.tsx
86
+
61
87
  var getAreaChartLegendLabels = ({
62
88
  data
63
89
  }) => {
64
90
  return data.map((series, index) => ({
65
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
91
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
66
92
  color: _optionalChain([series, 'access', _ => _.styles, 'optionalAccess', _2 => _2.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
67
93
  }));
68
94
  };
69
95
  var AreaChartLegend = _react.memo.call(void 0,
70
96
  function AreaChartLegend2({ data }) {
71
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
97
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
72
98
  }
73
99
  );
74
100
 
@@ -101,7 +127,7 @@ var AreaChartTooltip = _react.memo.call(void 0,
101
127
  return {
102
128
  cells: [
103
129
  {
104
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
130
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
105
131
  },
106
132
  {
107
133
  content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -149,16 +175,16 @@ var AreaChartTooltip = _react.memo.call(void 0,
149
175
  isAppendedRow: true
150
176
  }
151
177
  ] : [];
152
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltip, { children: [
178
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk46L4YBLCjs.ChartTooltip, { children: [
153
179
  xAnnotationDetails ? xAnnotationDetails() : void 0,
154
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
180
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
155
181
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
156
- _chunkWEKDYQ4Tjs.ChartTooltipTable,
182
+ _chunk46L4YBLCjs.ChartTooltipTable,
157
183
  {
158
184
  rows: [...rows, ...appendedRows]
159
185
  }
160
186
  ),
161
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
187
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
162
188
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
163
189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
164
190
  ] }) : tooltipClickLabel }) : null
@@ -226,6 +252,382 @@ var ChartXAnnotationMarkerPortal = _react.memo.call(void 0,
226
252
  }
227
253
  );
228
254
 
255
+ // src/helpers/transformDataToSeries.ts
256
+ var transformDataToSeries = ({
257
+ data
258
+ }, type) => {
259
+ const hasCategoricalData = data.some(
260
+ (series) => series.points.some((point) => typeof point.x === "string")
261
+ );
262
+ return data.map((dataItem, dataIndex) => {
263
+ const points = dataItem.points || [];
264
+ const dataPoints = points.map((point, pointsIndex) => {
265
+ let enableMarker = false;
266
+ const isFirstPoint = pointsIndex === 0;
267
+ const isLastPoint = pointsIndex === points.length - 1;
268
+ const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
269
+ const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
270
+ if (isFirstPoint && nextY === null) {
271
+ enableMarker = true;
272
+ } else if (isLastPoint && previousY === null) {
273
+ enableMarker = true;
274
+ } else if (previousY === null && nextY === null) {
275
+ enableMarker = true;
276
+ }
277
+ return {
278
+ x: hasCategoricalData ? pointsIndex : point.x,
279
+ y: point.y,
280
+ marker: {
281
+ enabled: enableMarker ? enableMarker : void 0,
282
+ symbol: enableMarker ? "circle" : void 0
283
+ },
284
+ // For categorical data, store the original category name
285
+ ...hasCategoricalData && { name: point.x }
286
+ };
287
+ });
288
+ return {
289
+ colorIndex: dataIndex,
290
+ data: dataPoints,
291
+ name: dataItem.name,
292
+ type
293
+ };
294
+ });
295
+ };
296
+
297
+ // src/helpers/yAxisLabelFormatter.ts
298
+
299
+
300
+ var yAxisLabelFormatter = ({
301
+ numberLocale,
302
+ textLocale,
303
+ tickPositions,
304
+ value,
305
+ currency = "USD",
306
+ numberFormat = "decimal"
307
+ }) => {
308
+ const numberValue = Number(value);
309
+ if (numberValue === 0) {
310
+ return _seedsreactnumeral.formatNumeral.call(void 0, {
311
+ locale: numberLocale,
312
+ number: numberValue
313
+ });
314
+ }
315
+ if (numberFormat === "duration") {
316
+ return _seedsreactduration.formatDuration.call(void 0, {
317
+ display: "narrow",
318
+ locale: textLocale,
319
+ milliseconds: numberValue
320
+ });
321
+ }
322
+ const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
323
+ const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
324
+ return _seedsreactnumeral.formatNumeral.call(void 0, {
325
+ abbreviate,
326
+ currency,
327
+ format: numberFormat,
328
+ locale: numberLocale,
329
+ number: numberValue
330
+ });
331
+ };
332
+
333
+ // src/helpers/xAxisLabelFormatter.ts
334
+ var getDatePartsInTimezone = (date, timezone) => {
335
+ const formatter = new Intl.DateTimeFormat("en-US", {
336
+ year: "numeric",
337
+ month: "numeric",
338
+ day: "numeric",
339
+ timeZone: timezone
340
+ });
341
+ const parts = formatter.formatToParts(date);
342
+ return {
343
+ day: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _10 => _10.find, 'call', _11 => _11((p) => p.type === "day"), 'optionalAccess', _12 => _12.value]), () => ( "0")), 10),
344
+ month: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _13 => _13.find, 'call', _14 => _14((p) => p.type === "month"), 'optionalAccess', _15 => _15.value]), () => ( "0")), 10),
345
+ year: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _16 => _16.find, 'call', _17 => _17((p) => p.type === "year"), 'optionalAccess', _18 => _18.value]), () => ( "0")), 10)
346
+ };
347
+ };
348
+ var xAxisLabelFormatter = ({
349
+ textLocale,
350
+ tickPositions = [],
351
+ unitName,
352
+ value,
353
+ // optional
354
+ timeFormat = "12",
355
+ timezone = "UTC"
356
+ }) => {
357
+ if (typeof value === "string") {
358
+ return `<span>${value}</span>`;
359
+ }
360
+ const tickIndex = tickPositions.indexOf(value);
361
+ const isFirst = tickIndex === 0;
362
+ const previousValue = tickPositions[tickIndex - 1];
363
+ const valueDate = new Date(value);
364
+ const valueParts = getDatePartsInTimezone(valueDate, timezone);
365
+ const previousValueDate = previousValue ? new Date(previousValue) : void 0;
366
+ const previousValueParts = previousValueDate ? getDatePartsInTimezone(previousValueDate, timezone) : void 0;
367
+ let firstPartOptions = {};
368
+ let secondPartOptions = {};
369
+ switch (unitName) {
370
+ case "hour":
371
+ firstPartOptions = timeFormat === "24" ? { hour: "numeric", minute: "numeric", hour12: false } : { hour: "numeric" };
372
+ if (isFirst || valueParts.day !== _optionalChain([previousValueParts, 'optionalAccess', _19 => _19.day])) {
373
+ secondPartOptions = { day: "numeric", month: "short" };
374
+ }
375
+ break;
376
+ case "day":
377
+ case "week":
378
+ firstPartOptions = { day: "numeric" };
379
+ if (isFirst || valueParts.month !== _optionalChain([previousValueParts, 'optionalAccess', _20 => _20.month])) {
380
+ secondPartOptions = { month: "short" };
381
+ }
382
+ break;
383
+ case "month":
384
+ firstPartOptions = { month: "short" };
385
+ if (isFirst || valueParts.year !== _optionalChain([previousValueParts, 'optionalAccess', _21 => _21.year])) {
386
+ secondPartOptions = { year: "numeric" };
387
+ }
388
+ break;
389
+ case "year":
390
+ firstPartOptions = { year: "numeric" };
391
+ break;
392
+ default:
393
+ firstPartOptions = {};
394
+ break;
395
+ }
396
+ const firstPart = new Intl.DateTimeFormat(textLocale, {
397
+ ...firstPartOptions,
398
+ timeZone: timezone
399
+ }).format(valueDate);
400
+ const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
401
+ ...secondPartOptions,
402
+ timeZone: timezone
403
+ }).format(valueDate) : void 0;
404
+ return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
405
+ };
406
+
407
+ // src/helpers/isHourlyTimeData.ts
408
+ function isHourlyTimeData(data) {
409
+ if (!data.length) return false;
410
+ const xVals = data.flatMap((series) => series.points.map((p) => p.x));
411
+ if (!xVals.length) return false;
412
+ if (xVals.some((x) => typeof x === "string")) return false;
413
+ const dates = xVals.map((x) => {
414
+ const d = new Date(x);
415
+ return `${d.getUTCFullYear()}-${d.getUTCMonth()}-${d.getUTCDate()}`;
416
+ });
417
+ const uniqueDates = new Set(dates);
418
+ if (uniqueDates.size !== 1) return false;
419
+ return xVals.every((x) => {
420
+ const d = new Date(x);
421
+ const hour = d.getUTCHours();
422
+ const minutes = d.getUTCMinutes();
423
+ const seconds = d.getUTCSeconds();
424
+ return hour >= 0 && hour <= 23 && minutes === 0 && seconds === 0;
425
+ });
426
+ }
427
+
428
+ // src/helpers/isCategoricalHourData.ts
429
+ function isCategoricalHourData(data) {
430
+ if (!data.length) return false;
431
+ const xVals = data.flatMap((series) => series.points.map((p) => p.x));
432
+ if (!xVals.length) return false;
433
+ if (xVals.some((x) => typeof x !== "string")) return false;
434
+ const hour12Pattern = /^\d{1,2} (AM|PM)$/;
435
+ const hour24Pattern = /^([01]?\d|2[0-3]):([0-5]\d)$/;
436
+ const stringValues = xVals;
437
+ const allMatch12Hour = stringValues.every((x) => hour12Pattern.test(x));
438
+ const allMatch24Hour = stringValues.every((x) => hour24Pattern.test(x));
439
+ return allMatch12Hour || allMatch24Hour;
440
+ }
441
+
442
+ // src/helpers/getStorybookRandomColor.ts
443
+ var getStorybookRandomColor = () => {
444
+ const letters = "0123456789ABCDEF";
445
+ let color = "#";
446
+ for (let i = 0; i < 6; i++) {
447
+ color += letters[Math.floor(Math.random() * 16)];
448
+ }
449
+ return color;
450
+ };
451
+
452
+ // src/helpers/getStorybookCategoricalData.ts
453
+ var getStorybookCategoricalData = ({
454
+ showNulls,
455
+ showNegativeValues,
456
+ numberOfSeries,
457
+ yAxisMax,
458
+ showCustomColors,
459
+ showDashedLines,
460
+ categoryType
461
+ }) => {
462
+ const categoryOptions = {
463
+ hours: [
464
+ "12 AM",
465
+ "1 AM",
466
+ "2 AM",
467
+ "3 AM",
468
+ "4 AM",
469
+ "5 AM",
470
+ "6 AM",
471
+ "7 AM",
472
+ "8 AM",
473
+ "9 AM",
474
+ "10 AM",
475
+ "11 AM",
476
+ "12 PM",
477
+ "1 PM",
478
+ "2 PM",
479
+ "3 PM",
480
+ "4 PM",
481
+ "5 PM",
482
+ "6 PM",
483
+ "7 PM",
484
+ "8 PM",
485
+ "9 PM",
486
+ "10 PM",
487
+ "11 PM"
488
+ ],
489
+ hours24: [
490
+ "00:00",
491
+ "01:00",
492
+ "02:00",
493
+ "03:00",
494
+ "04:00",
495
+ "05:00",
496
+ "06:00",
497
+ "07:00",
498
+ "08:00",
499
+ "09:00",
500
+ "10:00",
501
+ "11:00",
502
+ "12:00",
503
+ "13:00",
504
+ "14:00",
505
+ "15:00",
506
+ "16:00",
507
+ "17:00",
508
+ "18:00",
509
+ "19:00",
510
+ "20:00",
511
+ "21:00",
512
+ "22:00",
513
+ "23:00"
514
+ ],
515
+ days: [
516
+ "Monday",
517
+ "Tuesday",
518
+ "Wednesday",
519
+ "Thursday",
520
+ "Friday",
521
+ "Saturday",
522
+ "Sunday"
523
+ ],
524
+ months: [
525
+ "January",
526
+ "February",
527
+ "March",
528
+ "April",
529
+ "May",
530
+ "June",
531
+ "July",
532
+ "August",
533
+ "September",
534
+ "October",
535
+ "November",
536
+ "December"
537
+ ],
538
+ custom: [
539
+ "Category A",
540
+ "Category B",
541
+ "Category C",
542
+ "Category D",
543
+ "Category E"
544
+ ]
545
+ };
546
+ const categories = categoryOptions[categoryType];
547
+ const numberOfPoints = categories.length;
548
+ return [...Array(numberOfSeries).keys()].map((seriesIndex) => {
549
+ let nullsArray = [];
550
+ if (showNulls) {
551
+ const nullsArrayLength = Math.floor(numberOfPoints / 5);
552
+ nullsArray = [...Array(nullsArrayLength)].map(
553
+ () => Math.floor(Math.random() * numberOfPoints)
554
+ );
555
+ }
556
+ return {
557
+ points: categories.map((category, pointIndex) => {
558
+ const showNull = nullsArray && nullsArray.length > 0 ? nullsArray.includes(pointIndex) : false;
559
+ const randomValue = Math.random();
560
+ const positiveOrNegativeYAxisMax = showNegativeValues ? randomValue < 0.5 ? -yAxisMax : yAxisMax : yAxisMax;
561
+ return {
562
+ x: category,
563
+ y: showNull ? null : Math.floor(randomValue * positiveOrNegativeYAxisMax)
564
+ };
565
+ }),
566
+ name: `Series ${seriesIndex + 1}`,
567
+ styles: {
568
+ color: showCustomColors ? getStorybookRandomColor() : void 0,
569
+ pattern: showDashedLines ? "dashed" : "solid"
570
+ }
571
+ };
572
+ });
573
+ };
574
+
575
+ // src/helpers/getStorybookSparseTimelineData.ts
576
+ var getStorybookSparseTimelineData = ({
577
+ showNulls,
578
+ showNegativeValues,
579
+ numberOfSeries,
580
+ yAxisMax,
581
+ showCustomColors,
582
+ showDashedLines,
583
+ numberOfPoints = 5,
584
+ timeSpanHours = 24
585
+ }) => {
586
+ const seriesNames = [
587
+ "Posts Published",
588
+ "Comments",
589
+ "Likes",
590
+ "Shares",
591
+ "Clicks",
592
+ "Views",
593
+ "Saves",
594
+ "Reposts",
595
+ "Mentions",
596
+ "Reactions"
597
+ ];
598
+ const baseDate = /* @__PURE__ */ new Date("2024-01-01T00:00:00Z");
599
+ const timeSpanMs = timeSpanHours * 60 * 60 * 1e3;
600
+ return [...Array(numberOfSeries).keys()].map((seriesIndex) => {
601
+ let nullsArray = [];
602
+ if (showNulls) {
603
+ const nullsArrayLength = Math.floor(numberOfPoints / 5);
604
+ nullsArray = [...Array(nullsArrayLength)].map(
605
+ () => Math.floor(Math.random() * numberOfPoints)
606
+ );
607
+ }
608
+ const timestamps = [...Array(numberOfPoints)].map(() => {
609
+ const randomOffset = Math.random() * timeSpanMs;
610
+ return baseDate.getTime() + randomOffset;
611
+ }).sort((a, b) => a - b);
612
+ return {
613
+ points: timestamps.map((timestamp, pointIndex) => {
614
+ const showNull = nullsArray && nullsArray.length > 0 ? nullsArray.includes(pointIndex) : false;
615
+ const randomValue = Math.random();
616
+ const positiveOrNegativeYAxisMax = showNegativeValues ? randomValue < 0.5 ? -yAxisMax : yAxisMax : yAxisMax;
617
+ return {
618
+ x: timestamp,
619
+ y: showNull ? null : Math.floor(randomValue * positiveOrNegativeYAxisMax)
620
+ };
621
+ }),
622
+ name: seriesNames[seriesIndex] || `Series ${seriesIndex + 1}`,
623
+ styles: {
624
+ color: showCustomColors ? getStorybookRandomColor() : void 0,
625
+ pattern: showDashedLines ? "dashed" : "solid"
626
+ }
627
+ };
628
+ });
629
+ };
630
+
229
631
  // src/hooks/useTimeSeriesChartOptions.ts
230
632
 
231
633
  var _lodash = require('lodash');
@@ -252,7 +654,7 @@ var useTimeSeriesChartOptions = ({
252
654
  const handleFocus = (point) => point.series.chart.tooltip.refresh(point);
253
655
  const handleBlur = (point) => point.series.chart.tooltip.hide(0);
254
656
  series.flatMap((item) => item.data).forEach((point) => {
255
- const pointElement = _optionalChain([point, 'optionalAccess', _10 => _10.graphic, 'optionalAccess', _11 => _11.element]);
657
+ const pointElement = _optionalChain([point, 'optionalAccess', _22 => _22.graphic, 'optionalAccess', _23 => _23.element]);
256
658
  if (pointElement) {
257
659
  pointElement.setAttribute("aria-describedby", tooltipId);
258
660
  pointElement.addEventListener("focus", () => handleFocus(point));
@@ -292,7 +694,7 @@ var useTimeSeriesChartOptions = ({
292
694
  const hasCategoricalData = data.some(
293
695
  (series) => series.points.some((point) => typeof point.x === "string")
294
696
  );
295
- const categories = hasCategoricalData ? _optionalChain([data, 'access', _12 => _12[0], 'optionalAccess', _13 => _13.points, 'access', _14 => _14.map, 'call', _15 => _15((point) => point.x)]) || [] : [];
697
+ const categories = hasCategoricalData ? _optionalChain([data, 'access', _24 => _24[0], 'optionalAccess', _25 => _25.points, 'access', _26 => _26.map, 'call', _27 => _27((point) => point.x)]) || [] : [];
296
698
  const hasSparseTimelineData = !hasCategoricalData && seriesType === "column";
297
699
  const options = _react.useMemo.call(void 0, () => {
298
700
  return _lodash.merge.call(void 0, {}, baseChartOptions2, {
@@ -312,10 +714,10 @@ var useTimeSeriesChartOptions = ({
312
714
  marginTop: chartMarginTop,
313
715
  events: {
314
716
  click: onClick ? function() {
315
- return onClick({ x: _optionalChain([this, 'optionalAccess', _16 => _16.hoverPoint, 'optionalAccess', _17 => _17.x]) });
717
+ return onClick({ x: _optionalChain([this, 'optionalAccess', _28 => _28.hoverPoint, 'optionalAccess', _29 => _29.x]) });
316
718
  } : void 0,
317
719
  load: function() {
318
- const tooltipId = _chunkWEKDYQ4Tjs.generateChartTooltipPortalId.call(void 0, this.index);
720
+ const tooltipId = _chunk46L4YBLCjs.generateChartTooltipPortalId.call(void 0, this.index);
319
721
  attachTooltipEventListeners(this.series, tooltipId);
320
722
  }
321
723
  }
@@ -394,7 +796,7 @@ var useTimeSeriesChartOptions = ({
394
796
  }
395
797
  }
396
798
  },
397
- series: _chunkWEKDYQ4Tjs.transformDataToSeries.call(void 0, { data }, seriesType),
799
+ series: transformDataToSeries({ data }, seriesType),
398
800
  time: { timezone },
399
801
  tooltip: {
400
802
  enabled: !disableTooltips
@@ -406,7 +808,7 @@ var useTimeSeriesChartOptions = ({
406
808
  Number
407
809
  );
408
810
  const value = this.value;
409
- const unitName = _optionalChain([this, 'access', _18 => _18.tickPositionInfo, 'optionalAccess', _19 => _19.unitName]);
811
+ const unitName = _optionalChain([this, 'access', _30 => _30.tickPositionInfo, 'optionalAccess', _31 => _31.unitName]);
410
812
  if (typeof xAxisLabelFormatter2 === "function") {
411
813
  return xAxisLabelFormatter2({
412
814
  textLocale,
@@ -442,7 +844,7 @@ var useTimeSeriesChartOptions = ({
442
844
  return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
443
845
  y: this.value,
444
846
  yValues: this.axis.tickPositions
445
- }) : _chunkWEKDYQ4Tjs.yAxisLabelFormatter.call(void 0, {
847
+ }) : yAxisLabelFormatter({
446
848
  currency,
447
849
  numberFormat,
448
850
  numberLocale,
@@ -473,7 +875,7 @@ var useTimeSeriesChartOptions = ({
473
875
  ]);
474
876
  return { options, chart, callback };
475
877
  };
476
- var xAxisLabelFormatterDefault = _chunkWEKDYQ4Tjs.xAxisLabelFormatter;
878
+ var xAxisLabelFormatterDefault = xAxisLabelFormatter;
477
879
 
478
880
  // src/components/AreaChart/AreaChart.tsx
479
881
 
@@ -481,7 +883,7 @@ var xAxisLabelFormatterDefault = _chunkWEKDYQ4Tjs.xAxisLabelFormatter;
481
883
  _accessibility2.default.call(void 0, _highcharts2.default);
482
884
  _annotations2.default.call(void 0, _highcharts2.default);
483
885
  var StyledBox = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
484
- ${_chunkWEKDYQ4Tjs.areaChartStyles}
886
+ ${_chunk46L4YBLCjs.areaChartStyles}
485
887
  `;
486
888
  var AreaChart = _react.memo.call(void 0, function AreaChart2(props) {
487
889
  const { data } = props;
@@ -521,10 +923,10 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
521
923
  xAnnotations
522
924
  });
523
925
  const colors = data.map(
524
- (series, index) => _nullishCoalesce(_optionalChain([series, 'access', _20 => _20.styles, 'optionalAccess', _21 => _21.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
926
+ (series, index) => _nullishCoalesce(_optionalChain([series, 'access', _32 => _32.styles, 'optionalAccess', _33 => _33.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
525
927
  );
526
928
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
527
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.GlobalChartStyleOverrides, {}),
929
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.GlobalChartStyleOverrides, {}),
528
930
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
529
931
  StyledBox,
530
932
  {
@@ -540,26 +942,26 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
540
942
  callback
541
943
  }
542
944
  ),
543
- chart && _optionalChain([chart, 'access', _22 => _22.annotations, 'optionalAccess', _23 => _23.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
945
+ chart && _optionalChain([chart, 'access', _34 => _34.annotations, 'optionalAccess', _35 => _35.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
544
946
  ChartXAnnotationMarkerPortal,
545
947
  {
546
948
  xAnnotations,
547
- annotationContext: _optionalChain([chart, 'access', _24 => _24.annotations, 'optionalAccess', _25 => _25[0]]),
949
+ annotationContext: _optionalChain([chart, 'access', _36 => _36.annotations, 'optionalAccess', _37 => _37[0]]),
548
950
  chartContainer: chart.container
549
951
  }
550
952
  ) : null,
551
953
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
552
- _chunkWEKDYQ4Tjs.ChartTooltipPortal,
954
+ _chunk46L4YBLCjs.ChartTooltipPortal,
553
955
  {
554
956
  chart,
555
957
  renderContent: (context) => {
556
- const tooltipData = _chunkWEKDYQ4Tjs.transformTimeSeriesTooltipData.call(void 0, {
958
+ const tooltipData = _chunk46L4YBLCjs.transformTimeSeriesTooltipData.call(void 0, {
557
959
  context,
558
960
  data
559
961
  });
560
962
  const x = context.x;
561
963
  const total = context.total;
562
- const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _26 => _26[x], 'optionalAccess', _27 => _27.details]);
964
+ const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _38 => _38[x], 'optionalAccess', _39 => _39.details]);
563
965
  return tooltip ? tooltip({ data: tooltipData, total, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
564
966
  AreaChartTooltip,
565
967
  {
@@ -596,7 +998,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
596
998
 
597
999
  var ChartXAnnotationDetails = _react.memo.call(void 0,
598
1000
  function ChartXAnnotationDetails2({ iconName, text }) {
599
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1001
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
600
1002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: iconName, size: "mini", color: "icon.base" }),
601
1003
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: text })
602
1004
  ] }) });
@@ -645,13 +1047,13 @@ var getDonutChartLegendLabels = ({
645
1047
  data
646
1048
  }) => {
647
1049
  return data.map((slice, index) => ({
648
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
649
- color: _optionalChain([slice, 'access', _28 => _28.styles, 'optionalAccess', _29 => _29.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1050
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
1051
+ color: _optionalChain([slice, 'access', _40 => _40.styles, 'optionalAccess', _41 => _41.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
650
1052
  }));
651
1053
  };
652
1054
  var DonutChartLegend = _react.memo.call(void 0,
653
1055
  function DonutChartLegend2({ data }) {
654
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
1056
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
655
1057
  }
656
1058
  );
657
1059
 
@@ -681,7 +1083,7 @@ var DonutChartTooltip = _react.memo.call(void 0,
681
1083
  {
682
1084
  cells: [
683
1085
  {
684
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1086
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
685
1087
  },
686
1088
  {
687
1089
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -710,9 +1112,9 @@ var DonutChartTooltip = _react.memo.call(void 0,
710
1112
  ]
711
1113
  }
712
1114
  ];
713
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltip, { children: [
714
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTable, { rows }),
715
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1115
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk46L4YBLCjs.ChartTooltip, { children: [
1116
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTable, { rows }),
1117
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
716
1118
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
717
1119
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
718
1120
  ] }) : tooltipClickLabel }) : null
@@ -728,8 +1130,8 @@ var transformDonutChartTooltipData = ({
728
1130
  }) => {
729
1131
  const colorIndex = context.colorIndex;
730
1132
  return {
731
- color: _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'access', _30 => _30[colorIndex], 'optionalAccess', _31 => _31.styles, 'optionalAccess', _32 => _32.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[colorIndex])), () => ( "")),
732
- ..._optionalChain([data, 'access', _33 => _33[colorIndex], 'optionalAccess', _34 => _34.icon]) ? { icon: _optionalChain([data, 'access', _35 => _35[colorIndex], 'optionalAccess', _36 => _36.icon]) } : {},
1133
+ color: _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'access', _42 => _42[colorIndex], 'optionalAccess', _43 => _43.styles, 'optionalAccess', _44 => _44.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[colorIndex])), () => ( "")),
1134
+ ..._optionalChain([data, 'access', _45 => _45[colorIndex], 'optionalAccess', _46 => _46.icon]) ? { icon: _optionalChain([data, 'access', _47 => _47[colorIndex], 'optionalAccess', _48 => _48.icon]) } : {},
733
1135
  name: context.key,
734
1136
  percent: context.percentage,
735
1137
  value: context.y
@@ -741,7 +1143,7 @@ var transformDonutChartTooltipData = ({
741
1143
 
742
1144
  _accessibility2.default.call(void 0, _highcharts2.default);
743
1145
  var StyledBox2 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
744
- ${_chunkWEKDYQ4Tjs.donutChartStyles}
1146
+ ${_chunk46L4YBLCjs.donutChartStyles}
745
1147
  `;
746
1148
  var DonutChart = _react.memo.call(void 0, function DonutChart2(props) {
747
1149
  const { data } = props;
@@ -778,15 +1180,15 @@ var DonutChartWithData = _react.memo.call(void 0,
778
1180
  chart: {
779
1181
  events: {
780
1182
  render: function() {
781
- const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _37 => _37.series, 'access', _38 => _38[0], 'optionalAccess', _39 => _39.data]), () => ( []));
782
- const tooltipId = _chunkWEKDYQ4Tjs.generateChartTooltipPortalId.call(void 0, this.index);
1183
+ const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _49 => _49.series, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.data]), () => ( []));
1184
+ const tooltipId = _chunk46L4YBLCjs.generateChartTooltipPortalId.call(void 0, this.index);
783
1185
  allSlices.forEach((slice) => {
784
- const sliceElement = _optionalChain([slice, 'optionalAccess', _40 => _40.graphic, 'optionalAccess', _41 => _41.element]);
785
- _optionalChain([sliceElement, 'optionalAccess', _42 => _42.setAttribute, 'call', _43 => _43("aria-describedby", tooltipId)]);
786
- _optionalChain([sliceElement, 'optionalAccess', _44 => _44.addEventListener, 'call', _45 => _45("focus", () => {
1186
+ const sliceElement = _optionalChain([slice, 'optionalAccess', _52 => _52.graphic, 'optionalAccess', _53 => _53.element]);
1187
+ _optionalChain([sliceElement, 'optionalAccess', _54 => _54.setAttribute, 'call', _55 => _55("aria-describedby", tooltipId)]);
1188
+ _optionalChain([sliceElement, 'optionalAccess', _56 => _56.addEventListener, 'call', _57 => _57("focus", () => {
787
1189
  slice.series.chart.tooltip.refresh(slice);
788
1190
  })]);
789
- _optionalChain([sliceElement, 'optionalAccess', _46 => _46.addEventListener, 'call', _47 => _47("blur", () => {
1191
+ _optionalChain([sliceElement, 'optionalAccess', _58 => _58.addEventListener, 'call', _59 => _59("blur", () => {
790
1192
  slice.series.chart.tooltip.hide(0);
791
1193
  })]);
792
1194
  });
@@ -816,10 +1218,10 @@ var DonutChartWithData = _react.memo.call(void 0,
816
1218
  });
817
1219
  }, [data]);
818
1220
  const colors = data.map(
819
- (series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _48 => _48.styles, 'optionalAccess', _49 => _49.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1221
+ (series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _60 => _60.styles, 'optionalAccess', _61 => _61.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
820
1222
  );
821
1223
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
822
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.GlobalChartStyleOverrides, {}),
1224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.GlobalChartStyleOverrides, {}),
823
1225
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
824
1226
  StyledBox2,
825
1227
  {
@@ -836,7 +1238,7 @@ var DonutChartWithData = _react.memo.call(void 0,
836
1238
  }
837
1239
  ),
838
1240
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
839
- _chunkWEKDYQ4Tjs.ChartTooltipPortal,
1241
+ _chunk46L4YBLCjs.ChartTooltipPortal,
840
1242
  {
841
1243
  chart,
842
1244
  renderContent: (context) => {
@@ -892,11 +1294,11 @@ var DonutChartLegendTable = _react.memo.call(void 0,
892
1294
  );
893
1295
  const rows = data.map((dataPoint, index) => {
894
1296
  const { name, icon, styles, value } = dataPoint;
895
- const color = _optionalChain([styles, 'optionalAccess', _50 => _50.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index];
1297
+ const color = _optionalChain([styles, 'optionalAccess', _62 => _62.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index];
896
1298
  return {
897
1299
  cells: [
898
1300
  {
899
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon, children: name }) })
1301
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon, children: name }) })
900
1302
  },
901
1303
  {
902
1304
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -949,7 +1351,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
949
1351
  }
950
1352
  ];
951
1353
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
952
- _chunkWEKDYQ4Tjs.ChartTable,
1354
+ _chunk46L4YBLCjs.ChartTable,
953
1355
  {
954
1356
  rows: [...rows, ...totalRow]
955
1357
  }
@@ -974,13 +1376,13 @@ var getLineChartLegendLabels = ({
974
1376
  data
975
1377
  }) => {
976
1378
  return data.map((series, index) => ({
977
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
978
- color: _optionalChain([series, 'access', _51 => _51.styles, 'optionalAccess', _52 => _52.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1379
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1380
+ color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
979
1381
  }));
980
1382
  };
981
1383
  var LineChartLegend = _react.memo.call(void 0,
982
1384
  function LineChartLegend2({ data }) {
983
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
1385
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
984
1386
  }
985
1387
  );
986
1388
 
@@ -1011,7 +1413,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1011
1413
  return {
1012
1414
  cells: [
1013
1415
  {
1014
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1416
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1015
1417
  },
1016
1418
  {
1017
1419
  content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1029,11 +1431,11 @@ var LineChartTooltip = _react.memo.call(void 0,
1029
1431
  ]
1030
1432
  };
1031
1433
  });
1032
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltip, { children: [
1434
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk46L4YBLCjs.ChartTooltip, { children: [
1033
1435
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1035
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTable, { rows }),
1036
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1436
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTable, { rows }),
1438
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1037
1439
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1038
1440
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1039
1441
  ] }) : tooltipClickLabel }) : null
@@ -1047,7 +1449,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1047
1449
  _accessibility2.default.call(void 0, _highcharts2.default);
1048
1450
  _annotations2.default.call(void 0, _highcharts2.default);
1049
1451
  var StyledBox3 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
1050
- ${_chunkWEKDYQ4Tjs.lineChartStyles}
1452
+ ${_chunk46L4YBLCjs.lineChartStyles}
1051
1453
  `;
1052
1454
  var LineChart = _react.memo.call(void 0, function LineChart2(props) {
1053
1455
  const { data } = props;
@@ -1090,9 +1492,9 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1090
1492
  const { colors, patterns } = data.reduce(
1091
1493
  (acc, item, index) => {
1092
1494
  acc.colors.push(
1093
- _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _53 => _53.styles, 'optionalAccess', _54 => _54.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1495
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _65 => _65.styles, 'optionalAccess', _66 => _66.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1094
1496
  );
1095
- acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _55 => _55.styles, 'optionalAccess', _56 => _56.pattern]), () => ( "solid")));
1497
+ acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _67 => _67.styles, 'optionalAccess', _68 => _68.pattern]), () => ( "solid")));
1096
1498
  return acc;
1097
1499
  },
1098
1500
  {
@@ -1101,7 +1503,7 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1101
1503
  }
1102
1504
  );
1103
1505
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1104
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.GlobalChartStyleOverrides, {}),
1506
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.GlobalChartStyleOverrides, {}),
1105
1507
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1106
1508
  StyledBox3,
1107
1509
  {
@@ -1118,25 +1520,25 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1118
1520
  callback
1119
1521
  }
1120
1522
  ),
1121
- chart && _optionalChain([chart, 'access', _57 => _57.annotations, 'optionalAccess', _58 => _58.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1523
+ chart && _optionalChain([chart, 'access', _69 => _69.annotations, 'optionalAccess', _70 => _70.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1122
1524
  ChartXAnnotationMarkerPortal,
1123
1525
  {
1124
1526
  xAnnotations,
1125
- annotationContext: _optionalChain([chart, 'access', _59 => _59.annotations, 'optionalAccess', _60 => _60[0]]),
1527
+ annotationContext: _optionalChain([chart, 'access', _71 => _71.annotations, 'optionalAccess', _72 => _72[0]]),
1126
1528
  chartContainer: chart.container
1127
1529
  }
1128
1530
  ) : null,
1129
1531
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1130
- _chunkWEKDYQ4Tjs.ChartTooltipPortal,
1532
+ _chunk46L4YBLCjs.ChartTooltipPortal,
1131
1533
  {
1132
1534
  chart,
1133
1535
  renderContent: (context) => {
1134
- const tooltipData = _chunkWEKDYQ4Tjs.transformTimeSeriesTooltipData.call(void 0, {
1536
+ const tooltipData = _chunk46L4YBLCjs.transformTimeSeriesTooltipData.call(void 0, {
1135
1537
  context,
1136
1538
  data
1137
1539
  });
1138
1540
  const x = context.x;
1139
- const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _61 => _61[x], 'optionalAccess', _62 => _62.details]);
1541
+ const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _73 => _73[x], 'optionalAccess', _74 => _74.details]);
1140
1542
  return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1141
1543
  LineChartTooltip,
1142
1544
  {
@@ -1180,13 +1582,13 @@ var getVerticalBarChartLegendLabels = ({
1180
1582
  data
1181
1583
  }) => {
1182
1584
  return data.map((series, index) => ({
1183
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1184
- color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1585
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1586
+ color: _optionalChain([series, 'access', _75 => _75.styles, 'optionalAccess', _76 => _76.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1185
1587
  }));
1186
1588
  };
1187
1589
  var VerticalBarChartLegend = _react.memo.call(void 0,
1188
1590
  function VerticalbarChartLegend({ data }) {
1189
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1591
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1190
1592
  }
1191
1593
  );
1192
1594
 
@@ -1217,7 +1619,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1217
1619
  return {
1218
1620
  cells: [
1219
1621
  {
1220
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1622
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1221
1623
  },
1222
1624
  {
1223
1625
  content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1235,11 +1637,11 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1235
1637
  ]
1236
1638
  };
1237
1639
  });
1238
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltip, { children: [
1640
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk46L4YBLCjs.ChartTooltip, { children: [
1239
1641
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1240
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1241
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipTable, { rows }),
1242
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1643
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipTable, { rows }),
1644
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1243
1645
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1244
1646
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1245
1647
  ] }) : tooltipClickLabel }) : null
@@ -1253,7 +1655,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1253
1655
  // src/components/VerticalBarChart/styles.ts
1254
1656
 
1255
1657
  var verticalBarChartStyles = _styledcomponents.css`
1256
- ${_chunkWEKDYQ4Tjs.timeSeriesChartStyles}
1658
+ ${_chunk46L4YBLCjs.timeSeriesChartStyles}
1257
1659
 
1258
1660
  /*
1259
1661
  When the chart container is hovered, reduce the opacity of all columns.
@@ -1314,7 +1716,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1314
1716
  xAnnotations,
1315
1717
  xAxisLabelFormatter: xAxisLabelFormatter2
1316
1718
  }) {
1317
- const shouldUseTimeFormatter = _chunkWEKDYQ4Tjs.isHourlyTimeData.call(void 0, data) || _chunkWEKDYQ4Tjs.isCategoricalHourData.call(void 0, data);
1719
+ const shouldUseTimeFormatter = isHourlyTimeData(data) || isCategoricalHourData(data);
1318
1720
  const autoTimeXAxisLabelFormatter = ({
1319
1721
  value,
1320
1722
  timeFormat: timeFormat2
@@ -1370,9 +1772,9 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1370
1772
  const { colors } = data.reduce(
1371
1773
  (acc, item, index) => {
1372
1774
  acc.colors.push(
1373
- _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _65 => _65.styles, 'optionalAccess', _66 => _66.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1775
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _77 => _77.styles, 'optionalAccess', _78 => _78.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1374
1776
  );
1375
- acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _67 => _67.styles, 'optionalAccess', _68 => _68.pattern]), () => ( "solid")));
1777
+ acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _79 => _79.styles, 'optionalAccess', _80 => _80.pattern]), () => ( "solid")));
1376
1778
  return acc;
1377
1779
  },
1378
1780
  {
@@ -1381,7 +1783,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1381
1783
  }
1382
1784
  );
1383
1785
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEKDYQ4Tjs.GlobalChartStyleOverrides, {}),
1786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk46L4YBLCjs.GlobalChartStyleOverrides, {}),
1385
1787
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1386
1788
  StyledBox4,
1387
1789
  {
@@ -1397,25 +1799,25 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1397
1799
  callback
1398
1800
  }
1399
1801
  ),
1400
- chart && _optionalChain([chart, 'access', _69 => _69.annotations, 'optionalAccess', _70 => _70.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1802
+ chart && _optionalChain([chart, 'access', _81 => _81.annotations, 'optionalAccess', _82 => _82.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1401
1803
  ChartXAnnotationMarkerPortal,
1402
1804
  {
1403
1805
  xAnnotations,
1404
- annotationContext: _optionalChain([chart, 'access', _71 => _71.annotations, 'optionalAccess', _72 => _72[0]]),
1806
+ annotationContext: _optionalChain([chart, 'access', _83 => _83.annotations, 'optionalAccess', _84 => _84[0]]),
1405
1807
  chartContainer: chart.container
1406
1808
  }
1407
1809
  ) : null,
1408
1810
  chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1409
- _chunkWEKDYQ4Tjs.ChartTooltipPortal,
1811
+ _chunk46L4YBLCjs.ChartTooltipPortal,
1410
1812
  {
1411
1813
  chart,
1412
1814
  renderContent: (context) => {
1413
- const tooltipData = _chunkWEKDYQ4Tjs.transformTimeSeriesTooltipData.call(void 0, {
1815
+ const tooltipData = _chunk46L4YBLCjs.transformTimeSeriesTooltipData.call(void 0, {
1414
1816
  context,
1415
1817
  data
1416
1818
  });
1417
1819
  const x = context.x;
1418
- const xAnnotationDetails = typeof x === "number" ? _optionalChain([xAnnotations, 'optionalAccess', _73 => _73[x], 'optionalAccess', _74 => _74.details]) : void 0;
1820
+ const xAnnotationDetails = typeof x === "number" ? _optionalChain([xAnnotations, 'optionalAccess', _85 => _85[x], 'optionalAccess', _86 => _86.details]) : void 0;
1419
1821
  return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1420
1822
  VerticalBarChartTooltip,
1421
1823
  {
@@ -1491,5 +1893,5 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1491
1893
 
1492
1894
 
1493
1895
 
1494
- exports.AreaChart = AreaChart; exports.ChartLegend = _chunkWEKDYQ4Tjs.ChartLegend; exports.ChartLegendLabel = _chunkWEKDYQ4Tjs.ChartLegendLabel; exports.ChartTable = _chunkWEKDYQ4Tjs.ChartTable; exports.ChartTooltip = _chunkWEKDYQ4Tjs.ChartTooltip; exports.ChartTooltipFooter = _chunkWEKDYQ4Tjs.ChartTooltipFooter; exports.ChartTooltipHeader = _chunkWEKDYQ4Tjs.ChartTooltipHeader; exports.ChartTooltipPortal = _chunkWEKDYQ4Tjs.ChartTooltipPortal; exports.ChartTooltipTable = _chunkWEKDYQ4Tjs.ChartTooltipTable; exports.ChartTooltipTitle = _chunkWEKDYQ4Tjs.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunkWEKDYQ4Tjs.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunkCYQXUAJCjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunkCYQXUAJCjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunkCYQXUAJCjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = _chunkWEKDYQ4Tjs.DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunkWEKDYQ4Tjs.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = _chunkWEKDYQ4Tjs.NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunkCYQXUAJCjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunkCYQXUAJCjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunkCYQXUAJCjs.areaChartOptions; exports.areaChartStyles = _chunkWEKDYQ4Tjs.areaChartStyles; exports.baseChartOptions = _chunkCYQXUAJCjs.baseChartOptions; exports.baseChartStyles = _chunkWEKDYQ4Tjs.baseChartStyles; exports.columnChartOptions = _chunkCYQXUAJCjs.columnChartOptions; exports.donutChartOptions = _chunkCYQXUAJCjs.donutChartOptions; exports.donutChartStyles = _chunkWEKDYQ4Tjs.donutChartStyles; exports.generateChartTooltipPortalId = _chunkWEKDYQ4Tjs.generateChartTooltipPortalId; exports.getDatavizColor = _chunkWEKDYQ4Tjs.getDatavizColor; exports.getDatavizColorWithAlpha = _chunkWEKDYQ4Tjs.getDatavizColorWithAlpha; exports.getDatavizOpacity = _chunkWEKDYQ4Tjs.getDatavizOpacity; exports.getStorybookCategoricalData = _chunkWEKDYQ4Tjs.getStorybookCategoricalData; exports.getStorybookSparseTimelineData = _chunkWEKDYQ4Tjs.getStorybookSparseTimelineData; exports.isCategoricalHourData = _chunkWEKDYQ4Tjs.isCategoricalHourData; exports.isHourlyTimeData = _chunkWEKDYQ4Tjs.isHourlyTimeData; exports.lineChartOptions = _chunkCYQXUAJCjs.lineChartOptions; exports.lineChartStyles = _chunkWEKDYQ4Tjs.lineChartStyles; exports.timeSeriesChartOptions = _chunkCYQXUAJCjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunkWEKDYQ4Tjs.timeSeriesChartStyles; exports.transformDataToSeries = _chunkWEKDYQ4Tjs.transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunkWEKDYQ4Tjs.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = _chunkWEKDYQ4Tjs.xAxisLabelFormatter; exports.yAxisLabelFormatter = _chunkWEKDYQ4Tjs.yAxisLabelFormatter;
1896
+ exports.AreaChart = AreaChart; exports.ChartLegend = _chunk46L4YBLCjs.ChartLegend; exports.ChartLegendLabel = _chunk46L4YBLCjs.ChartLegendLabel; exports.ChartTable = _chunk46L4YBLCjs.ChartTable; exports.ChartTooltip = _chunk46L4YBLCjs.ChartTooltip; exports.ChartTooltipFooter = _chunk46L4YBLCjs.ChartTooltipFooter; exports.ChartTooltipHeader = _chunk46L4YBLCjs.ChartTooltipHeader; exports.ChartTooltipPortal = _chunk46L4YBLCjs.ChartTooltipPortal; exports.ChartTooltipTable = _chunk46L4YBLCjs.ChartTooltipTable; exports.ChartTooltipTitle = _chunk46L4YBLCjs.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunk46L4YBLCjs.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunkCYQXUAJCjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunkCYQXUAJCjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunkCYQXUAJCjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunk46L4YBLCjs.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunkCYQXUAJCjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunkCYQXUAJCjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunkCYQXUAJCjs.areaChartOptions; exports.areaChartStyles = _chunk46L4YBLCjs.areaChartStyles; exports.baseChartOptions = _chunkCYQXUAJCjs.baseChartOptions; exports.baseChartStyles = _chunk46L4YBLCjs.baseChartStyles; exports.columnChartOptions = _chunkCYQXUAJCjs.columnChartOptions; exports.donutChartOptions = _chunkCYQXUAJCjs.donutChartOptions; exports.donutChartStyles = _chunk46L4YBLCjs.donutChartStyles; exports.generateChartTooltipPortalId = _chunk46L4YBLCjs.generateChartTooltipPortalId; exports.getDatavizColor = getDatavizColor; exports.getDatavizColorWithAlpha = getDatavizColorWithAlpha; exports.getDatavizOpacity = getDatavizOpacity; exports.getStorybookCategoricalData = getStorybookCategoricalData; exports.getStorybookSparseTimelineData = getStorybookSparseTimelineData; exports.isCategoricalHourData = isCategoricalHourData; exports.isHourlyTimeData = isHourlyTimeData; exports.lineChartOptions = _chunkCYQXUAJCjs.lineChartOptions; exports.lineChartStyles = _chunk46L4YBLCjs.lineChartStyles; exports.timeSeriesChartOptions = _chunkCYQXUAJCjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunk46L4YBLCjs.timeSeriesChartStyles; exports.transformDataToSeries = transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunk46L4YBLCjs.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = xAxisLabelFormatter; exports.yAxisLabelFormatter = yAxisLabelFormatter;
1495
1897
  //# sourceMappingURL=index.js.map