@mui/x-charts-premium 9.0.3 → 9.1.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/BarChartPremium/BarChartPremium.js +2 -1183
- package/BarChartPremium/BarChartPremium.mjs +2 -1183
- package/BarChartPremium/RangeBar/FocusedRangeBar.js +3 -0
- package/BarChartPremium/RangeBar/FocusedRangeBar.mjs +3 -0
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +2 -0
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs +2 -0
- package/CHANGELOG.md +220 -0
- package/CandlestickChart/CandlestickChart.d.mts +2 -2
- package/CandlestickChart/CandlestickChart.d.ts +2 -2
- package/CandlestickChart/CandlestickChart.js +2 -1183
- package/CandlestickChart/CandlestickChart.mjs +2 -1183
- package/CandlestickChart/CandlestickWebGLProgram.d.mts +6 -11
- package/CandlestickChart/CandlestickWebGLProgram.d.ts +6 -11
- package/CandlestickChart/CandlestickWebGLProgram.js +136 -121
- package/CandlestickChart/CandlestickWebGLProgram.mjs +137 -122
- package/CandlestickChart/useCandlestickPlotData.d.mts +2 -2
- package/CandlestickChart/useCandlestickPlotData.d.ts +2 -2
- package/CandlestickChart/useCandlestickPlotData.js +121 -61
- package/CandlestickChart/useCandlestickPlotData.mjs +122 -61
- package/ChartsAxisHighlightValue/index.d.mts +1 -0
- package/ChartsAxisHighlightValue/index.d.ts +1 -0
- package/ChartsAxisHighlightValue/index.js +16 -0
- package/ChartsAxisHighlightValue/index.mjs +2 -0
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsRadialAxisHighlight/index.d.mts +1 -0
- package/ChartsRadialAxisHighlight/index.d.ts +1 -0
- package/ChartsRadialAxisHighlight/index.js +16 -0
- package/ChartsRadialAxisHighlight/index.mjs +2 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- package/HeatmapPremium/HeatmapPremium.js +2 -155
- package/HeatmapPremium/HeatmapPremium.mjs +2 -155
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.js +19 -112
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.mjs +19 -111
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.d.mts +24 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.d.ts +24 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.js +132 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +125 -0
- package/HeatmapPremium/webgl/shaders.d.mts +1 -1
- package/HeatmapPremium/webgl/shaders.d.ts +1 -1
- package/HeatmapPremium/webgl/shaders.js +1 -1
- package/HeatmapPremium/webgl/shaders.mjs +1 -1
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.js +78 -26
- package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +80 -26
- package/LICENSE +3 -1
- package/RadialBarChart/RadialBarChart.d.mts +60 -0
- package/RadialBarChart/RadialBarChart.d.ts +60 -0
- package/RadialBarChart/RadialBarChart.js +298 -0
- package/RadialBarChart/RadialBarChart.mjs +292 -0
- package/RadialBarChart/RadialBarChart.plugins.d.mts +4 -0
- package/RadialBarChart/RadialBarChart.plugins.d.ts +4 -0
- package/RadialBarChart/RadialBarChart.plugins.js +9 -0
- package/RadialBarChart/RadialBarChart.plugins.mjs +3 -0
- package/RadialBarChart/RadialBarElement.d.mts +16 -0
- package/RadialBarChart/RadialBarElement.d.ts +16 -0
- package/RadialBarChart/RadialBarElement.js +54 -0
- package/RadialBarChart/RadialBarElement.mjs +48 -0
- package/RadialBarChart/RadialBarPlot.d.mts +21 -0
- package/RadialBarChart/RadialBarPlot.d.ts +21 -0
- package/RadialBarChart/RadialBarPlot.js +85 -0
- package/RadialBarChart/RadialBarPlot.mjs +79 -0
- package/RadialBarChart/index.d.mts +3 -0
- package/RadialBarChart/index.d.ts +3 -0
- package/RadialBarChart/index.js +39 -0
- package/RadialBarChart/index.mjs +3 -0
- package/RadialBarChart/radialBarClasses.d.mts +15 -0
- package/RadialBarChart/radialBarClasses.d.ts +15 -0
- package/RadialBarChart/radialBarClasses.js +26 -0
- package/RadialBarChart/radialBarClasses.mjs +18 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.js +4 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/RadialBarChart/useRadialBarChartProps.d.mts +28 -0
- package/RadialBarChart/useRadialBarChartProps.d.ts +28 -0
- package/RadialBarChart/useRadialBarChartProps.js +100 -0
- package/RadialBarChart/useRadialBarChartProps.mjs +93 -0
- package/RadialBarChart/useRadialBarPlotData.d.mts +23 -0
- package/RadialBarChart/useRadialBarPlotData.d.ts +23 -0
- package/RadialBarChart/useRadialBarPlotData.js +94 -0
- package/RadialBarChart/useRadialBarPlotData.mjs +87 -0
- package/RadialLineChart/RadialArea.js +13 -1
- package/RadialLineChart/RadialArea.mjs +13 -1
- package/RadialLineChart/RadialLine.js +13 -1
- package/RadialLineChart/RadialLine.mjs +13 -1
- package/RadialLineChart/RadialLineChart.d.mts +11 -3
- package/RadialLineChart/RadialLineChart.d.ts +11 -3
- package/RadialLineChart/RadialLineChart.js +24 -673
- package/RadialLineChart/RadialLineChart.mjs +24 -673
- package/RadialLineChart/RadialLineHighlightElement.d.mts +15 -0
- package/RadialLineChart/RadialLineHighlightElement.d.ts +15 -0
- package/RadialLineChart/RadialLineHighlightElement.js +46 -0
- package/RadialLineChart/RadialLineHighlightElement.mjs +39 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +23 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +23 -0
- package/RadialLineChart/RadialLineHighlightPlot.js +92 -0
- package/RadialLineChart/RadialLineHighlightPlot.mjs +86 -0
- package/RadialLineChart/RadialMarkPlot.js +32 -3
- package/RadialLineChart/RadialMarkPlot.mjs +32 -3
- package/RadialLineChart/index.d.mts +3 -1
- package/RadialLineChart/index.d.ts +3 -1
- package/RadialLineChart/index.js +22 -0
- package/RadialLineChart/index.mjs +3 -1
- package/RadialLineChart/radialLineClasses.d.mts +3 -1
- package/RadialLineChart/radialLineClasses.d.ts +3 -1
- package/RadialLineChart/radialLineClasses.js +2 -1
- package/RadialLineChart/radialLineClasses.mjs +2 -1
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.mts +6 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.ts +6 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.js +353 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +348 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.mjs +2 -1
- package/RadialLineChart/seriesConfig/index.js +2 -1
- package/RadialLineChart/seriesConfig/index.mjs +2 -1
- package/RadialLineChart/seriesConfig/seriesProcessor.js +4 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/RadialLineChart/useRadialLineChartProps.d.mts +2 -0
- package/RadialLineChart/useRadialLineChartProps.d.ts +2 -0
- package/RadialLineChart/useRadialLineChartProps.js +16 -8
- package/RadialLineChart/useRadialLineChartProps.mjs +16 -8
- package/RadialLineChart/useRadialLinePlotData.d.mts +3 -1
- package/RadialLineChart/useRadialLinePlotData.d.ts +3 -1
- package/RadialLineChart/useRadialLinePlotData.js +5 -1
- package/RadialLineChart/useRadialLinePlotData.mjs +6 -2
- package/ScatterChartPremium/ScatterChartPremium.d.mts +25 -0
- package/ScatterChartPremium/ScatterChartPremium.d.ts +25 -0
- package/ScatterChartPremium/ScatterChartPremium.js +507 -0
- package/ScatterChartPremium/ScatterChartPremium.mjs +501 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +3 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +3 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.js +8 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.mjs +2 -0
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +14 -0
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +14 -0
- package/ScatterChartPremium/ScatterPlotPremium.js +28 -0
- package/ScatterChartPremium/ScatterPlotPremium.mjs +21 -0
- package/ScatterChartPremium/index.d.mts +3 -0
- package/ScatterChartPremium/index.d.ts +3 -0
- package/ScatterChartPremium/index.js +26 -0
- package/ScatterChartPremium/index.mjs +3 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.mts +4 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.ts +4 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.js +70 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.mjs +65 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +18 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +18 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +129 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +122 -0
- package/ScatterChartPremium/webgl/shaders.d.mts +2 -0
- package/ScatterChartPremium/webgl/shaders.d.ts +2 -0
- package/ScatterChartPremium/webgl/shaders.js +57 -0
- package/ScatterChartPremium/webgl/shaders.mjs +51 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.d.mts +7 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.d.ts +7 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.js +140 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.mjs +134 -0
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.js +25 -1
- package/index.mjs +4 -2
- package/internals/index.d.mts +1 -0
- package/internals/index.d.ts +1 -0
- package/internals/index.js +13 -0
- package/internals/index.mjs +1 -0
- package/models/seriesType/radialLine.d.mts +7 -1
- package/models/seriesType/radialLine.d.ts +7 -1
- package/package.json +185 -115
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
- package/utils/webgl/parseColor.d.mts +2 -1
- package/utils/webgl/parseColor.d.ts +2 -1
- package/utils/webgl/parseColor.js +8 -7
- package/utils/webgl/parseColor.mjs +8 -7
- package/utils/webgl/utils.d.mts +13 -0
- package/utils/webgl/utils.d.ts +13 -0
- package/utils/webgl/utils.js +29 -0
- package/utils/webgl/utils.mjs +27 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.RadialBarElement = RadialBarElement;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
|
+
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
15
|
+
var _styles = require("@mui/material/styles");
|
|
16
|
+
var _radialBarClasses = require("./radialBarClasses");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
const _excluded = ["seriesId", "dataIndex", "color", "startAngle", "endAngle", "innerRadius", "outerRadius", "className", "classes", "onClick"];
|
|
19
|
+
const RadialBarElementRoot = (0, _styles.styled)('path', {
|
|
20
|
+
name: 'MuiRadialBarElement',
|
|
21
|
+
slot: 'Root'
|
|
22
|
+
})();
|
|
23
|
+
function RadialBarElement(props) {
|
|
24
|
+
const {
|
|
25
|
+
dataIndex,
|
|
26
|
+
color,
|
|
27
|
+
startAngle,
|
|
28
|
+
endAngle,
|
|
29
|
+
innerRadius,
|
|
30
|
+
outerRadius,
|
|
31
|
+
className,
|
|
32
|
+
classes: innerClasses,
|
|
33
|
+
onClick
|
|
34
|
+
} = props,
|
|
35
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
36
|
+
const classes = (0, _radialBarClasses.useUtilityClasses)({
|
|
37
|
+
classes: innerClasses
|
|
38
|
+
});
|
|
39
|
+
const d = (0, _d3Shape.arc)()({
|
|
40
|
+
startAngle,
|
|
41
|
+
endAngle,
|
|
42
|
+
innerRadius,
|
|
43
|
+
outerRadius
|
|
44
|
+
});
|
|
45
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadialBarElementRoot, (0, _extends2.default)({
|
|
46
|
+
className: (0, _clsx.default)(classes.element, className),
|
|
47
|
+
d: d ?? undefined,
|
|
48
|
+
fill: color,
|
|
49
|
+
stroke: "none",
|
|
50
|
+
onClick: onClick,
|
|
51
|
+
cursor: onClick ? 'pointer' : undefined,
|
|
52
|
+
"data-index": dataIndex
|
|
53
|
+
}, other));
|
|
54
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["seriesId", "dataIndex", "color", "startAngle", "endAngle", "innerRadius", "outerRadius", "className", "classes", "onClick"];
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { arc as d3Arc } from '@mui/x-charts-vendor/d3-shape';
|
|
9
|
+
import { styled } from '@mui/material/styles';
|
|
10
|
+
import { useUtilityClasses } from "./radialBarClasses.mjs";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const RadialBarElementRoot = styled('path', {
|
|
13
|
+
name: 'MuiRadialBarElement',
|
|
14
|
+
slot: 'Root'
|
|
15
|
+
})();
|
|
16
|
+
function RadialBarElement(props) {
|
|
17
|
+
const {
|
|
18
|
+
dataIndex,
|
|
19
|
+
color,
|
|
20
|
+
startAngle,
|
|
21
|
+
endAngle,
|
|
22
|
+
innerRadius,
|
|
23
|
+
outerRadius,
|
|
24
|
+
className,
|
|
25
|
+
classes: innerClasses,
|
|
26
|
+
onClick
|
|
27
|
+
} = props,
|
|
28
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
29
|
+
const classes = useUtilityClasses({
|
|
30
|
+
classes: innerClasses
|
|
31
|
+
});
|
|
32
|
+
const d = d3Arc()({
|
|
33
|
+
startAngle,
|
|
34
|
+
endAngle,
|
|
35
|
+
innerRadius,
|
|
36
|
+
outerRadius
|
|
37
|
+
});
|
|
38
|
+
return /*#__PURE__*/_jsx(RadialBarElementRoot, _extends({
|
|
39
|
+
className: clsx(classes.element, className),
|
|
40
|
+
d: d ?? undefined,
|
|
41
|
+
fill: color,
|
|
42
|
+
stroke: "none",
|
|
43
|
+
onClick: onClick,
|
|
44
|
+
cursor: onClick ? 'pointer' : undefined,
|
|
45
|
+
"data-index": dataIndex
|
|
46
|
+
}, other));
|
|
47
|
+
}
|
|
48
|
+
export { RadialBarElement };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RadialBarPlotProps {
|
|
3
|
+
/**
|
|
4
|
+
* A CSS class name applied to the root element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Demos:
|
|
10
|
+
*
|
|
11
|
+
* - [Radial bar demonstration](https://mui.com/x/react-charts/radial-bars/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [RadialBarPlot API](https://mui.com/x/api/charts/radial-bar-plot/)
|
|
16
|
+
*/
|
|
17
|
+
declare function RadialBarPlot(props: RadialBarPlotProps): React.JSX.Element;
|
|
18
|
+
declare namespace RadialBarPlot {
|
|
19
|
+
var propTypes: any;
|
|
20
|
+
}
|
|
21
|
+
export { RadialBarPlot };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RadialBarPlotProps {
|
|
3
|
+
/**
|
|
4
|
+
* A CSS class name applied to the root element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Demos:
|
|
10
|
+
*
|
|
11
|
+
* - [Radial bar demonstration](https://mui.com/x/react-charts/radial-bars/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [RadialBarPlot API](https://mui.com/x/api/charts/radial-bar-plot/)
|
|
16
|
+
*/
|
|
17
|
+
declare function RadialBarPlot(props: RadialBarPlotProps): React.JSX.Element;
|
|
18
|
+
declare namespace RadialBarPlot {
|
|
19
|
+
var propTypes: any;
|
|
20
|
+
}
|
|
21
|
+
export { RadialBarPlot };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.RadialBarPlot = RadialBarPlot;
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
|
+
var _styles = require("@mui/material/styles");
|
|
14
|
+
var _internals = require("@mui/x-charts/internals");
|
|
15
|
+
var _radialBarClasses = require("./radialBarClasses");
|
|
16
|
+
var _useRadialBarPlotData = require("./useRadialBarPlotData");
|
|
17
|
+
var _RadialBarElement = require("./RadialBarElement");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const RadialBarPlotRoot = (0, _styles.styled)('g', {
|
|
20
|
+
name: 'MuiRadialBarPlot',
|
|
21
|
+
slot: 'Root'
|
|
22
|
+
})();
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Demos:
|
|
26
|
+
*
|
|
27
|
+
* - [Radial bar demonstration](https://mui.com/x/react-charts/radial-bars/)
|
|
28
|
+
*
|
|
29
|
+
* API:
|
|
30
|
+
*
|
|
31
|
+
* - [RadialBarPlot API](https://mui.com/x/api/charts/radial-bar-plot/)
|
|
32
|
+
*/
|
|
33
|
+
function RadialBarPlot(props) {
|
|
34
|
+
const {
|
|
35
|
+
className
|
|
36
|
+
} = props;
|
|
37
|
+
const {
|
|
38
|
+
completedData
|
|
39
|
+
} = (0, _useRadialBarPlotData.useRadialBarPlotData)();
|
|
40
|
+
const {
|
|
41
|
+
store
|
|
42
|
+
} = (0, _internals.useChartsContext)();
|
|
43
|
+
const {
|
|
44
|
+
cx,
|
|
45
|
+
cy
|
|
46
|
+
} = store.use(_internals.selectorChartPolarCenter);
|
|
47
|
+
const classes = (0, _radialBarClasses.useUtilityClasses)();
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadialBarPlotRoot, {
|
|
49
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
50
|
+
transform: `translate(${cx} ${cy})`,
|
|
51
|
+
children: completedData.map(({
|
|
52
|
+
seriesId,
|
|
53
|
+
data
|
|
54
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
55
|
+
"data-series": seriesId,
|
|
56
|
+
className: classes.series,
|
|
57
|
+
children: data.map(({
|
|
58
|
+
dataIndex,
|
|
59
|
+
color,
|
|
60
|
+
startAngle,
|
|
61
|
+
endAngle,
|
|
62
|
+
innerRadius,
|
|
63
|
+
outerRadius
|
|
64
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialBarElement.RadialBarElement, {
|
|
65
|
+
seriesId: seriesId,
|
|
66
|
+
dataIndex: dataIndex,
|
|
67
|
+
color: color,
|
|
68
|
+
startAngle: startAngle,
|
|
69
|
+
endAngle: endAngle,
|
|
70
|
+
innerRadius: innerRadius,
|
|
71
|
+
outerRadius: outerRadius
|
|
72
|
+
}, dataIndex))
|
|
73
|
+
}, seriesId))
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
|
|
77
|
+
// ----------------------------- Warning --------------------------------
|
|
78
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
79
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
80
|
+
// ----------------------------------------------------------------------
|
|
81
|
+
/**
|
|
82
|
+
* A CSS class name applied to the root element.
|
|
83
|
+
*/
|
|
84
|
+
className: _propTypes.default.string
|
|
85
|
+
} : void 0;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { styled } from '@mui/material/styles';
|
|
7
|
+
import { selectorChartPolarCenter, useChartsContext } from '@mui/x-charts/internals';
|
|
8
|
+
import { useUtilityClasses } from "./radialBarClasses.mjs";
|
|
9
|
+
import { useRadialBarPlotData } from "./useRadialBarPlotData.mjs";
|
|
10
|
+
import { RadialBarElement } from "./RadialBarElement.mjs";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const RadialBarPlotRoot = styled('g', {
|
|
13
|
+
name: 'MuiRadialBarPlot',
|
|
14
|
+
slot: 'Root'
|
|
15
|
+
})();
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Demos:
|
|
19
|
+
*
|
|
20
|
+
* - [Radial bar demonstration](https://mui.com/x/react-charts/radial-bars/)
|
|
21
|
+
*
|
|
22
|
+
* API:
|
|
23
|
+
*
|
|
24
|
+
* - [RadialBarPlot API](https://mui.com/x/api/charts/radial-bar-plot/)
|
|
25
|
+
*/
|
|
26
|
+
function RadialBarPlot(props) {
|
|
27
|
+
const {
|
|
28
|
+
className
|
|
29
|
+
} = props;
|
|
30
|
+
const {
|
|
31
|
+
completedData
|
|
32
|
+
} = useRadialBarPlotData();
|
|
33
|
+
const {
|
|
34
|
+
store
|
|
35
|
+
} = useChartsContext();
|
|
36
|
+
const {
|
|
37
|
+
cx,
|
|
38
|
+
cy
|
|
39
|
+
} = store.use(selectorChartPolarCenter);
|
|
40
|
+
const classes = useUtilityClasses();
|
|
41
|
+
return /*#__PURE__*/_jsx(RadialBarPlotRoot, {
|
|
42
|
+
className: clsx(classes.root, className),
|
|
43
|
+
transform: `translate(${cx} ${cy})`,
|
|
44
|
+
children: completedData.map(({
|
|
45
|
+
seriesId,
|
|
46
|
+
data
|
|
47
|
+
}) => /*#__PURE__*/_jsx("g", {
|
|
48
|
+
"data-series": seriesId,
|
|
49
|
+
className: classes.series,
|
|
50
|
+
children: data.map(({
|
|
51
|
+
dataIndex,
|
|
52
|
+
color,
|
|
53
|
+
startAngle,
|
|
54
|
+
endAngle,
|
|
55
|
+
innerRadius,
|
|
56
|
+
outerRadius
|
|
57
|
+
}) => /*#__PURE__*/_jsx(RadialBarElement, {
|
|
58
|
+
seriesId: seriesId,
|
|
59
|
+
dataIndex: dataIndex,
|
|
60
|
+
color: color,
|
|
61
|
+
startAngle: startAngle,
|
|
62
|
+
endAngle: endAngle,
|
|
63
|
+
innerRadius: innerRadius,
|
|
64
|
+
outerRadius: outerRadius
|
|
65
|
+
}, dataIndex))
|
|
66
|
+
}, seriesId))
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
|
|
70
|
+
// ----------------------------- Warning --------------------------------
|
|
71
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
73
|
+
// ----------------------------------------------------------------------
|
|
74
|
+
/**
|
|
75
|
+
* A CSS class name applied to the root element.
|
|
76
|
+
*/
|
|
77
|
+
className: PropTypes.string
|
|
78
|
+
} : void 0;
|
|
79
|
+
export { RadialBarPlot };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
radialBarClasses: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "radialBarClasses", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _radialBarClasses.radialBarClasses;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var _RadialBarChart = require("./RadialBarChart");
|
|
16
|
+
Object.keys(_RadialBarChart).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _RadialBarChart[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _RadialBarChart[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
var _RadialBarPlot = require("./RadialBarPlot");
|
|
28
|
+
Object.keys(_RadialBarPlot).forEach(function (key) {
|
|
29
|
+
if (key === "default" || key === "__esModule") return;
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
+
if (key in exports && exports[key] === _RadialBarPlot[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _RadialBarPlot[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _radialBarClasses = require("./radialBarClasses");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RadialBarClasses {
|
|
2
|
+
/** Styles applied to the bar plot element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the group surrounding a series' bar elements. */
|
|
5
|
+
series: string;
|
|
6
|
+
/** Styles applied to an individual bar element. */
|
|
7
|
+
element: string;
|
|
8
|
+
}
|
|
9
|
+
export type RadialBarClassKey = keyof RadialBarClasses;
|
|
10
|
+
export declare const radialBarClasses: RadialBarClasses;
|
|
11
|
+
interface UseUtilityClassesOptions {
|
|
12
|
+
classes?: Partial<RadialBarClasses>;
|
|
13
|
+
}
|
|
14
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"series" | "root" | "element", string>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RadialBarClasses {
|
|
2
|
+
/** Styles applied to the bar plot element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the group surrounding a series' bar elements. */
|
|
5
|
+
series: string;
|
|
6
|
+
/** Styles applied to an individual bar element. */
|
|
7
|
+
element: string;
|
|
8
|
+
}
|
|
9
|
+
export type RadialBarClassKey = keyof RadialBarClasses;
|
|
10
|
+
export declare const radialBarClasses: RadialBarClasses;
|
|
11
|
+
interface UseUtilityClassesOptions {
|
|
12
|
+
classes?: Partial<RadialBarClasses>;
|
|
13
|
+
}
|
|
14
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"series" | "root" | "element", string>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useUtilityClasses = exports.radialBarClasses = void 0;
|
|
8
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
9
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
10
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
11
|
+
function getRadialBarUtilityClass(slot) {
|
|
12
|
+
return (0, _generateUtilityClass.default)('MuiRadialBarChart', slot);
|
|
13
|
+
}
|
|
14
|
+
const radialBarClasses = exports.radialBarClasses = (0, _generateUtilityClasses.default)('MuiRadialBarChart', ['root', 'series', 'element']);
|
|
15
|
+
const useUtilityClasses = options => {
|
|
16
|
+
const {
|
|
17
|
+
classes
|
|
18
|
+
} = options ?? {};
|
|
19
|
+
const slots = {
|
|
20
|
+
root: ['root'],
|
|
21
|
+
series: ['series'],
|
|
22
|
+
element: ['element']
|
|
23
|
+
};
|
|
24
|
+
return (0, _composeClasses.default)(slots, getRadialBarUtilityClass, classes);
|
|
25
|
+
};
|
|
26
|
+
exports.useUtilityClasses = useUtilityClasses;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
function getRadialBarUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiRadialBarChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const radialBarClasses = generateUtilityClasses('MuiRadialBarChart', ['root', 'series', 'element']);
|
|
8
|
+
export const useUtilityClasses = options => {
|
|
9
|
+
const {
|
|
10
|
+
classes
|
|
11
|
+
} = options ?? {};
|
|
12
|
+
const slots = {
|
|
13
|
+
root: ['root'],
|
|
14
|
+
series: ['series'],
|
|
15
|
+
element: ['element']
|
|
16
|
+
};
|
|
17
|
+
return composeClasses(slots, getRadialBarUtilityClass, classes);
|
|
18
|
+
};
|
|
@@ -45,12 +45,16 @@ function seriesProcessor(params, dataset, isItemVisible) {
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
48
|
+
// TODO: fix mui/no-guarded-throw
|
|
49
|
+
// eslint-disable-next-line mui/no-guarded-throw
|
|
48
50
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Radial bar series with id="${id}" has no data. ` + 'The chart cannot render this series without data. ' + 'Provide a data property to the series or use the dataset prop.' : (0, _formatErrorMessage2.default)(269, id));
|
|
49
51
|
}
|
|
50
52
|
if (process.env.NODE_ENV !== 'production') {
|
|
51
53
|
if (!data && dataset) {
|
|
52
54
|
const dataKey = series[id].dataKey;
|
|
53
55
|
if (!dataKey && !series[id].valueGetter) {
|
|
56
|
+
// TODO: fix mui/no-guarded-throw
|
|
57
|
+
// eslint-disable-next-line mui/no-guarded-throw
|
|
54
58
|
throw new Error(`MUI X Charts: Radial bar series with id="${id}" has no data, no dataKey, and no valueGetter. ` + 'When using the dataset prop, each series must have a dataKey or valueGetter to identify which dataset values to use. ' + 'Add a dataKey or valueGetter property to the series configuration.');
|
|
55
59
|
}
|
|
56
60
|
if (dataKey) {
|
|
@@ -38,12 +38,16 @@ function seriesProcessor(params, dataset, isItemVisible) {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
41
|
+
// TODO: fix mui/no-guarded-throw
|
|
42
|
+
// eslint-disable-next-line mui/no-guarded-throw
|
|
41
43
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Radial bar series with id="${id}" has no data. ` + 'The chart cannot render this series without data. ' + 'Provide a data property to the series or use the dataset prop.' : _formatErrorMessage(269, id));
|
|
42
44
|
}
|
|
43
45
|
if (process.env.NODE_ENV !== 'production') {
|
|
44
46
|
if (!data && dataset) {
|
|
45
47
|
const dataKey = series[id].dataKey;
|
|
46
48
|
if (!dataKey && !series[id].valueGetter) {
|
|
49
|
+
// TODO: fix mui/no-guarded-throw
|
|
50
|
+
// eslint-disable-next-line mui/no-guarded-throw
|
|
47
51
|
throw new Error(`MUI X Charts: Radial bar series with id="${id}" has no data, no dataKey, and no valueGetter. ` + 'When using the dataset prop, each series must have a dataKey or valueGetter to identify which dataset values to use. ' + 'Add a dataKey or valueGetter property to the series configuration.');
|
|
48
52
|
}
|
|
49
53
|
if (dataKey) {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ChartsClipPathProps } from "../ChartsClipPath/index.mjs";
|
|
3
|
+
import { type ChartsRadialGridProps } from "../ChartsRadialGrid/index.mjs";
|
|
4
|
+
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.mjs";
|
|
5
|
+
import { type ChartsOverlayProps } from "../ChartsOverlay/index.mjs";
|
|
6
|
+
import { type ChartsRadialDataProviderProps } from "../ChartsRadialDataProvider/index.mjs";
|
|
7
|
+
import type { RadialBarChartProps } from "./RadialBarChart.mjs";
|
|
8
|
+
import type { ChartsWrapperProps } from "../ChartsWrapper/index.mjs";
|
|
9
|
+
import { type RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.mjs";
|
|
10
|
+
/**
|
|
11
|
+
* A helper function that extracts RadialBarChartProps from the input props
|
|
12
|
+
* and returns an object with props for the children components of RadialBarChart.
|
|
13
|
+
*
|
|
14
|
+
* @param props The input props for RadialBarChart
|
|
15
|
+
* @returns An object with props for the children components of RadialBarChart
|
|
16
|
+
*/
|
|
17
|
+
export declare const useRadialBarChartProps: (props: RadialBarChartProps) => {
|
|
18
|
+
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
19
|
+
chartsContainerProps: ChartsRadialDataProviderProps<"radialBar", RadialBarChartPluginSignatures>;
|
|
20
|
+
gridProps: ChartsRadialGridProps | undefined;
|
|
21
|
+
clipPathProps: ChartsClipPathProps;
|
|
22
|
+
clipPathGroupProps: {
|
|
23
|
+
clipPath: string;
|
|
24
|
+
};
|
|
25
|
+
overlayProps: ChartsOverlayProps;
|
|
26
|
+
legendProps: ChartsLegendSlotExtension;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ChartsClipPathProps } from "../ChartsClipPath/index.js";
|
|
3
|
+
import { type ChartsRadialGridProps } from "../ChartsRadialGrid/index.js";
|
|
4
|
+
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
5
|
+
import { type ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
6
|
+
import { type ChartsRadialDataProviderProps } from "../ChartsRadialDataProvider/index.js";
|
|
7
|
+
import type { RadialBarChartProps } from "./RadialBarChart.js";
|
|
8
|
+
import type { ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
9
|
+
import { type RadialBarChartPluginSignatures } from "./RadialBarChart.plugins.js";
|
|
10
|
+
/**
|
|
11
|
+
* A helper function that extracts RadialBarChartProps from the input props
|
|
12
|
+
* and returns an object with props for the children components of RadialBarChart.
|
|
13
|
+
*
|
|
14
|
+
* @param props The input props for RadialBarChart
|
|
15
|
+
* @returns An object with props for the children components of RadialBarChart
|
|
16
|
+
*/
|
|
17
|
+
export declare const useRadialBarChartProps: (props: RadialBarChartProps) => {
|
|
18
|
+
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
19
|
+
chartsContainerProps: ChartsRadialDataProviderProps<"radialBar", RadialBarChartPluginSignatures>;
|
|
20
|
+
gridProps: ChartsRadialGridProps | undefined;
|
|
21
|
+
clipPathProps: ChartsClipPathProps;
|
|
22
|
+
clipPathGroupProps: {
|
|
23
|
+
clipPath: string;
|
|
24
|
+
};
|
|
25
|
+
overlayProps: ChartsOverlayProps;
|
|
26
|
+
legendProps: ChartsLegendSlotExtension;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.useRadialBarChartProps = void 0;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
14
|
+
var _RadialBarChart = require("./RadialBarChart.plugins");
|
|
15
|
+
var _constants = require("../constants");
|
|
16
|
+
const _excluded = ["rotationAxis", "radiusAxis", "series", "width", "height", "margin", "colors", "dataset", "hideLegend", "grid", "children", "slots", "slotProps", "skipAnimation", "loading", "showToolbar"];
|
|
17
|
+
/**
|
|
18
|
+
* A helper function that extracts RadialBarChartProps from the input props
|
|
19
|
+
* and returns an object with props for the children components of RadialBarChart.
|
|
20
|
+
*
|
|
21
|
+
* @param props The input props for RadialBarChart
|
|
22
|
+
* @returns An object with props for the children components of RadialBarChart
|
|
23
|
+
*/
|
|
24
|
+
const useRadialBarChartProps = props => {
|
|
25
|
+
const {
|
|
26
|
+
rotationAxis,
|
|
27
|
+
radiusAxis,
|
|
28
|
+
series,
|
|
29
|
+
width,
|
|
30
|
+
height,
|
|
31
|
+
margin,
|
|
32
|
+
colors,
|
|
33
|
+
dataset,
|
|
34
|
+
grid,
|
|
35
|
+
children,
|
|
36
|
+
slots,
|
|
37
|
+
slotProps,
|
|
38
|
+
skipAnimation,
|
|
39
|
+
loading
|
|
40
|
+
} = props,
|
|
41
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
42
|
+
const id = (0, _useId.default)();
|
|
43
|
+
const clipPathId = `${id}-clip-path`;
|
|
44
|
+
const seriesWithDefault = React.useMemo(() => series.map(s => (0, _extends2.default)({
|
|
45
|
+
type: 'radialBar'
|
|
46
|
+
}, s)), [series]);
|
|
47
|
+
const defaultRotationAxis = React.useMemo(() => {
|
|
48
|
+
return [{
|
|
49
|
+
id: _constants.DEFAULT_ROTATION_AXIS_KEY,
|
|
50
|
+
scaleType: 'band',
|
|
51
|
+
data: Array.from({
|
|
52
|
+
length: Math.max(...series.map(s => (s.data ?? dataset ?? []).length))
|
|
53
|
+
}, (_, index) => index)
|
|
54
|
+
}];
|
|
55
|
+
}, [series, dataset]);
|
|
56
|
+
const chartsContainerProps = (0, _extends2.default)({}, other, {
|
|
57
|
+
series: seriesWithDefault,
|
|
58
|
+
width,
|
|
59
|
+
height,
|
|
60
|
+
margin,
|
|
61
|
+
colors,
|
|
62
|
+
dataset,
|
|
63
|
+
rotationAxis: rotationAxis ?? defaultRotationAxis,
|
|
64
|
+
radiusAxis,
|
|
65
|
+
skipAnimation,
|
|
66
|
+
plugins: _RadialBarChart.RADIAL_BAR_CHART_PLUGINS
|
|
67
|
+
});
|
|
68
|
+
const gridProps = grid;
|
|
69
|
+
const clipPathGroupProps = {
|
|
70
|
+
clipPath: `url(#${clipPathId})`
|
|
71
|
+
};
|
|
72
|
+
const clipPathProps = {
|
|
73
|
+
id: clipPathId
|
|
74
|
+
};
|
|
75
|
+
const overlayProps = {
|
|
76
|
+
slots,
|
|
77
|
+
slotProps,
|
|
78
|
+
loading
|
|
79
|
+
};
|
|
80
|
+
const legendProps = {
|
|
81
|
+
slots,
|
|
82
|
+
slotProps
|
|
83
|
+
};
|
|
84
|
+
const chartsWrapperProps = {
|
|
85
|
+
legendPosition: props.slotProps?.legend?.position,
|
|
86
|
+
legendDirection: props.slotProps?.legend?.direction,
|
|
87
|
+
hideLegend: props.hideLegend ?? false
|
|
88
|
+
};
|
|
89
|
+
return {
|
|
90
|
+
chartsWrapperProps,
|
|
91
|
+
chartsContainerProps,
|
|
92
|
+
gridProps,
|
|
93
|
+
clipPathProps,
|
|
94
|
+
clipPathGroupProps,
|
|
95
|
+
overlayProps,
|
|
96
|
+
legendProps,
|
|
97
|
+
children
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
exports.useRadialBarChartProps = useRadialBarChartProps;
|