@sproutsocial/seeds-react-data-viz 0.21.3 → 0.22.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.
- package/dist/bar/index.d.mts +5 -9
- package/dist/bar/index.d.ts +5 -9
- package/dist/bar/index.js +12 -12
- package/dist/bar/index.js.map +1 -1
- package/dist/bubble/index.d.mts +102 -0
- package/dist/bubble/index.d.ts +102 -0
- package/dist/bubble/index.js +235 -0
- package/dist/bubble/index.js.map +1 -0
- package/dist/bubble.css +104 -0
- package/dist/{chartBase-Cn_5CUJi.d.mts → chartBase-BClSc5EN.d.mts} +4 -0
- package/dist/{chartBase-C-l7yYGx.d.ts → chartBase-CycEw2vy.d.ts} +4 -0
- package/dist/chartOptions-DHzoGRdG.d.mts +24 -0
- package/dist/chartOptions-DHzoGRdG.d.ts +24 -0
- package/dist/charts.css +105 -0
- package/dist/{chunk-46L4YBLC.js → chunk-2H2Z7PKZ.js} +1 -14
- package/dist/chunk-2H2Z7PKZ.js.map +1 -0
- package/dist/{chunk-CYQXUAJC.js → chunk-33Y5FZTT.js} +10 -2
- package/dist/chunk-33Y5FZTT.js.map +1 -0
- package/dist/{chunk-27M4FDNK.js → chunk-GWP3PWIG.js} +84 -27
- package/dist/chunk-GWP3PWIG.js.map +1 -0
- package/dist/{chunk-XYE6O77Z.js → chunk-KMJD7BW3.js} +3 -3
- package/dist/{chunk-XYE6O77Z.js.map → chunk-KMJD7BW3.js.map} +1 -1
- package/dist/donut/index.d.mts +4 -8
- package/dist/donut/index.d.ts +4 -8
- package/dist/donut/index.js +7 -7
- package/dist/esm/bar/index.js +8 -8
- package/dist/esm/bubble/index.js +235 -0
- package/dist/esm/bubble/index.js.map +1 -0
- package/dist/esm/{chunk-QSSYSKRP.js → chunk-JGM4M7QV.js} +70 -13
- package/dist/esm/chunk-JGM4M7QV.js.map +1 -0
- package/dist/esm/{chunk-KMFRRUTY.js → chunk-KQKAVIYW.js} +2 -2
- package/dist/esm/{chunk-XEKQTAUH.js → chunk-NZX3WPXT.js} +9 -22
- package/dist/esm/chunk-NZX3WPXT.js.map +1 -0
- package/dist/esm/{chunk-XMYGML25.js → chunk-XRZJACCB.js} +10 -2
- package/dist/esm/{chunk-XMYGML25.js.map → chunk-XRZJACCB.js.map} +1 -1
- package/dist/esm/donut/index.js +3 -3
- package/dist/esm/index.js +10 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/line-area/index.js +8 -8
- package/dist/esm/sparkline/index.js +2 -2
- package/dist/index.d.mts +3 -19
- package/dist/index.d.ts +3 -19
- package/dist/index.js +66 -58
- package/dist/index.js.map +1 -1
- package/dist/{interactions-DoWoL7bu.d.mts → interactions-pEXA1XxF.d.mts} +16 -1
- package/dist/{interactions-DoWoL7bu.d.ts → interactions-pEXA1XxF.d.ts} +16 -1
- package/dist/line-area/index.d.mts +4 -8
- package/dist/line-area/index.d.ts +4 -8
- package/dist/line-area/index.js +12 -12
- package/dist/line-area/index.js.map +1 -1
- package/dist/sparkline/index.d.mts +1 -1
- package/dist/sparkline/index.d.ts +1 -1
- package/dist/sparkline/index.js +4 -4
- package/package.json +16 -10
- package/dist/chunk-27M4FDNK.js.map +0 -1
- package/dist/chunk-46L4YBLC.js.map +0 -1
- package/dist/chunk-CYQXUAJC.js.map +0 -1
- package/dist/esm/chunk-QSSYSKRP.js.map +0 -1
- package/dist/esm/chunk-XEKQTAUH.js.map +0 -1
- /package/dist/esm/{chunk-KMFRRUTY.js.map → chunk-KQKAVIYW.js.map} +0 -0
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
buildAnnotationConfig,
|
|
3
3
|
defaultValueAxisLabelFormatter,
|
|
4
4
|
makeValueAxisLabelFormatter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KQKAVIYW.js";
|
|
6
|
+
import {
|
|
7
|
+
buildDimensionalAxis,
|
|
8
|
+
resolveTooltipTimezone
|
|
9
|
+
} from "../chunk-NAKJY5PA.js";
|
|
6
10
|
import {
|
|
7
11
|
getChartContainerProps
|
|
8
12
|
} from "../chunk-P3MVYSHX.js";
|
|
9
13
|
import {
|
|
10
14
|
TIME_SERIES_CHART_HEIGHT
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import {
|
|
13
|
-
buildDimensionalAxis,
|
|
14
|
-
resolveTooltipTimezone
|
|
15
|
-
} from "../chunk-NAKJY5PA.js";
|
|
15
|
+
} from "../chunk-XRZJACCB.js";
|
|
16
16
|
import {
|
|
17
17
|
ChartRenderer,
|
|
18
18
|
buildBaseChartOptions,
|
|
19
19
|
useSeedsChartSetup
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-JGM4M7QV.js";
|
|
21
|
+
import "../chunk-NZX3WPXT.js";
|
|
22
22
|
|
|
23
23
|
// src/charts/line-area/LineAreaChart.tsx
|
|
24
24
|
import { memo, useMemo } from "react";
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ChartRenderer,
|
|
7
7
|
buildBaseChartOptions
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-JGM4M7QV.js";
|
|
9
|
+
import "../chunk-NZX3WPXT.js";
|
|
10
10
|
|
|
11
11
|
// src/charts/sparkline/SparklineChart.tsx
|
|
12
12
|
import { memo } from "react";
|
package/dist/index.d.mts
CHANGED
|
@@ -5,10 +5,11 @@ export { m as ExtendedAxisLabelsFormatterContextObject, n as TypeChartXAnnotatio
|
|
|
5
5
|
import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
|
|
6
6
|
import { TypeBoxProps } from '@sproutsocial/seeds-react-box';
|
|
7
7
|
import { Table } from '@sproutsocial/seeds-react-table';
|
|
8
|
-
import { Chart, TooltipFormatterContextObject,
|
|
8
|
+
import { Chart, TooltipFormatterContextObject, SeriesSplineOptions, SeriesAreasplineOptions, SeriesColumnOptions, AxisTickPositionsArray, AxisLabelsFormatterContextObject } from 'highcharts';
|
|
9
9
|
import { TypeIconName } from '@sproutsocial/seeds-react-icon';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
11
11
|
import * as styled_components from 'styled-components';
|
|
12
|
+
export { B as BUBBLE_CHART_DEFAULT_MAX_SIZE, a as BUBBLE_CHART_DEFAULT_PADDING, b as BUBBLE_CHART_HEIGHT, D as DONUT_CHART_HALO_SIZE, c as DONUT_CHART_HEIGHT, d as DONUT_CHART_WIDTH, T as TIME_SERIES_CHART_HEIGHT, V as VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT, e as areaChartOptions, f as baseChartOptions, g as columnChartOptions, h as defaultBubbleChartWidth, i as donutChartOptions, l as lineChartOptions, t as timeSeriesChartOptions } from './chartOptions-DHzoGRdG.mjs';
|
|
12
13
|
|
|
13
14
|
type TypeAreaChartProps = Readonly<{
|
|
14
15
|
data: ReadonlyArray<Readonly<{
|
|
@@ -391,23 +392,6 @@ declare const VerticalBarChart: react.NamedExoticComponent<Readonly<{
|
|
|
391
392
|
}) => string;
|
|
392
393
|
}>>;
|
|
393
394
|
|
|
394
|
-
declare const baseChartOptions: Options;
|
|
395
|
-
declare const TIME_SERIES_CHART_HEIGHT = 275;
|
|
396
|
-
declare const timeSeriesChartOptions: Options;
|
|
397
|
-
declare const lineChartOptions: Options;
|
|
398
|
-
declare const areaChartOptions: Options;
|
|
399
|
-
declare const columnChartOptions: Options;
|
|
400
|
-
/**
|
|
401
|
-
* The default series limit for VerticalBarChart.
|
|
402
|
-
* This limit is recommended to maintain chart readability and accessibility.
|
|
403
|
-
* @see {VerticalBarChart}
|
|
404
|
-
*/
|
|
405
|
-
declare const VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = 10;
|
|
406
|
-
declare const DONUT_CHART_HALO_SIZE = 10;
|
|
407
|
-
declare const DONUT_CHART_HEIGHT: number;
|
|
408
|
-
declare const DONUT_CHART_WIDTH: number;
|
|
409
|
-
declare const donutChartOptions: Options;
|
|
410
|
-
|
|
411
395
|
type TypeTimeSeriesOptions = SeriesSplineOptions | SeriesAreasplineOptions | SeriesColumnOptions;
|
|
412
396
|
declare const transformDataToSeries: ({ data, }: {
|
|
413
397
|
data: TypeAreaChartProps["data"] | TypeLineChartProps["data"] | TypeVerticalBarChartProps["data"];
|
|
@@ -536,4 +520,4 @@ declare const donutChartStyles: styled_components.FlattenInterpolation<styled_co
|
|
|
536
520
|
$hasOnClick: TypeChartStyleHasOnClick;
|
|
537
521
|
}>, any>>;
|
|
538
522
|
|
|
539
|
-
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ChartXAnnotationDetails, ChartXAnnotationMarker, ColorBox,
|
|
523
|
+
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ChartXAnnotationDetails, ChartXAnnotationMarker, ColorBox, DatavizColorBox, DonutChart, DonutChartLegendTable, ExtendedTimeTicksInfoObject, GlobalChartStyleOverrides, LineChart, NetworkColorBox, type TypeAreaChartProps, TypeChartDataPoint, TypeChartDataStyles, type TypeChartLegendLabelProps, type TypeChartLegendProps, TypeChartNumberFormat, TypeChartStyleColor, TypeChartStyleHasOnClick, TypeChartStylePattern, type TypeChartTableProps, TypeChartTimeFormat, TypeChartTooltipDateFormatter, TypeChartTooltipProps, type TypeChartTooltipTableProps, TypeChartXAnnotations, TypeChartYAxisLabelFormatter, type TypeColorBoxProps, type TypeDatavizColorBox, type TypeDatavizColorBoxProps, type TypeDonutChartDataItem, type TypeDonutChartLegendTableProps, type TypeDonutChartProps, type TypeDonutChartTooltipProps, type TypeLegendLabel, type TypeLineChartProps, TypeSeriesType, TypeVerticalBarChartProps, VerticalBarChart, areaChartStyles, baseChartStyles, donutChartStyles, generateChartTooltipPortalId, getDatavizColor, getDatavizColorWithAlpha, getDatavizOpacity, getStorybookCategoricalData, getStorybookSparseTimelineData, isCategoricalHourData, isHourlyTimeData, lineChartStyles, timeSeriesChartStyles, transformDataToSeries, transformTimeSeriesTooltipData, xAxisLabelFormatter, yAxisLabelFormatter };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ export { m as ExtendedAxisLabelsFormatterContextObject, n as TypeChartXAnnotatio
|
|
|
5
5
|
import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
|
|
6
6
|
import { TypeBoxProps } from '@sproutsocial/seeds-react-box';
|
|
7
7
|
import { Table } from '@sproutsocial/seeds-react-table';
|
|
8
|
-
import { Chart, TooltipFormatterContextObject,
|
|
8
|
+
import { Chart, TooltipFormatterContextObject, SeriesSplineOptions, SeriesAreasplineOptions, SeriesColumnOptions, AxisTickPositionsArray, AxisLabelsFormatterContextObject } from 'highcharts';
|
|
9
9
|
import { TypeIconName } from '@sproutsocial/seeds-react-icon';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
11
11
|
import * as styled_components from 'styled-components';
|
|
12
|
+
export { B as BUBBLE_CHART_DEFAULT_MAX_SIZE, a as BUBBLE_CHART_DEFAULT_PADDING, b as BUBBLE_CHART_HEIGHT, D as DONUT_CHART_HALO_SIZE, c as DONUT_CHART_HEIGHT, d as DONUT_CHART_WIDTH, T as TIME_SERIES_CHART_HEIGHT, V as VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT, e as areaChartOptions, f as baseChartOptions, g as columnChartOptions, h as defaultBubbleChartWidth, i as donutChartOptions, l as lineChartOptions, t as timeSeriesChartOptions } from './chartOptions-DHzoGRdG.js';
|
|
12
13
|
|
|
13
14
|
type TypeAreaChartProps = Readonly<{
|
|
14
15
|
data: ReadonlyArray<Readonly<{
|
|
@@ -391,23 +392,6 @@ declare const VerticalBarChart: react.NamedExoticComponent<Readonly<{
|
|
|
391
392
|
}) => string;
|
|
392
393
|
}>>;
|
|
393
394
|
|
|
394
|
-
declare const baseChartOptions: Options;
|
|
395
|
-
declare const TIME_SERIES_CHART_HEIGHT = 275;
|
|
396
|
-
declare const timeSeriesChartOptions: Options;
|
|
397
|
-
declare const lineChartOptions: Options;
|
|
398
|
-
declare const areaChartOptions: Options;
|
|
399
|
-
declare const columnChartOptions: Options;
|
|
400
|
-
/**
|
|
401
|
-
* The default series limit for VerticalBarChart.
|
|
402
|
-
* This limit is recommended to maintain chart readability and accessibility.
|
|
403
|
-
* @see {VerticalBarChart}
|
|
404
|
-
*/
|
|
405
|
-
declare const VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = 10;
|
|
406
|
-
declare const DONUT_CHART_HALO_SIZE = 10;
|
|
407
|
-
declare const DONUT_CHART_HEIGHT: number;
|
|
408
|
-
declare const DONUT_CHART_WIDTH: number;
|
|
409
|
-
declare const donutChartOptions: Options;
|
|
410
|
-
|
|
411
395
|
type TypeTimeSeriesOptions = SeriesSplineOptions | SeriesAreasplineOptions | SeriesColumnOptions;
|
|
412
396
|
declare const transformDataToSeries: ({ data, }: {
|
|
413
397
|
data: TypeAreaChartProps["data"] | TypeLineChartProps["data"] | TypeVerticalBarChartProps["data"];
|
|
@@ -536,4 +520,4 @@ declare const donutChartStyles: styled_components.FlattenInterpolation<styled_co
|
|
|
536
520
|
$hasOnClick: TypeChartStyleHasOnClick;
|
|
537
521
|
}>, any>>;
|
|
538
522
|
|
|
539
|
-
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ChartXAnnotationDetails, ChartXAnnotationMarker, ColorBox,
|
|
523
|
+
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ChartXAnnotationDetails, ChartXAnnotationMarker, ColorBox, DatavizColorBox, DonutChart, DonutChartLegendTable, ExtendedTimeTicksInfoObject, GlobalChartStyleOverrides, LineChart, NetworkColorBox, type TypeAreaChartProps, TypeChartDataPoint, TypeChartDataStyles, type TypeChartLegendLabelProps, type TypeChartLegendProps, TypeChartNumberFormat, TypeChartStyleColor, TypeChartStyleHasOnClick, TypeChartStylePattern, type TypeChartTableProps, TypeChartTimeFormat, TypeChartTooltipDateFormatter, TypeChartTooltipProps, type TypeChartTooltipTableProps, TypeChartXAnnotations, TypeChartYAxisLabelFormatter, type TypeColorBoxProps, type TypeDatavizColorBox, type TypeDatavizColorBoxProps, type TypeDonutChartDataItem, type TypeDonutChartLegendTableProps, type TypeDonutChartProps, type TypeDonutChartTooltipProps, type TypeLegendLabel, type TypeLineChartProps, TypeSeriesType, TypeVerticalBarChartProps, VerticalBarChart, areaChartStyles, baseChartStyles, donutChartStyles, generateChartTooltipPortalId, getDatavizColor, getDatavizColorWithAlpha, getDatavizOpacity, getStorybookCategoricalData, getStorybookSparseTimelineData, isCategoricalHourData, isHourlyTimeData, lineChartStyles, timeSeriesChartStyles, transformDataToSeries, transformTimeSeriesTooltipData, xAxisLabelFormatter, yAxisLabelFormatter };
|
package/dist/index.js
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var _chunkCYQXUAJCjs = require('./chunk-CYQXUAJC.js');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
17
|
+
var _chunk33Y5FZTTjs = require('./chunk-33Y5FZTT.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -31,7 +31,11 @@ var _chunkCYQXUAJCjs = require('./chunk-CYQXUAJC.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var _chunk2H2Z7PKZjs = require('./chunk-2H2Z7PKZ.js');
|
|
35
39
|
|
|
36
40
|
// src/components/AreaChart/AreaChart.tsx
|
|
37
41
|
var _react = require('react');
|
|
@@ -49,7 +53,7 @@ var _seedsreacttheme = require('@sproutsocial/seeds-react-theme');
|
|
|
49
53
|
// src/components/ColorBox/DatavizColorBox.tsx
|
|
50
54
|
|
|
51
55
|
|
|
52
|
-
var DatavizColorBox = _styledcomponents2.default.call(void 0,
|
|
56
|
+
var DatavizColorBox = _styledcomponents2.default.call(void 0, _chunk2H2Z7PKZjs.ColorBox).attrs(
|
|
53
57
|
({ colorIndex }) => ({
|
|
54
58
|
style: {
|
|
55
59
|
background: getDatavizColor(colorIndex),
|
|
@@ -79,7 +83,7 @@ var NetworkColorBox = ({
|
|
|
79
83
|
networkColor,
|
|
80
84
|
...props
|
|
81
85
|
}) => {
|
|
82
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ColorBox, { ...props, bg: _seedsnetworkcolor2.default[networkColor] });
|
|
83
87
|
};
|
|
84
88
|
|
|
85
89
|
// src/components/AreaChart/components/AreaChartLegend.tsx
|
|
@@ -88,13 +92,13 @@ var getAreaChartLegendLabels = ({
|
|
|
88
92
|
data
|
|
89
93
|
}) => {
|
|
90
94
|
return data.map((series, index) => ({
|
|
91
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
95
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
92
96
|
color: _optionalChain([series, 'access', _ => _.styles, 'optionalAccess', _2 => _2.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
93
97
|
}));
|
|
94
98
|
};
|
|
95
99
|
var AreaChartLegend = _react.memo.call(void 0,
|
|
96
100
|
function AreaChartLegend2({ data }) {
|
|
97
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
101
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
|
|
98
102
|
}
|
|
99
103
|
);
|
|
100
104
|
|
|
@@ -127,7 +131,7 @@ var AreaChartTooltip = _react.memo.call(void 0,
|
|
|
127
131
|
return {
|
|
128
132
|
cells: [
|
|
129
133
|
{
|
|
130
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
134
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
131
135
|
},
|
|
132
136
|
{
|
|
133
137
|
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,
|
|
@@ -175,16 +179,16 @@ var AreaChartTooltip = _react.memo.call(void 0,
|
|
|
175
179
|
isAppendedRow: true
|
|
176
180
|
}
|
|
177
181
|
] : [];
|
|
178
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
182
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2H2Z7PKZjs.ChartTooltip, { children: [
|
|
179
183
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
180
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
181
185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
186
|
+
_chunk2H2Z7PKZjs.ChartTooltipTable,
|
|
183
187
|
{
|
|
184
188
|
rows: [...rows, ...appendedRows]
|
|
185
189
|
}
|
|
186
190
|
),
|
|
187
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
191
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
188
192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
189
193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
190
194
|
] }) : tooltipClickLabel }) : null
|
|
@@ -681,13 +685,13 @@ var useTimeSeriesChartOptions = ({
|
|
|
681
685
|
const getBaseChartOptions = (type) => {
|
|
682
686
|
switch (type) {
|
|
683
687
|
case "areaspline":
|
|
684
|
-
return
|
|
688
|
+
return _chunk33Y5FZTTjs.areaChartOptions;
|
|
685
689
|
case "spline":
|
|
686
|
-
return
|
|
690
|
+
return _chunk33Y5FZTTjs.lineChartOptions;
|
|
687
691
|
case "column":
|
|
688
|
-
return
|
|
692
|
+
return _chunk33Y5FZTTjs.columnChartOptions;
|
|
689
693
|
default:
|
|
690
|
-
return
|
|
694
|
+
return _chunk33Y5FZTTjs.lineChartOptions;
|
|
691
695
|
}
|
|
692
696
|
};
|
|
693
697
|
const baseChartOptions2 = getBaseChartOptions(seriesType);
|
|
@@ -717,7 +721,7 @@ var useTimeSeriesChartOptions = ({
|
|
|
717
721
|
return onClick({ x: _optionalChain([this, 'optionalAccess', _28 => _28.hoverPoint, 'optionalAccess', _29 => _29.x]) });
|
|
718
722
|
} : void 0,
|
|
719
723
|
load: function() {
|
|
720
|
-
const tooltipId =
|
|
724
|
+
const tooltipId = _chunk2H2Z7PKZjs.generateChartTooltipPortalId.call(void 0, this.index);
|
|
721
725
|
attachTooltipEventListeners(this.series, tooltipId);
|
|
722
726
|
}
|
|
723
727
|
}
|
|
@@ -883,7 +887,7 @@ var xAxisLabelFormatterDefault = xAxisLabelFormatter;
|
|
|
883
887
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
884
888
|
_annotations2.default.call(void 0, _highcharts2.default);
|
|
885
889
|
var StyledBox = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
886
|
-
${
|
|
890
|
+
${_chunk2H2Z7PKZjs.areaChartStyles}
|
|
887
891
|
`;
|
|
888
892
|
var AreaChart = _react.memo.call(void 0, function AreaChart2(props) {
|
|
889
893
|
const { data } = props;
|
|
@@ -926,7 +930,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
926
930
|
(series, index) => _nullishCoalesce(_optionalChain([series, 'access', _32 => _32.styles, 'optionalAccess', _33 => _33.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
|
|
927
931
|
);
|
|
928
932
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.GlobalChartStyleOverrides, {}),
|
|
930
934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
931
935
|
StyledBox,
|
|
932
936
|
{
|
|
@@ -951,11 +955,11 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
951
955
|
}
|
|
952
956
|
) : null,
|
|
953
957
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
954
|
-
|
|
958
|
+
_chunk2H2Z7PKZjs.ChartTooltipPortal,
|
|
955
959
|
{
|
|
956
960
|
chart,
|
|
957
961
|
renderContent: (context) => {
|
|
958
|
-
const tooltipData =
|
|
962
|
+
const tooltipData = _chunk2H2Z7PKZjs.transformTimeSeriesTooltipData.call(void 0, {
|
|
959
963
|
context,
|
|
960
964
|
data
|
|
961
965
|
});
|
|
@@ -998,7 +1002,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
998
1002
|
|
|
999
1003
|
var ChartXAnnotationDetails = _react.memo.call(void 0,
|
|
1000
1004
|
function ChartXAnnotationDetails2({ iconName, text }) {
|
|
1001
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1005
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1002
1006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: iconName, size: "mini", color: "icon.base" }),
|
|
1003
1007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: text })
|
|
1004
1008
|
] }) });
|
|
@@ -1047,13 +1051,13 @@ var getDonutChartLegendLabels = ({
|
|
|
1047
1051
|
data
|
|
1048
1052
|
}) => {
|
|
1049
1053
|
return data.map((slice, index) => ({
|
|
1050
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1054
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
|
|
1051
1055
|
color: _optionalChain([slice, 'access', _40 => _40.styles, 'optionalAccess', _41 => _41.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1052
1056
|
}));
|
|
1053
1057
|
};
|
|
1054
1058
|
var DonutChartLegend = _react.memo.call(void 0,
|
|
1055
1059
|
function DonutChartLegend2({ data }) {
|
|
1056
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1060
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
|
|
1057
1061
|
}
|
|
1058
1062
|
);
|
|
1059
1063
|
|
|
@@ -1083,7 +1087,7 @@ var DonutChartTooltip = _react.memo.call(void 0,
|
|
|
1083
1087
|
{
|
|
1084
1088
|
cells: [
|
|
1085
1089
|
{
|
|
1086
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1090
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1087
1091
|
},
|
|
1088
1092
|
{
|
|
1089
1093
|
content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
|
|
@@ -1112,9 +1116,9 @@ var DonutChartTooltip = _react.memo.call(void 0,
|
|
|
1112
1116
|
]
|
|
1113
1117
|
}
|
|
1114
1118
|
];
|
|
1115
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1116
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1117
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1119
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2H2Z7PKZjs.ChartTooltip, { children: [
|
|
1120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTable, { rows }),
|
|
1121
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1118
1122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1119
1123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1120
1124
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1143,7 +1147,7 @@ var transformDonutChartTooltipData = ({
|
|
|
1143
1147
|
|
|
1144
1148
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
1145
1149
|
var StyledBox2 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
1146
|
-
${
|
|
1150
|
+
${_chunk2H2Z7PKZjs.donutChartStyles}
|
|
1147
1151
|
`;
|
|
1148
1152
|
var DonutChart = _react.memo.call(void 0, function DonutChart2(props) {
|
|
1149
1153
|
const { data } = props;
|
|
@@ -1163,7 +1167,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1163
1167
|
onClick,
|
|
1164
1168
|
tooltipClickLabel
|
|
1165
1169
|
}) {
|
|
1166
|
-
const [options, setOptions] = _react.useState.call(void 0,
|
|
1170
|
+
const [options, setOptions] = _react.useState.call(void 0, _chunk33Y5FZTTjs.donutChartOptions);
|
|
1167
1171
|
const [chart, setChart] = _react.useState.call(void 0, null);
|
|
1168
1172
|
const callback = _react.useCallback.call(void 0, (chartInstance) => {
|
|
1169
1173
|
setChart(chartInstance);
|
|
@@ -1181,7 +1185,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1181
1185
|
events: {
|
|
1182
1186
|
render: function() {
|
|
1183
1187
|
const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _49 => _49.series, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.data]), () => ( []));
|
|
1184
|
-
const tooltipId =
|
|
1188
|
+
const tooltipId = _chunk2H2Z7PKZjs.generateChartTooltipPortalId.call(void 0, this.index);
|
|
1185
1189
|
allSlices.forEach((slice) => {
|
|
1186
1190
|
const sliceElement = _optionalChain([slice, 'optionalAccess', _52 => _52.graphic, 'optionalAccess', _53 => _53.element]);
|
|
1187
1191
|
_optionalChain([sliceElement, 'optionalAccess', _54 => _54.setAttribute, 'call', _55 => _55("aria-describedby", tooltipId)]);
|
|
@@ -1221,7 +1225,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1221
1225
|
(series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _60 => _60.styles, 'optionalAccess', _61 => _61.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
|
|
1222
1226
|
);
|
|
1223
1227
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1224
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1228
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.GlobalChartStyleOverrides, {}),
|
|
1225
1229
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1226
1230
|
StyledBox2,
|
|
1227
1231
|
{
|
|
@@ -1238,7 +1242,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1238
1242
|
}
|
|
1239
1243
|
),
|
|
1240
1244
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1241
|
-
|
|
1245
|
+
_chunk2H2Z7PKZjs.ChartTooltipPortal,
|
|
1242
1246
|
{
|
|
1243
1247
|
chart,
|
|
1244
1248
|
renderContent: (context) => {
|
|
@@ -1298,7 +1302,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
|
|
|
1298
1302
|
return {
|
|
1299
1303
|
cells: [
|
|
1300
1304
|
{
|
|
1301
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1305
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon, children: name }) })
|
|
1302
1306
|
},
|
|
1303
1307
|
{
|
|
1304
1308
|
content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
|
|
@@ -1351,7 +1355,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
|
|
|
1351
1355
|
}
|
|
1352
1356
|
];
|
|
1353
1357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1354
|
-
|
|
1358
|
+
_chunk2H2Z7PKZjs.ChartTable,
|
|
1355
1359
|
{
|
|
1356
1360
|
rows: [...rows, ...totalRow]
|
|
1357
1361
|
}
|
|
@@ -1376,13 +1380,13 @@ var getLineChartLegendLabels = ({
|
|
|
1376
1380
|
data
|
|
1377
1381
|
}) => {
|
|
1378
1382
|
return data.map((series, index) => ({
|
|
1379
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1383
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
1380
1384
|
color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1381
1385
|
}));
|
|
1382
1386
|
};
|
|
1383
1387
|
var LineChartLegend = _react.memo.call(void 0,
|
|
1384
1388
|
function LineChartLegend2({ data }) {
|
|
1385
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1389
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
|
|
1386
1390
|
}
|
|
1387
1391
|
);
|
|
1388
1392
|
|
|
@@ -1413,7 +1417,7 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1413
1417
|
return {
|
|
1414
1418
|
cells: [
|
|
1415
1419
|
{
|
|
1416
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1420
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1417
1421
|
},
|
|
1418
1422
|
{
|
|
1419
1423
|
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,
|
|
@@ -1431,11 +1435,11 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1431
1435
|
]
|
|
1432
1436
|
};
|
|
1433
1437
|
});
|
|
1434
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1438
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2H2Z7PKZjs.ChartTooltip, { children: [
|
|
1435
1439
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
1436
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1437
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1438
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1440
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
1441
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTable, { rows }),
|
|
1442
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1439
1443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1440
1444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1441
1445
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1449,7 +1453,7 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1449
1453
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
1450
1454
|
_annotations2.default.call(void 0, _highcharts2.default);
|
|
1451
1455
|
var StyledBox3 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
1452
|
-
${
|
|
1456
|
+
${_chunk2H2Z7PKZjs.lineChartStyles}
|
|
1453
1457
|
`;
|
|
1454
1458
|
var LineChart = _react.memo.call(void 0, function LineChart2(props) {
|
|
1455
1459
|
const { data } = props;
|
|
@@ -1503,7 +1507,7 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
|
|
|
1503
1507
|
}
|
|
1504
1508
|
);
|
|
1505
1509
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.GlobalChartStyleOverrides, {}),
|
|
1507
1511
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1508
1512
|
StyledBox3,
|
|
1509
1513
|
{
|
|
@@ -1529,11 +1533,11 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
|
|
|
1529
1533
|
}
|
|
1530
1534
|
) : null,
|
|
1531
1535
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1532
|
-
|
|
1536
|
+
_chunk2H2Z7PKZjs.ChartTooltipPortal,
|
|
1533
1537
|
{
|
|
1534
1538
|
chart,
|
|
1535
1539
|
renderContent: (context) => {
|
|
1536
|
-
const tooltipData =
|
|
1540
|
+
const tooltipData = _chunk2H2Z7PKZjs.transformTimeSeriesTooltipData.call(void 0, {
|
|
1537
1541
|
context,
|
|
1538
1542
|
data
|
|
1539
1543
|
});
|
|
@@ -1582,13 +1586,13 @@ var getVerticalBarChartLegendLabels = ({
|
|
|
1582
1586
|
data
|
|
1583
1587
|
}) => {
|
|
1584
1588
|
return data.map((series, index) => ({
|
|
1585
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1589
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
1586
1590
|
color: _optionalChain([series, 'access', _75 => _75.styles, 'optionalAccess', _76 => _76.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1587
1591
|
}));
|
|
1588
1592
|
};
|
|
1589
1593
|
var VerticalBarChartLegend = _react.memo.call(void 0,
|
|
1590
1594
|
function VerticalbarChartLegend({ data }) {
|
|
1591
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1595
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
|
|
1592
1596
|
}
|
|
1593
1597
|
);
|
|
1594
1598
|
|
|
@@ -1619,7 +1623,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1619
1623
|
return {
|
|
1620
1624
|
cells: [
|
|
1621
1625
|
{
|
|
1622
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1626
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1623
1627
|
},
|
|
1624
1628
|
{
|
|
1625
1629
|
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,
|
|
@@ -1637,11 +1641,11 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1637
1641
|
]
|
|
1638
1642
|
};
|
|
1639
1643
|
});
|
|
1640
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1644
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2H2Z7PKZjs.ChartTooltip, { children: [
|
|
1641
1645
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
1642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1644
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1646
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
1647
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipTable, { rows }),
|
|
1648
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1645
1649
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1646
1650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1647
1651
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1655,7 +1659,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1655
1659
|
// src/components/VerticalBarChart/styles.ts
|
|
1656
1660
|
|
|
1657
1661
|
var verticalBarChartStyles = _styledcomponents.css`
|
|
1658
|
-
${
|
|
1662
|
+
${_chunk2H2Z7PKZjs.timeSeriesChartStyles}
|
|
1659
1663
|
|
|
1660
1664
|
/*
|
|
1661
1665
|
When the chart container is hovered, reduce the opacity of all columns.
|
|
@@ -1681,7 +1685,7 @@ var StyledBox4 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
|
1681
1685
|
var VerticalBarChart = _react.memo.call(void 0,
|
|
1682
1686
|
function VerticalBarChart2(props) {
|
|
1683
1687
|
const { data, showSeriesLimitWarning = true } = props;
|
|
1684
|
-
const seriesLimit = _nullishCoalesce(props.seriesLimit, () => (
|
|
1688
|
+
const seriesLimit = _nullishCoalesce(props.seriesLimit, () => ( _chunk33Y5FZTTjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT));
|
|
1685
1689
|
const isSeriesLimitOverridden = props.seriesLimit !== void 0;
|
|
1686
1690
|
if (data.length === 0) {
|
|
1687
1691
|
return null;
|
|
@@ -1783,7 +1787,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1783
1787
|
}
|
|
1784
1788
|
);
|
|
1785
1789
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1786
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2H2Z7PKZjs.GlobalChartStyleOverrides, {}),
|
|
1787
1791
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1788
1792
|
StyledBox4,
|
|
1789
1793
|
{
|
|
@@ -1808,11 +1812,11 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1808
1812
|
}
|
|
1809
1813
|
) : null,
|
|
1810
1814
|
chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1811
|
-
|
|
1815
|
+
_chunk2H2Z7PKZjs.ChartTooltipPortal,
|
|
1812
1816
|
{
|
|
1813
1817
|
chart,
|
|
1814
1818
|
renderContent: (context) => {
|
|
1815
|
-
const tooltipData =
|
|
1819
|
+
const tooltipData = _chunk2H2Z7PKZjs.transformTimeSeriesTooltipData.call(void 0, {
|
|
1816
1820
|
context,
|
|
1817
1821
|
data
|
|
1818
1822
|
});
|
|
@@ -1893,5 +1897,9 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1893
1897
|
|
|
1894
1898
|
|
|
1895
1899
|
|
|
1896
|
-
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
exports.AreaChart = AreaChart; exports.BUBBLE_CHART_DEFAULT_MAX_SIZE = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_MAX_SIZE; exports.BUBBLE_CHART_DEFAULT_PADDING = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_PADDING; exports.BUBBLE_CHART_HEIGHT = _chunk33Y5FZTTjs.BUBBLE_CHART_HEIGHT; exports.ChartLegend = _chunk2H2Z7PKZjs.ChartLegend; exports.ChartLegendLabel = _chunk2H2Z7PKZjs.ChartLegendLabel; exports.ChartTable = _chunk2H2Z7PKZjs.ChartTable; exports.ChartTooltip = _chunk2H2Z7PKZjs.ChartTooltip; exports.ChartTooltipFooter = _chunk2H2Z7PKZjs.ChartTooltipFooter; exports.ChartTooltipHeader = _chunk2H2Z7PKZjs.ChartTooltipHeader; exports.ChartTooltipPortal = _chunk2H2Z7PKZjs.ChartTooltipPortal; exports.ChartTooltipTable = _chunk2H2Z7PKZjs.ChartTooltipTable; exports.ChartTooltipTitle = _chunk2H2Z7PKZjs.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunk2H2Z7PKZjs.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunk33Y5FZTTjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunk33Y5FZTTjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunk33Y5FZTTjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunk2H2Z7PKZjs.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunk33Y5FZTTjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunk33Y5FZTTjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunk33Y5FZTTjs.areaChartOptions; exports.areaChartStyles = _chunk2H2Z7PKZjs.areaChartStyles; exports.baseChartOptions = _chunk33Y5FZTTjs.baseChartOptions; exports.baseChartStyles = _chunk2H2Z7PKZjs.baseChartStyles; exports.columnChartOptions = _chunk33Y5FZTTjs.columnChartOptions; exports.defaultBubbleChartWidth = _chunk33Y5FZTTjs.defaultBubbleChartWidth; exports.donutChartOptions = _chunk33Y5FZTTjs.donutChartOptions; exports.donutChartStyles = _chunk2H2Z7PKZjs.donutChartStyles; exports.generateChartTooltipPortalId = _chunk2H2Z7PKZjs.generateChartTooltipPortalId; exports.getDatavizColor = getDatavizColor; exports.getDatavizColorWithAlpha = getDatavizColorWithAlpha; exports.getDatavizOpacity = getDatavizOpacity; exports.getStorybookCategoricalData = getStorybookCategoricalData; exports.getStorybookSparseTimelineData = getStorybookSparseTimelineData; exports.isCategoricalHourData = isCategoricalHourData; exports.isHourlyTimeData = isHourlyTimeData; exports.lineChartOptions = _chunk33Y5FZTTjs.lineChartOptions; exports.lineChartStyles = _chunk2H2Z7PKZjs.lineChartStyles; exports.timeSeriesChartOptions = _chunk33Y5FZTTjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunk2H2Z7PKZjs.timeSeriesChartStyles; exports.transformDataToSeries = transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunk2H2Z7PKZjs.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = xAxisLabelFormatter; exports.yAxisLabelFormatter = yAxisLabelFormatter;
|
|
1897
1905
|
//# sourceMappingURL=index.js.map
|