@wonderflow/charts 13.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/bar-chart/bar-chart.d.ts +3 -3
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
- package/dist/components/bar-chart/bar-chart.js +4 -4
- package/dist/components/cartesian-base/cartesian-base.d.ts +5 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts.map +1 -1
- package/dist/components/cartesian-base/cartesian-base.js +3 -2
- package/dist/components/line-chart/line-chart.d.ts +5 -5
- package/dist/components/line-chart/line-chart.d.ts.map +1 -1
- package/dist/components/line-chart/line-chart.js +2 -2
- package/dist/components/shapes/bars/bars-label.d.ts +22 -0
- package/dist/components/shapes/bars/bars-label.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-label.js +35 -0
- package/dist/components/shapes/bars/bars-layout.d.ts +3 -0
- package/dist/components/shapes/bars/bars-layout.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-layout.js +36 -0
- package/dist/components/shapes/bars/bars-overlay-labels.d.ts +6 -0
- package/dist/components/shapes/bars/bars-overlay-labels.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-overlay-labels.js +62 -0
- package/dist/components/shapes/bars/bars-overlay.js +4 -4
- package/dist/components/shapes/bars/bars-series-labels.d.ts +6 -0
- package/dist/components/shapes/bars/bars-series-labels.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-series-labels.js +62 -0
- package/dist/components/shapes/bars/bars-series.d.ts.map +1 -1
- package/dist/components/shapes/bars/bars-series.js +4 -4
- package/dist/components/shapes/bars/bars-stack-overlay-labels.d.ts +6 -0
- package/dist/components/shapes/bars/bars-stack-overlay-labels.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-stack-overlay-labels.js +50 -0
- package/dist/components/shapes/bars/bars-stack-overlay.d.ts +6 -0
- package/dist/components/shapes/bars/bars-stack-overlay.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-stack-overlay.js +50 -0
- package/dist/components/shapes/bars/bars-stack-series-labels.d.ts +6 -0
- package/dist/components/shapes/bars/bars-stack-series-labels.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-stack-series-labels.js +50 -0
- package/dist/components/shapes/bars/bars-stack-series.d.ts +6 -0
- package/dist/components/shapes/bars/bars-stack-series.d.ts.map +1 -0
- package/dist/components/shapes/bars/bars-stack-series.js +48 -0
- package/dist/components/shapes/bars/bars-tooltip.d.ts.map +1 -1
- package/dist/components/shapes/bars/bars-tooltip.js +22 -11
- package/dist/components/shapes/bars/bars.d.ts.map +1 -1
- package/dist/components/shapes/bars/bars.js +9 -7
- package/dist/components/shapes/bars/bars.test.js +93 -0
- package/dist/components/shapes/bars/index.d.ts +8 -0
- package/dist/components/shapes/bars/index.d.ts.map +1 -1
- package/dist/components/shapes/bars/index.js +8 -0
- package/dist/components/shapes/lines/lines-marker-labels.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines-marker-labels.js +7 -3
- package/dist/components/shapes/lines/lines-tooltip.js +3 -3
- package/dist/components/shapes/lines/lines.d.ts.map +1 -1
- package/dist/components/shapes/lines/lines.js +1 -1
- package/dist/hooks/hooks.test.js +8 -3
- package/dist/hooks/useBarChart.d.ts +3 -2
- package/dist/hooks/useBarChart.d.ts.map +1 -1
- package/dist/hooks/useBarChart.js +20 -14
- package/dist/hooks/useBars.d.ts +19 -5
- package/dist/hooks/useBars.d.ts.map +1 -1
- package/dist/hooks/useBars.js +53 -14
- package/dist/hooks/useCartesian.d.ts +2 -1
- package/dist/hooks/useCartesian.d.ts.map +1 -1
- package/dist/hooks/useCartesian.js +4 -3
- package/dist/hooks/useLineChart.d.ts +1 -1
- package/dist/hooks/useLineChart.d.ts.map +1 -1
- package/dist/hooks/useLineChart.js +8 -6
- package/dist/hooks/useLines.d.ts +4 -1
- package/dist/hooks/useLines.d.ts.map +1 -1
- package/dist/hooks/useLines.js +2 -2
- package/dist/hooks/useTrendline.d.ts +14 -10
- package/dist/hooks/useTrendline.d.ts.map +1 -1
- package/dist/style-config/bars.d.ts.map +1 -1
- package/dist/style-config/bars.js +11 -1
- package/dist/types/bar-chart.d.ts +6 -7
- package/dist/types/bar-chart.d.ts.map +1 -1
- package/dist/types/bars.d.ts +39 -0
- package/dist/types/bars.d.ts.map +1 -1
- package/dist/types/cartesian.d.ts +4 -0
- package/dist/types/cartesian.d.ts.map +1 -1
- package/dist/types/line-chart.d.ts +5 -7
- package/dist/types/line-chart.d.ts.map +1 -1
- package/dist/types/main.d.ts +1 -1
- package/dist/types/main.d.ts.map +1 -1
- package/dist/utils/bars.d.ts +53 -5
- package/dist/utils/bars.d.ts.map +1 -1
- package/dist/utils/bars.js +252 -7
- package/dist/utils/bars.test.js +296 -3
- package/dist/utils/data.d.ts +9 -4
- package/dist/utils/data.d.ts.map +1 -1
- package/dist/utils/data.js +41 -6
- package/dist/utils/data.test.js +23 -7
- package/dist/utils/lines.d.ts +3 -3
- package/dist/utils/lines.d.ts.map +1 -1
- package/dist/utils/lines.js +3 -1
- package/dist/utils/lines.test.js +1 -1
- package/dist/utils/metadata.d.ts +2 -4
- package/dist/utils/metadata.d.ts.map +1 -1
- package/dist/utils/metadata.js +5 -0
- package/dist/utils/metadata.test.js +2 -2
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Except } from 'type-fest';
|
|
3
3
|
import { CartesianChartLayout, Data, SortingType, ThemeVariants } from '../../types';
|
|
4
|
-
import { BarChartIndex, BarChartSeries
|
|
4
|
+
import { BarChartIndex, BarChartSeries } from '../../types/bar-chart';
|
|
5
5
|
import { CartesianBaseProps } from '../cartesian-base/cartesian-base';
|
|
6
6
|
export declare type BarChartProps = {
|
|
7
7
|
/**
|
|
@@ -57,9 +57,9 @@ export declare type BarChartProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
showBackground?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
* Set
|
|
60
|
+
* Set custom content to be displayed in the tooltip below the default information.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
tooltipExtraContent?: React.ReactNode;
|
|
63
63
|
/**
|
|
64
64
|
* Prevent from displaying the tooltip on the chart when `true`.
|
|
65
65
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/components/bar-chart/bar-chart.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,OAAO,EACL,oBAAoB,EACpB,IAAI,EACJ,WAAW,EAAE,aAAa,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/components/bar-chart/bar-chart.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,OAAO,EACL,oBAAoB,EACpB,IAAI,EACJ,WAAW,EAAE,aAAa,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiB,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAErF,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,MAAM,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,GAAG,eAAe,CAAC,CAAA;AAEzE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuE5C,CAAC"}
|
|
@@ -3,8 +3,8 @@ import { useBarChart } from '../../hooks/useBarChart';
|
|
|
3
3
|
import { DataProvider, LayoutProvider, ThemeProvider, } from '../../providers';
|
|
4
4
|
import { CartesianChartLayout, } from '../../types';
|
|
5
5
|
import { CartesianBase } from '../cartesian-base/cartesian-base';
|
|
6
|
-
export const BarChart = ({ theme = 'light', layout = CartesianChartLayout.HORIZONTAL, height, isStacked = false, sortBy = 'as-is', data = [], index, series, overlay,
|
|
7
|
-
const { axis, axisFiltered, fixedHeight, isHorizontal, metadata, zeroPadding,
|
|
6
|
+
export const BarChart = ({ theme = 'light', layout = CartesianChartLayout.HORIZONTAL, height, isStacked = false, sortBy = 'as-is', data = [], index, series, overlay, tooltipExtraContent, preventTooltipDisplay = false, showAverage = false, showTrendline = false, showLabel = false, showBackground = false, hidePadding = false, fixedBarSize = false, ...otherProps }) => {
|
|
7
|
+
const { axis, axisFiltered, barChartLabelsMaxSize, brushFilteredData, fixedHeight, isHorizontal, metadata, zeroPadding, setBrushFilteredData, } = useBarChart({
|
|
8
8
|
theme,
|
|
9
9
|
layout,
|
|
10
10
|
height,
|
|
@@ -14,7 +14,7 @@ export const BarChart = ({ theme = 'light', layout = CartesianChartLayout.HORIZO
|
|
|
14
14
|
index,
|
|
15
15
|
series,
|
|
16
16
|
overlay,
|
|
17
|
-
|
|
17
|
+
tooltipExtraContent,
|
|
18
18
|
preventTooltipDisplay,
|
|
19
19
|
showAverage,
|
|
20
20
|
showTrendline,
|
|
@@ -26,6 +26,6 @@ export const BarChart = ({ theme = 'light', layout = CartesianChartLayout.HORIZO
|
|
|
26
26
|
return (_jsx(ThemeProvider, { theme: theme, children: _jsx(LayoutProvider, { layout: layout, children: _jsx(DataProvider, { data: data, metadata: metadata, filteredData: brushFilteredData, children: _jsx(CartesianBase, { ...otherProps, axis: axis[layout], axisFiltered: axisFiltered[layout], grid: {
|
|
27
27
|
hideRows: !isHorizontal,
|
|
28
28
|
hideColumns: isHorizontal,
|
|
29
|
-
}, margin: zeroPadding, onBrushChange: setBrushFilteredData, overrideInnerHeight: fixedHeight }) }) }) }));
|
|
29
|
+
}, margin: zeroPadding, onBrushChange: setBrushFilteredData, overrideInnerHeight: fixedHeight, barChartLabelsMaxSize: barChartLabelsMaxSize }) }) }) }));
|
|
30
30
|
};
|
|
31
31
|
BarChart.displayName = 'BarChart';
|
|
@@ -100,6 +100,11 @@ export declare type CartesianBaseProps = {
|
|
|
100
100
|
* chart height.
|
|
101
101
|
*/
|
|
102
102
|
overrideInnerHeight?: number;
|
|
103
|
+
/**
|
|
104
|
+
* This value is used to compute the space necessary to store the labels
|
|
105
|
+
* on the far right side of the grid, when the bar chart has a vertical layout.
|
|
106
|
+
*/
|
|
107
|
+
barChartLabelsMaxSize?: number;
|
|
103
108
|
/**
|
|
104
109
|
* Set custom styling properties.
|
|
105
110
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesian-base.d.ts","sourceRoot":"","sources":["../../../src/components/cartesian-base/cartesian-base.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,EAAc,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOpD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EACxD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAEL,IAAI,EACJ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AAStD,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,GAAE,MAAM,GAAE,QAAQ,CAAC,CAAC;IACxD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,IAAI,KAAK,IAAI,CAAC;CAC7C,CAAA;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"cartesian-base.d.ts","sourceRoot":"","sources":["../../../src/components/cartesian-base/cartesian-base.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,EAAc,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOpD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EACxD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAEL,IAAI,EACJ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AAStD,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,GAAE,MAAM,GAAE,QAAQ,CAAC,CAAC;IACxD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,IAAI,KAAK,IAAI,CAAC;CAC7C,CAAA;AAED,eAAO,MAAM,aAAa,wFAqPxB,CAAC"}
|
|
@@ -42,7 +42,7 @@ export const CartesianBase = forwardRef(({ width = 800, height = 600, preventRes
|
|
|
42
42
|
}, grid = {
|
|
43
43
|
hideColumns: false,
|
|
44
44
|
hideRows: false,
|
|
45
|
-
}, title, subtitle, headings, menu, axis, axisFiltered, showBrush = false, hideLegend = false, emptyState, emptyStateMessage, customLegend, reverseIndex, mirrorDomains, overrideInnerHeight, styleConfig, className, style, otherProps, onBrushChange, }, forwardedRef) => {
|
|
45
|
+
}, title, subtitle, headings, menu, axis, axisFiltered, showBrush = false, hideLegend = false, emptyState, emptyStateMessage, customLegend, reverseIndex, mirrorDomains, overrideInnerHeight, barChartLabelsMaxSize, styleConfig, className, style, otherProps, onBrushChange, }, forwardedRef) => {
|
|
46
46
|
const { axisConfig, axisFilteredSystem, axisSystem, bgFrom, bgTo, brushSize, brushPadding, cartesianConfig, dimension, dynamicHeight, dynamicWidth, dynamicStyle, hasBrush, hasData, hasLegend, hasReversedIndex, hasMirroredDomainsHorizontal, hasMirroredDomainsVertical, filteredData, hasEmptyState, hoveredLegendItem, isMenuOpen, metadata, position, ref, refLegend, theme, setHoveredLegendItem, setIsMenuOpen, } = useCartesian({
|
|
47
47
|
axis,
|
|
48
48
|
axisFiltered,
|
|
@@ -56,12 +56,13 @@ export const CartesianBase = forwardRef(({ width = 800, height = 600, preventRes
|
|
|
56
56
|
reverseIndex,
|
|
57
57
|
mirrorDomains,
|
|
58
58
|
overrideInnerHeight,
|
|
59
|
+
barChartLabelsMaxSize,
|
|
59
60
|
showBrush,
|
|
60
61
|
styleConfig,
|
|
61
62
|
title,
|
|
62
63
|
menu,
|
|
63
64
|
width,
|
|
64
65
|
});
|
|
65
|
-
return (_jsx("div", { "aria-atomic": "true", "aria-hidden": "false", "aria-label": "Cartesian Chart", className: clsx([styles.Wrapper, className]), "data-testid": "cartesian", "data-responsive": !preventResponsive, "data-theme": theme, ref: mergeRefs([ref, forwardedRef]), role: "img", style: { ...style, ...dynamicStyle }, children: _jsxs(StyleConfigProvider, { styleConfig: cartesianConfig, children: [_jsxs("svg", { ...otherProps, width: dynamicWidth, height: dynamicHeight, viewBox: `0 0 ${dynamicWidth} ${dynamicHeight}`, className: Unselectable, onMouseOver: () => setHoveredLegendItem(''), children: [_jsx(RectClipPath, { id: "clip-path-cartesian-container", x: 0, y: 0, width: dynamicWidth, height: dynamicHeight }), _jsx(RectClipPath, { id: "clip-path-cartesian-chart", x: position.axis.left, y: position.axis.top, width: dimension.axis.maxWidth, height: dimension.axis.maxHeight }), _jsx(LinearGradient, { id: "cartesian-container", from: bgFrom, to: bgTo }), _jsx("defs", { children: _jsx("filter", { id: "filter_multiply", filterUnits: "objectBoundingBox", x: "0%", y: "0%", width: "100%", height: "100%", children: _jsx("feBlend", { in: "SourceGraphic", mode: "multiply" }) }) }), _jsx("rect", { x: 0, y: 0, width: dynamicWidth, height: dynamicHeight, fill: "url(#cartesian-container)", rx: 0, strokeWidth: 0, stroke: "none" }), _jsx(Headings, { title: title, subtitle: subtitle, top: position.headings.top, left: position.headings.left, width: dynamicWidth, margin: margin, menu: menu, config: headings?.config, onMenuOpen: setIsMenuOpen, "data-inner-element": "Headings" }), _jsx(Loader, { isLoading: isLoading, top: position.loader.top, left: position.loader.left, width: dimension.loader.width, height: dimension.loader.height, "data-inner-element": "Loader" }), !isLoading && (_jsxs(Group, { clipPath: "url(#clip-path-cartesian-container)", children: [_jsx(CartesianBaseGrid, { position: position.axis, dimension: dimension.axis, axis: axisFilteredSystem, hideRows: !hasData || grid.hideRows, hideColumns: !hasData || grid.hideColumns, tickRows: grid.tickRows, tickColumns: grid.tickColumns, background: grid.background, otherProps: grid.otherProps, "data-inner-element": "CartesianBaseGrid" }), _jsx(CartesianBaseAxis, { dimension: dimension.axis, axis: axisFilteredSystem, axisConfig: axisConfig, "data-inner-element": "CartesianBaseAxis" }), _jsx(EmptyState, { position: position.axis, dimension: dimension.axis, customEmptyState: emptyState, message: emptyStateMessage, isVisible: hasEmptyState, "data-inner-element": "EmptyState" }), hasData && (_jsx(CartesianProvider, { position: position.axis, dimension: dimension.axis, axis: axisFilteredSystem, hoveredLegendItem: hoveredLegendItem, preventTooltipOpening: isMenuOpen, hasReversedIndex: hasReversedIndex, hasMirroredDomainsHorizontal: hasMirroredDomainsHorizontal, hasMirroredDomainsVertical: hasMirroredDomainsVertical, children: _jsx(DataProvider, { data: filteredData, metadata: metadata, filteredData: filteredData, children: _jsxs(Group, {
|
|
66
|
+
return (_jsx("div", { "aria-atomic": "true", "aria-hidden": "false", "aria-label": "Cartesian Chart", className: clsx([styles.Wrapper, className]), "data-testid": "cartesian", "data-responsive": !preventResponsive, "data-theme": theme, ref: mergeRefs([ref, forwardedRef]), role: "img", style: { ...style, ...dynamicStyle }, children: _jsxs(StyleConfigProvider, { styleConfig: cartesianConfig, children: [_jsxs("svg", { ...otherProps, width: dynamicWidth, height: dynamicHeight, viewBox: `0 0 ${dynamicWidth} ${dynamicHeight}`, className: Unselectable, onMouseOver: () => setHoveredLegendItem(''), children: [_jsx(RectClipPath, { id: "clip-path-cartesian-container", x: 0, y: 0, width: dynamicWidth, height: dynamicHeight }), _jsx(RectClipPath, { id: "clip-path-cartesian-chart", x: position.axis.left, y: position.axis.top, width: dimension.axis.maxWidth, height: dimension.axis.maxHeight }), _jsx(LinearGradient, { id: "cartesian-container", from: bgFrom, to: bgTo }), _jsx("defs", { children: _jsx("filter", { id: "filter_multiply", filterUnits: "objectBoundingBox", x: "0%", y: "0%", width: "100%", height: "100%", children: _jsx("feBlend", { in: "SourceGraphic", mode: "multiply" }) }) }), _jsx("rect", { x: 0, y: 0, width: dynamicWidth, height: dynamicHeight, fill: "url(#cartesian-container)", rx: 0, strokeWidth: 0, stroke: "none" }), _jsx(Headings, { title: title, subtitle: subtitle, top: position.headings.top, left: position.headings.left, width: dynamicWidth, margin: margin, menu: menu, config: headings?.config, onMenuOpen: setIsMenuOpen, "data-inner-element": "Headings" }), _jsx(Loader, { isLoading: isLoading, top: position.loader.top, left: position.loader.left, width: dimension.loader.width, height: dimension.loader.height, "data-inner-element": "Loader" }), !isLoading && (_jsxs(Group, { clipPath: "url(#clip-path-cartesian-container)", children: [_jsx(CartesianBaseGrid, { position: position.axis, dimension: dimension.axis, axis: axisFilteredSystem, hideRows: !hasData || grid.hideRows, hideColumns: !hasData || grid.hideColumns, tickRows: grid.tickRows, tickColumns: grid.tickColumns, background: grid.background, otherProps: grid.otherProps, "data-inner-element": "CartesianBaseGrid" }), _jsx(CartesianBaseAxis, { dimension: dimension.axis, axis: axisFilteredSystem, axisConfig: axisConfig, "data-inner-element": "CartesianBaseAxis" }), _jsx(EmptyState, { position: position.axis, dimension: dimension.axis, customEmptyState: emptyState, message: emptyStateMessage, isVisible: hasEmptyState, "data-inner-element": "EmptyState" }), hasData && (_jsx(CartesianProvider, { position: position.axis, dimension: dimension.axis, axis: axisFilteredSystem, hoveredLegendItem: hoveredLegendItem, preventTooltipOpening: isMenuOpen, hasReversedIndex: hasReversedIndex, hasMirroredDomainsHorizontal: hasMirroredDomainsHorizontal, hasMirroredDomainsVertical: hasMirroredDomainsVertical, children: _jsx(DataProvider, { data: filteredData, metadata: metadata, filteredData: filteredData, children: _jsxs(Group, { children: [metadata?.type === Charts.LINE_CHART && _jsx(Lines, {}), metadata?.type === Charts.BAR_CHART && _jsx(Bars, {})] }) }) })), _jsx(CartesianBaseBrush, { axisSystem: axisSystem, brushSize: brushSize, dimension: dimension.axis, isVisible: hasBrush, padding: brushPadding, position: position.brush, onChange: onBrushChange, "data-inner-element": "CartesianBaseBrush" })] }))] }), _jsx(CartesianBaseLegend, { customLegend: customLegend, isVisible: hasLegend, ref: refLegend, onMouseOver: (dataKey) => setHoveredLegendItem(dataKey), "data-inner-element": "CartesianBaseLegend" })] }) }));
|
|
66
67
|
});
|
|
67
68
|
CartesianBase.displayName = 'CartesianBase';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Except } from 'type-fest';
|
|
3
3
|
import { CartesianChartLayout, Data, ThemeVariants } from '../../types';
|
|
4
|
-
import { LineChartIndex, LineChartRenderType, LineChartSeries
|
|
4
|
+
import { LineChartIndex, LineChartRenderType, LineChartSeries } from '../../types/line-chart';
|
|
5
5
|
import { CartesianBaseProps } from '../cartesian-base/cartesian-base';
|
|
6
6
|
export declare type LineChartProps = {
|
|
7
7
|
/**
|
|
@@ -41,9 +41,9 @@ export declare type LineChartProps = {
|
|
|
41
41
|
*/
|
|
42
42
|
showTrendline?: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Set
|
|
44
|
+
* Set custom content to be displayed in the tooltip below the default information.
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
tooltipExtraContent?: React.ReactNode;
|
|
47
47
|
/**
|
|
48
48
|
* Prevent from displaying the tooltip on the chart when `true`.
|
|
49
49
|
*/
|
|
@@ -103,9 +103,9 @@ export declare const LineChart: import("react").ForwardRefExoticComponent<{
|
|
|
103
103
|
*/
|
|
104
104
|
showTrendline?: boolean | undefined;
|
|
105
105
|
/**
|
|
106
|
-
* Set
|
|
106
|
+
* Set custom content to be displayed in the tooltip below the default information.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
tooltipExtraContent?: React.ReactNode;
|
|
109
109
|
/**
|
|
110
110
|
* Prevent from displaying the tooltip on the chart when `true`.
|
|
111
111
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../../src/components/line-chart/line-chart.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,OAAO,EACL,oBAAoB,EACpB,IAAI,EACJ,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,mBAAmB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../../src/components/line-chart/line-chart.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,OAAO,EACL,oBAAoB,EACpB,IAAI,EACJ,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,mBAAmB,EAAE,eAAe,EACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAErF,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,GAAG,eAAe,CAAC,CAAA;AAEzE,eAAO,MAAM,SAAS;IA9DpB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;WACI,cAAc;IACrB;;OAEG;YACK,eAAe;IACvB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;0BACmB,MAAM,SAAS;IACrC;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;uHAoEH,CAAC"}
|
|
@@ -19,7 +19,7 @@ import { useLineChart } from '../../hooks';
|
|
|
19
19
|
import { DataProvider, LayoutProvider, ThemeProvider, } from '../../providers';
|
|
20
20
|
import { CartesianChartLayout, } from '../../types';
|
|
21
21
|
import { CartesianBase } from '../cartesian-base/cartesian-base';
|
|
22
|
-
export const LineChart = forwardRef(({ theme = 'light', layout = CartesianChartLayout.HORIZONTAL, renderAs = 'curves', data = [], index, series, overlay,
|
|
22
|
+
export const LineChart = forwardRef(({ theme = 'light', layout = CartesianChartLayout.HORIZONTAL, renderAs = 'curves', data = [], index, series, overlay, tooltipExtraContent, preventTooltipDisplay = false, showAverage = false, showTrendline = false, hidePadding = false, hideMissingDataConnection = false, showMarker = false, showMarkerLabel = false, ...otherProps }, forwardedRef) => {
|
|
23
23
|
const { axis, axisFiltered, isHorizontal, metadata, zeroPadding, brushFilteredData, setBrushFilteredData, } = useLineChart({
|
|
24
24
|
theme,
|
|
25
25
|
layout,
|
|
@@ -28,7 +28,7 @@ export const LineChart = forwardRef(({ theme = 'light', layout = CartesianChartL
|
|
|
28
28
|
index,
|
|
29
29
|
series,
|
|
30
30
|
overlay,
|
|
31
|
-
|
|
31
|
+
tooltipExtraContent,
|
|
32
32
|
preventTooltipDisplay,
|
|
33
33
|
hidePadding,
|
|
34
34
|
showAverage,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type BarsLabelProps = {
|
|
3
|
+
wrapper?: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
};
|
|
8
|
+
text: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
value: string | number;
|
|
13
|
+
separator: string;
|
|
14
|
+
extraData: string;
|
|
15
|
+
fontWeightValue: number;
|
|
16
|
+
dataKey: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const BarsLabel: {
|
|
19
|
+
({ dataKey, extraData, fontWeightValue, separator, text, value, wrapper, }: BarsLabelProps): JSX.Element | null;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=bars-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-label.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-label.tsx"],"names":[],"mappings":";AAwBA,oBAAY,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE;QACR,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE;QACJ,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,eAAO,MAAM,SAAS;gFAQnB,cAAc;;CA0DhB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2024 Wonderflow Design Team
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Group } from '@visx/group';
|
|
18
|
+
import { useCallback } from 'react';
|
|
19
|
+
import { useBars } from '../../../hooks';
|
|
20
|
+
import { useCartesianContext, useStyleConfigContext, useThemeContext } from '../../../providers';
|
|
21
|
+
import { BarsItem, BarsItemBlurred } from './bars.module.css';
|
|
22
|
+
export const BarsLabel = ({ dataKey, extraData, fontWeightValue, separator, text, value, wrapper, }) => {
|
|
23
|
+
const { hoveredLegendItem: overLegend } = useCartesianContext();
|
|
24
|
+
const theme = useThemeContext();
|
|
25
|
+
const { themes, bars } = useStyleConfigContext();
|
|
26
|
+
const { series, hasLabel, } = useBars();
|
|
27
|
+
const { fontFamily, fontWeight, fontSize, alignmentBaseline, height, fillOpacity, rx, } = bars.label;
|
|
28
|
+
const dynamicClassName = useCallback((overLegend, dataKey) => ((overLegend === dataKey || overLegend === '')
|
|
29
|
+
? BarsItem
|
|
30
|
+
: BarsItemBlurred), []);
|
|
31
|
+
if (!hasLabel)
|
|
32
|
+
return null;
|
|
33
|
+
return (_jsxs(Group, { className: dynamicClassName(overLegend, dataKey), children: [wrapper && (_jsx("rect", { x: wrapper.x, y: wrapper.y, width: wrapper.width, height: height, fill: themes[theme].markerLabel.background, fillOpacity: fillOpacity, rx: rx })), _jsxs("text", { x: text.x, y: text.y, fontSize: fontSize, fontWeight: fontWeight, fontFamily: fontFamily, fill: themes[theme].axis.tickLabel, alignmentBaseline: alignmentBaseline, textAnchor: wrapper ? 'middle' : undefined, children: [_jsx("tspan", { fontWeight: fontWeightValue, children: value }), series.extraData && (_jsxs(_Fragment, { children: [_jsx("tspan", { children: separator }), _jsx("tspan", { children: extraData })] }))] })] }));
|
|
34
|
+
};
|
|
35
|
+
BarsLabel.displayName = 'BarsLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-layout.tsx"],"names":[],"mappings":";AA+BA,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA6B9B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2023-2024 Wonderflow Design Team
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Group } from '@visx/group';
|
|
18
|
+
import { useBars } from '../../../hooks';
|
|
19
|
+
import { useLayoutContext } from '../../../providers';
|
|
20
|
+
import { BarsOverlay } from './bars-overlay';
|
|
21
|
+
import { BarsOverlayLabels } from './bars-overlay-labels';
|
|
22
|
+
import { BarsSeries } from './bars-series';
|
|
23
|
+
import { BarsSeriesLabels } from './bars-series-labels';
|
|
24
|
+
import { BarsStackOverlay } from './bars-stack-overlay';
|
|
25
|
+
import { BarsStackOverlayLabels } from './bars-stack-overlay-labels';
|
|
26
|
+
import { BarsStackSeries } from './bars-stack-series';
|
|
27
|
+
import { BarsStackSeriesLabels } from './bars-stack-series-labels';
|
|
28
|
+
import { BarsTrendline } from './bars-trendline';
|
|
29
|
+
export const BarsLayout = () => {
|
|
30
|
+
const { isHorizontal } = useLayoutContext();
|
|
31
|
+
const { isStacked } = useBars();
|
|
32
|
+
return (_jsxs(Group, { "data-testid": "bars", children: [_jsx(BarsTrendline, {}), isStacked
|
|
33
|
+
? (_jsxs(_Fragment, { children: [_jsx(BarsStackSeries, { "data-testid": "bars-stack-series" }), _jsx(BarsStackOverlay, { "data-testid": "bars-overlay" }), _jsx(BarsStackSeriesLabels, {}), _jsx(BarsStackOverlayLabels, {})] }))
|
|
34
|
+
: (_jsxs(_Fragment, { children: [_jsx(BarsSeries, { "data-testid": "bars-series" }), _jsx(BarsOverlay, { "data-testid": "bars-overlay" }), isHorizontal && _jsx(BarsSeriesLabels, {}), isHorizontal && _jsx(BarsOverlayLabels, {})] }))] }));
|
|
35
|
+
};
|
|
36
|
+
BarsLayout.displayName = 'BarsLayout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-overlay-labels.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-overlay-labels.tsx"],"names":[],"mappings":";AAgCA,eAAO,MAAM,iBAAiB;;;CAiK7B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2024 Wonderflow Design Team
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Group } from '@visx/group';
|
|
18
|
+
import { BarGroup, BarGroupHorizontal } from '@visx/shape';
|
|
19
|
+
import _ from 'lodash';
|
|
20
|
+
import { useBars } from '../../../hooks';
|
|
21
|
+
import { extractBarValueFromNestedKey, getBarLabelContent, getBarLabelMorphology, getBarSizeAndPosition, getBarThickness, sortBarsBy, } from '../../../utils';
|
|
22
|
+
import { useStyleConfigContext } from '../../../providers';
|
|
23
|
+
import { BarsLabel } from './bars-label';
|
|
24
|
+
export const BarsOverlayLabels = () => {
|
|
25
|
+
const { bars } = useStyleConfigContext();
|
|
26
|
+
const { barChartLabelsMaxSize, data, isHorizontal, isVertical, fixedBarSize, maxWidth, maxHeight, scaleXY0, scaleXY1, showLabel, sortBy, hasOverlay, hasLabel, overlay, overlayAxis, style, X0Y0, } = useBars();
|
|
27
|
+
const { maxSize } = style;
|
|
28
|
+
const { fontWeight, fontWeightValue } = bars.label;
|
|
29
|
+
if (!hasOverlay || !hasLabel)
|
|
30
|
+
return null;
|
|
31
|
+
if (isVertical) {
|
|
32
|
+
return (_jsx(BarGroupHorizontal, { data: data, keys: overlay.dataKey, width: maxWidth, y0: X0Y0, y0Scale: scaleXY0, y1Scale: scaleXY1, xScale: overlayAxis.scale, color: (_, i) => overlay.colors[i], children: barGroups => barGroups.map((barGroup, i) => {
|
|
33
|
+
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, overlayAxis.scale, maxWidth, isHorizontal);
|
|
34
|
+
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
35
|
+
return (_jsx(Group, { top: barGroup.y0, children: sortedBars.map((bar, j) => {
|
|
36
|
+
const thickness = getBarThickness(bar.height, maxSize, fixedBarSize);
|
|
37
|
+
const { y } = getBarSizeAndPosition(bar, overlayAxis, thickness, isHorizontal);
|
|
38
|
+
const { value, separator, extra } = getBarLabelContent(data[i], bar, overlay.dataKey[j], overlay.extraData);
|
|
39
|
+
const { text } = getBarLabelMorphology(bar, overlay.extraData, { value, separator, extra }, barChartLabelsMaxSize, thickness, { x: undefined, y }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
40
|
+
const weigth = overlay.extraData ? fontWeightValue : fontWeight;
|
|
41
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
42
|
+
}) }, _.uniqueId()));
|
|
43
|
+
}) }));
|
|
44
|
+
}
|
|
45
|
+
return (_jsx(BarGroup, { data: data, keys: overlay.dataKey, height: maxHeight, x0: X0Y0, x0Scale: scaleXY0, x1Scale: scaleXY1, yScale: overlayAxis.scale, color: (_, i) => overlay.colors[i], children: barGroups => barGroups.map((barGroup, i) => {
|
|
46
|
+
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, overlayAxis.scale, maxHeight, isHorizontal);
|
|
47
|
+
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
48
|
+
return (_jsx(Group, { left: barGroup.x0, children: sortedBars.map((bar, j) => {
|
|
49
|
+
const thickness = getBarThickness(bar.width, maxSize, fixedBarSize);
|
|
50
|
+
const { x } = getBarSizeAndPosition(bar, overlayAxis, thickness, isHorizontal);
|
|
51
|
+
const { value, separator, extra } = getBarLabelContent(data[i], bar, overlay.dataKey[j], overlay.extraData);
|
|
52
|
+
const { rect, text } = getBarLabelMorphology(bar, overlay.extraData, { value, separator, extra }, barChartLabelsMaxSize, thickness, { x, y: undefined }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
53
|
+
const weigth = overlay.extraData ? fontWeightValue : fontWeight;
|
|
54
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { wrapper: {
|
|
55
|
+
x: rect.x ?? 0,
|
|
56
|
+
y: rect.y ?? 0,
|
|
57
|
+
width: rect.width,
|
|
58
|
+
}, text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
59
|
+
}) }, _.uniqueId()));
|
|
60
|
+
}) }));
|
|
61
|
+
};
|
|
62
|
+
BarsOverlayLabels.displayName = 'BarOverlayLabels';
|
|
@@ -40,9 +40,9 @@ export const BarsOverlay = () => {
|
|
|
40
40
|
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, overlayAxis.scale, maxWidth, isHorizontal);
|
|
41
41
|
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
42
42
|
return (_jsx(Group, { top: barGroup.y0, children: sortedBars.map((bar) => {
|
|
43
|
-
const { x, width } = getBarSizeAndPosition(bar, overlayAxis, isHorizontal);
|
|
44
43
|
const thickness = getBarThickness(bar.height, maxSize, fixedBarSize);
|
|
45
|
-
|
|
44
|
+
const { x, y, width } = getBarSizeAndPosition(bar, overlayAxis, thickness, isHorizontal);
|
|
45
|
+
return (_jsxs(Group, { children: [hasBackgroundOverlay && (_jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: 0, y: bar.y, width: maxWidth, height: thickness, fill: bgColor, opacity: background.opacity, rx: background.rx })), _jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: x, y: y, width: width, height: thickness, fill: bar.color, rx: barStyle.rx, opacity: barStyle.opacity, onClick: () => ({}) })] }, _.uniqueId()));
|
|
46
46
|
}) }, _.uniqueId()));
|
|
47
47
|
}) }));
|
|
48
48
|
}
|
|
@@ -50,9 +50,9 @@ export const BarsOverlay = () => {
|
|
|
50
50
|
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, overlayAxis.scale, maxHeight, isHorizontal);
|
|
51
51
|
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
52
52
|
return (_jsx(Group, { left: barGroup.x0, children: sortedBars.map((bar) => {
|
|
53
|
-
const { y, height } = getBarSizeAndPosition(bar, overlayAxis, isHorizontal);
|
|
54
53
|
const thickness = getBarThickness(bar.width, maxSize, fixedBarSize);
|
|
55
|
-
|
|
54
|
+
const { x, y, height } = getBarSizeAndPosition(bar, overlayAxis, thickness, isHorizontal);
|
|
55
|
+
return (_jsxs(Group, { children: [hasBackgroundOverlay && (_jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: bar.x, y: 0, width: thickness, height: maxHeight, fill: bgColor, opacity: background.opacity, rx: background.rx })), _jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: x, y: y, width: thickness, height: height, fill: bar.color, opacity: barStyle.opacity, rx: barStyle.rx, onClick: () => ({}) })] }, _.uniqueId()));
|
|
56
56
|
}) }, _.uniqueId()));
|
|
57
57
|
}) }));
|
|
58
58
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-series-labels.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-series-labels.tsx"],"names":[],"mappings":";AAgCA,eAAO,MAAM,gBAAgB;;;CA+J5B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2024 Wonderflow Design Team
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Group } from '@visx/group';
|
|
18
|
+
import { BarGroup, BarGroupHorizontal } from '@visx/shape';
|
|
19
|
+
import _ from 'lodash';
|
|
20
|
+
import { useBars } from '../../../hooks';
|
|
21
|
+
import { extractBarValueFromNestedKey, getBarLabelContent, getBarLabelMorphology, getBarSizeAndPosition, getBarThickness, sortBarsBy, } from '../../../utils';
|
|
22
|
+
import { useStyleConfigContext } from '../../../providers';
|
|
23
|
+
import { BarsLabel } from './bars-label';
|
|
24
|
+
export const BarsSeriesLabels = () => {
|
|
25
|
+
const { bars } = useStyleConfigContext();
|
|
26
|
+
const { barChartLabelsMaxSize, data, isHorizontal, isVertical, fixedBarSize, maxWidth, maxHeight, scaleXY0, scaleXY1, series, showLabel, hasLabel, sortBy, seriesAxis, style, X0Y0, } = useBars();
|
|
27
|
+
const { maxSize } = style;
|
|
28
|
+
const { fontWeight, fontWeightValue } = bars.label;
|
|
29
|
+
if (!hasLabel)
|
|
30
|
+
return null;
|
|
31
|
+
if (isVertical) {
|
|
32
|
+
return (_jsx(BarGroupHorizontal, { data: data, keys: series.dataKey, width: maxWidth, y0: X0Y0, y0Scale: scaleXY0, y1Scale: scaleXY1, xScale: seriesAxis.scale, color: (_, i) => series.colors[i], children: barGroups => barGroups.map((barGroup, i) => {
|
|
33
|
+
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, seriesAxis.scale, maxWidth, isHorizontal);
|
|
34
|
+
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
35
|
+
return (_jsx(Group, { top: barGroup.y0, children: sortedBars.map((bar, j) => {
|
|
36
|
+
const thickness = getBarThickness(bar.height, maxSize, fixedBarSize);
|
|
37
|
+
const { y } = getBarSizeAndPosition(bar, seriesAxis, thickness, isHorizontal);
|
|
38
|
+
const { value, separator, extra } = getBarLabelContent(data[i], bar, series.dataKey[j], series.extraData);
|
|
39
|
+
const { text } = getBarLabelMorphology(bar, series.extraData, { value, separator, extra }, barChartLabelsMaxSize, thickness, { x: undefined, y }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
40
|
+
const weigth = series.extraData ? fontWeightValue : fontWeight;
|
|
41
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
42
|
+
}) }, _.uniqueId()));
|
|
43
|
+
}) }));
|
|
44
|
+
}
|
|
45
|
+
return (_jsx(BarGroup, { data: data, keys: series.dataKey, height: maxHeight, x0: X0Y0, x0Scale: scaleXY0, x1Scale: scaleXY1, yScale: seriesAxis.scale, color: (_, i) => series.colors[i], children: barGroups => barGroups.map((barGroup, i) => {
|
|
46
|
+
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, seriesAxis.scale, maxHeight, isHorizontal);
|
|
47
|
+
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
48
|
+
return (_jsx(Group, { left: barGroup.x0, children: sortedBars.map((bar, j) => {
|
|
49
|
+
const thickness = getBarThickness(bar.width, maxSize, fixedBarSize);
|
|
50
|
+
const { x } = getBarSizeAndPosition(bar, seriesAxis, thickness, isHorizontal);
|
|
51
|
+
const { value, separator, extra } = getBarLabelContent(data[i], bar, series.dataKey[j], series.extraData);
|
|
52
|
+
const { rect, text } = getBarLabelMorphology(bar, series.extraData, { value, separator, extra }, barChartLabelsMaxSize, thickness, { x, y: undefined }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
53
|
+
const weigth = series.extraData ? fontWeightValue : fontWeight;
|
|
54
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { wrapper: {
|
|
55
|
+
x: rect.x ?? 0,
|
|
56
|
+
y: rect.y ?? 0,
|
|
57
|
+
width: rect.width,
|
|
58
|
+
}, text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
59
|
+
}) }, _.uniqueId()));
|
|
60
|
+
}) }));
|
|
61
|
+
};
|
|
62
|
+
BarsSeriesLabels.displayName = 'BarSeriesLabels';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bars-series.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-series.tsx"],"names":[],"mappings":";AA+BA,eAAO,MAAM,UAAU;;;
|
|
1
|
+
{"version":3,"file":"bars-series.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-series.tsx"],"names":[],"mappings":";AA+BA,eAAO,MAAM,UAAU;;;CA6ItB,CAAC"}
|
|
@@ -37,9 +37,9 @@ export const BarsSeries = () => {
|
|
|
37
37
|
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, seriesAxis.scale, maxWidth, isHorizontal);
|
|
38
38
|
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
39
39
|
return (_jsx(Group, { top: barGroup.y0, children: sortedBars.map((bar) => {
|
|
40
|
-
const { x, width } = getBarSizeAndPosition(bar, seriesAxis, isHorizontal);
|
|
41
40
|
const thickness = getBarThickness(bar.height, maxSize, fixedBarSize);
|
|
42
|
-
|
|
41
|
+
const { x, y, width } = getBarSizeAndPosition(bar, seriesAxis, thickness, isHorizontal);
|
|
42
|
+
return (_jsxs(Group, { children: [hasBackgroundSeries && (_jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: 0, y: bar.y, width: maxWidth, height: thickness, fill: bgColor, opacity: background.opacity, rx: background.rx })), _jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: x, y: y, width: width, height: thickness, fill: bar.color, rx: barStyle.rx, opacity: barStyle.opacity, onClick: () => ({}) })] }, _.uniqueId()));
|
|
43
43
|
}) }, _.uniqueId()));
|
|
44
44
|
}) }));
|
|
45
45
|
}
|
|
@@ -47,9 +47,9 @@ export const BarsSeries = () => {
|
|
|
47
47
|
const updatedBars = extractBarValueFromNestedKey(barGroup, i, data, seriesAxis.scale, maxHeight, isHorizontal);
|
|
48
48
|
const sortedBars = sortBarsBy(updatedBars, sortBy, isHorizontal);
|
|
49
49
|
return (_jsx(Group, { left: barGroup.x0, children: sortedBars.map((bar) => {
|
|
50
|
-
const { y, height } = getBarSizeAndPosition(bar, seriesAxis, isHorizontal);
|
|
51
50
|
const thickness = getBarThickness(bar.width, maxSize, fixedBarSize);
|
|
52
|
-
|
|
51
|
+
const { x, y, height } = getBarSizeAndPosition(bar, seriesAxis, thickness, isHorizontal);
|
|
52
|
+
return (_jsxs(Group, { children: [hasBackgroundSeries && (_jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: bar.x, y: 0, width: thickness, height: maxHeight, fill: bgColor, opacity: background.opacity, rx: background.rx })), _jsx(Bar, { className: dynamicClassName(overLegend, bar.key), x: x, y: y, width: thickness, height: height, fill: bar.color, opacity: barStyle.opacity, rx: barStyle.rx, onClick: () => ({}) })] }, _.uniqueId()));
|
|
53
53
|
}) }, _.uniqueId()));
|
|
54
54
|
}) }));
|
|
55
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-stack-overlay-labels.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-stack-overlay-labels.tsx"],"names":[],"mappings":";AAgCA,eAAO,MAAM,sBAAsB;;;CAoJlC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2024 Wonderflow Design Team
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { Group } from '@visx/group';
|
|
18
|
+
import { BarStack, BarStackHorizontal } from '@visx/shape';
|
|
19
|
+
import _ from 'lodash';
|
|
20
|
+
import { useBars } from '../../../hooks';
|
|
21
|
+
import { getPrimitiveFromObjectByPath, getStackBarIndexPositionOverlay, getStackBarLabelContent, getStackBarLabelMorphology, getStackBarThickness, } from '../../../utils';
|
|
22
|
+
import { useStyleConfigContext } from '../../../providers';
|
|
23
|
+
import { BarsLabel } from './bars-label';
|
|
24
|
+
export const BarsStackOverlayLabels = () => {
|
|
25
|
+
const { bars } = useStyleConfigContext();
|
|
26
|
+
const { data, isHorizontal, isVertical, sortStackBy, maxWidth, maxHeight, X0Y0, scaleXY0, style, showLabel, fixedBarSize, scaleColorStackOverlay, scaleStackOverlay, hasOverlay, hasLabel, overlay, } = useBars();
|
|
27
|
+
const { maxSize } = style;
|
|
28
|
+
const { fontWeight, fontWeightValue } = bars.label;
|
|
29
|
+
if (!hasOverlay || !hasLabel)
|
|
30
|
+
return null;
|
|
31
|
+
if (isVertical) {
|
|
32
|
+
return (_jsx(BarStackHorizontal, { data: data, keys: overlay.dataKey, height: maxHeight, y: X0Y0, xScale: scaleStackOverlay, yScale: scaleXY0, color: scaleColorStackOverlay, value: (d, k) => getPrimitiveFromObjectByPath(d, k) ?? 0, order: sortStackBy, offset: "diverging", children: barStacks => barStacks.map((barStack, i) => (_jsx(Group, { children: barStack.bars.map((bar, j) => {
|
|
33
|
+
const thickness = getStackBarThickness(bar.height, maxSize, fixedBarSize, hasOverlay);
|
|
34
|
+
const yPos = getStackBarIndexPositionOverlay(bar, thickness, isHorizontal);
|
|
35
|
+
const { value, separator, extra } = getStackBarLabelContent(data[j], overlay.dataKey, overlay.extraData, i);
|
|
36
|
+
const { rect, text } = getStackBarLabelMorphology(bar, overlay.extraData, { value, separator, extra }, thickness, { x: undefined, y: yPos }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
37
|
+
const weigth = overlay.extraData ? fontWeightValue : fontWeight;
|
|
38
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { wrapper: { ...rect }, text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
39
|
+
}) }, _.uniqueId()))) }));
|
|
40
|
+
}
|
|
41
|
+
return (_jsx(BarStack, { data: data, keys: overlay.dataKey, width: maxWidth, x: X0Y0, xScale: scaleXY0, yScale: scaleStackOverlay, color: scaleColorStackOverlay, value: (d, k) => getPrimitiveFromObjectByPath(d, k) ?? 0, order: sortStackBy, offset: "diverging", children: barStacks => barStacks.map((barStack, i) => (_jsx(Group, { children: barStack.bars.map((bar, j) => {
|
|
42
|
+
const thickness = getStackBarThickness(bar.width, maxSize, fixedBarSize, hasOverlay);
|
|
43
|
+
const xPos = getStackBarIndexPositionOverlay(bar, thickness, isHorizontal);
|
|
44
|
+
const { value, separator, extra } = getStackBarLabelContent(data[j], overlay.dataKey, overlay.extraData, i);
|
|
45
|
+
const { rect, text } = getStackBarLabelMorphology(bar, overlay.extraData, { value, separator, extra }, thickness, { x: xPos, y: undefined }, { xMax: maxWidth, yMax: maxHeight }, isHorizontal);
|
|
46
|
+
const weigth = overlay.extraData ? fontWeightValue : fontWeight;
|
|
47
|
+
return (_jsx(Group, { children: showLabel && (_jsx(BarsLabel, { wrapper: { ...rect }, text: text, value: value, separator: separator, extraData: extra, fontWeightValue: weigth, dataKey: bar.key })) }, _.uniqueId()));
|
|
48
|
+
}) }, _.uniqueId()))) }));
|
|
49
|
+
};
|
|
50
|
+
BarsStackOverlayLabels.displayName = 'BarsStackOverlayLabels';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bars-stack-overlay.d.ts","sourceRoot":"","sources":["../../../../src/components/shapes/bars/bars-stack-overlay.tsx"],"names":[],"mappings":";AA+BA,eAAO,MAAM,gBAAgB;;;CA4I5B,CAAC"}
|