@mui/x-charts-premium 9.1.0 → 9.3.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.d.mts +4 -1
- package/BarChartPremium/BarChartPremium.d.ts +4 -1
- package/BarChartPremium/BarChartPremium.js +51 -38
- package/BarChartPremium/BarChartPremium.mjs +52 -39
- package/BarChartPremium/BarPlotPremium.d.mts +37 -0
- package/BarChartPremium/BarPlotPremium.d.ts +37 -0
- package/BarChartPremium/BarPlotPremium.js +78 -0
- package/BarChartPremium/BarPlotPremium.mjs +72 -0
- package/BarChartPremium/RangeBar/useUtilityClasses.d.mts +1 -1
- package/BarChartPremium/RangeBar/useUtilityClasses.d.ts +1 -1
- package/BarChartPremium/index.d.mts +1 -0
- package/BarChartPremium/index.d.ts +1 -0
- package/BarChartPremium/index.js +12 -0
- package/BarChartPremium/index.mjs +1 -0
- package/BarChartPremium/useBarChartPremiumProps.d.mts +2 -1
- package/BarChartPremium/useBarChartPremiumProps.d.ts +2 -1
- package/BarChartPremium/useBarChartPremiumProps.js +39 -5
- package/BarChartPremium/useBarChartPremiumProps.mjs +39 -5
- package/BarChartPremium/webgl/BarWebGLPlot.d.mts +10 -0
- package/BarChartPremium/webgl/BarWebGLPlot.d.ts +10 -0
- package/BarChartPremium/webgl/BarWebGLPlot.js +81 -0
- package/BarChartPremium/webgl/BarWebGLPlot.mjs +75 -0
- package/BarChartPremium/webgl/BarWebGLProgram.d.mts +19 -0
- package/BarChartPremium/webgl/BarWebGLProgram.d.ts +19 -0
- package/BarChartPremium/webgl/BarWebGLProgram.js +107 -0
- package/BarChartPremium/webgl/BarWebGLProgram.mjs +100 -0
- package/BarChartPremium/webgl/shaders.d.mts +2 -0
- package/BarChartPremium/webgl/shaders.d.ts +2 -0
- package/BarChartPremium/webgl/shaders.js +69 -0
- package/BarChartPremium/webgl/shaders.mjs +63 -0
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +10 -0
- package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +10 -0
- package/BarChartPremium/webgl/useBarWebGLPlotData.js +160 -0
- package/BarChartPremium/webgl/useBarWebGLPlotData.mjs +154 -0
- package/CHANGELOG.md +221 -0
- package/CandlestickChart/CandlestickChart.js +25 -25
- package/CandlestickChart/CandlestickChart.mjs +25 -25
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +9 -3
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +9 -3
- package/HeatmapPremium/HeatmapPremium.js +20 -20
- package/HeatmapPremium/HeatmapPremium.mjs +20 -20
- package/RadialBarChart/RadialBarChart.d.mts +7 -0
- package/RadialBarChart/RadialBarChart.d.ts +7 -0
- package/RadialBarChart/RadialBarChart.js +25 -12
- package/RadialBarChart/RadialBarChart.mjs +25 -12
- package/RadialBarChart/RadialBarElement.js +15 -1
- package/RadialBarChart/RadialBarElement.mjs +15 -1
- package/RadialBarChart/radialBarClasses.d.mts +1 -1
- package/RadialBarChart/radialBarClasses.d.ts +1 -1
- package/RadialBarChart/seriesConfig/axisTooltipGetter.js +5 -2
- package/RadialBarChart/seriesConfig/axisTooltipGetter.mjs +5 -2
- package/RadialBarChart/seriesConfig/getColor.js +7 -51
- package/RadialBarChart/seriesConfig/getColor.mjs +8 -52
- package/RadialBarChart/seriesConfig/getItemAtPosition.d.mts +6 -0
- package/RadialBarChart/seriesConfig/getItemAtPosition.d.ts +6 -0
- package/RadialBarChart/seriesConfig/getItemAtPosition.js +69 -0
- package/RadialBarChart/seriesConfig/getItemAtPosition.mjs +63 -0
- package/RadialBarChart/seriesConfig/index.js +2 -1
- package/RadialBarChart/seriesConfig/index.mjs +2 -1
- package/RadialBarChart/seriesConfig/tooltip.js +3 -26
- package/RadialBarChart/seriesConfig/tooltip.mjs +4 -27
- package/RadialBarChart/useRadialBarChartProps.d.mts +2 -0
- package/RadialBarChart/useRadialBarChartProps.d.ts +2 -0
- package/RadialBarChart/useRadialBarChartProps.js +10 -2
- package/RadialBarChart/useRadialBarChartProps.mjs +10 -2
- package/RadialLineChart/RadialArea.d.mts +2 -11
- package/RadialLineChart/RadialArea.d.ts +2 -11
- package/RadialLineChart/RadialArea.js +4 -3
- package/RadialLineChart/RadialArea.mjs +4 -3
- package/RadialLineChart/RadialAreaPlot.js +3 -1
- package/RadialLineChart/RadialAreaPlot.mjs +3 -1
- package/RadialLineChart/RadialLine.d.mts +4 -3
- package/RadialLineChart/RadialLine.d.ts +4 -3
- package/RadialLineChart/RadialLine.js +4 -3
- package/RadialLineChart/RadialLine.mjs +4 -3
- package/RadialLineChart/RadialLineChart.d.mts +7 -5
- package/RadialLineChart/RadialLineChart.d.ts +7 -5
- package/RadialLineChart/RadialLineChart.js +15 -13
- package/RadialLineChart/RadialLineChart.mjs +15 -13
- package/RadialLineChart/RadialLineChart.plugins.d.mts +1 -1
- package/RadialLineChart/RadialLineChart.plugins.d.ts +1 -1
- package/RadialLineChart/RadialLineChart.plugins.js +1 -1
- package/RadialLineChart/RadialLineChart.plugins.mjs +1 -1
- package/RadialLineChart/RadialLinePlot.js +3 -1
- package/RadialLineChart/RadialLinePlot.mjs +3 -1
- package/RadialLineChart/seriesConfig/getColor.js +6 -53
- package/RadialLineChart/seriesConfig/getColor.mjs +7 -54
- package/RadialLineChart/seriesConfig/getItemAtPosition.js +3 -3
- package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +4 -4
- package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +2 -2
- package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +2 -2
- package/RadialLineChart/seriesConfig/seriesProcessor.js +1 -138
- package/RadialLineChart/seriesConfig/seriesProcessor.mjs +2 -138
- package/RadialLineChart/seriesConfig/tooltip.js +3 -24
- package/RadialLineChart/seriesConfig/tooltip.mjs +4 -25
- package/RadialLineChart/useRadialLinePlotData.d.mts +1 -0
- package/RadialLineChart/useRadialLinePlotData.d.ts +1 -0
- package/RadialLineChart/useRadialLinePlotData.js +3 -1
- package/RadialLineChart/useRadialLinePlotData.mjs +3 -1
- package/ScatterChartPremium/ScatterChartPremium.js +30 -30
- package/ScatterChartPremium/ScatterChartPremium.mjs +30 -30
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/models/seriesType/radialBar.d.mts +1 -1
- package/models/seriesType/radialBar.d.ts +1 -1
- package/models/seriesType/radialLine.d.mts +4 -0
- package/models/seriesType/radialLine.d.ts +4 -0
- package/package.json +126 -126
|
@@ -13,6 +13,8 @@ var _styles = require("@mui/material/styles");
|
|
|
13
13
|
var _internals = require("@mui/x-charts/internals");
|
|
14
14
|
var _ChartsRadialGrid = require("@mui/x-charts/ChartsRadialGrid");
|
|
15
15
|
var _ChartsRadialAxisHighlight = require("@mui/x-charts/ChartsRadialAxisHighlight");
|
|
16
|
+
var _ChartsRadiusAxis = require("@mui/x-charts/ChartsRadiusAxis");
|
|
17
|
+
var _ChartsRotationAxis = require("@mui/x-charts/ChartsRotationAxis");
|
|
16
18
|
var _ChartsLegend = require("../ChartsLegend");
|
|
17
19
|
var _ChartsSurface = require("../ChartsSurface");
|
|
18
20
|
var _ChartsTooltip = require("../ChartsTooltip");
|
|
@@ -69,7 +71,7 @@ const RadialLineChart = exports.Unstable_RadialLineChart = /*#__PURE__*/React.fo
|
|
|
69
71
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
70
72
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialGrid.Unstable_ChartsRadialGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
71
73
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialAreaPlot.RadialAreaPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLinePlot.RadialLinePlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps))]
|
|
72
|
-
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.Unstable_ChartsRadialAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialMarkPlot.RadialMarkPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLineHighlightPlot.RadialLineHighlightPlot, {
|
|
74
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.Unstable_ChartsRadialAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRotationAxis.Unstable_ChartsRotationAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadiusAxis.Unstable_ChartsRadiusAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialMarkPlot.RadialMarkPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLineHighlightPlot.RadialLineHighlightPlot, {
|
|
73
75
|
slots: props.slots,
|
|
74
76
|
slotProps: props.slotProps
|
|
75
77
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
|
|
@@ -95,7 +97,7 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
95
97
|
* @default { rotation: 'line' }
|
|
96
98
|
*/
|
|
97
99
|
axisHighlight: _propTypes.default.shape({
|
|
98
|
-
radius: _propTypes.default.oneOf(['line', 'none']),
|
|
100
|
+
radius: _propTypes.default.oneOf(['band', 'line', 'none']),
|
|
99
101
|
rotation: _propTypes.default.oneOf(['band', 'line', 'none'])
|
|
100
102
|
}),
|
|
101
103
|
/**
|
|
@@ -159,11 +161,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
159
161
|
hiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
160
162
|
dataIndex: _propTypes.default.number,
|
|
161
163
|
seriesId: _propTypes.default.string.isRequired,
|
|
162
|
-
type: _propTypes.default.oneOf(['radialLine'])
|
|
164
|
+
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
163
165
|
}), _propTypes.default.shape({
|
|
164
166
|
dataIndex: _propTypes.default.number,
|
|
165
167
|
seriesId: _propTypes.default.string.isRequired,
|
|
166
|
-
type: _propTypes.default.oneOf(['radialLine'])
|
|
168
|
+
type: _propTypes.default.oneOf(['radialLine'])
|
|
167
169
|
})]).isRequired),
|
|
168
170
|
/**
|
|
169
171
|
* If `true`, the legend is not rendered.
|
|
@@ -175,11 +177,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
175
177
|
*/
|
|
176
178
|
highlightedItem: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
177
179
|
dataIndex: _propTypes.default.number,
|
|
178
|
-
seriesId: _propTypes.default.string.isRequired
|
|
179
|
-
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
180
|
+
seriesId: _propTypes.default.string.isRequired
|
|
180
181
|
}), _propTypes.default.shape({
|
|
181
182
|
dataIndex: _propTypes.default.number,
|
|
182
|
-
seriesId: _propTypes.default.string.isRequired
|
|
183
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
184
|
+
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
183
185
|
})]),
|
|
184
186
|
/**
|
|
185
187
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -210,11 +212,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
210
212
|
initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
211
213
|
dataIndex: _propTypes.default.number,
|
|
212
214
|
seriesId: _propTypes.default.string.isRequired,
|
|
213
|
-
type: _propTypes.default.oneOf(['radialLine'])
|
|
215
|
+
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
214
216
|
}), _propTypes.default.shape({
|
|
215
217
|
dataIndex: _propTypes.default.number,
|
|
216
218
|
seriesId: _propTypes.default.string.isRequired,
|
|
217
|
-
type: _propTypes.default.oneOf(['radialLine'])
|
|
219
|
+
type: _propTypes.default.oneOf(['radialLine'])
|
|
218
220
|
})]).isRequired),
|
|
219
221
|
/**
|
|
220
222
|
* If `true`, a loading overlay is displayed.
|
|
@@ -275,7 +277,7 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
275
277
|
rotationAxis: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
276
278
|
/**
|
|
277
279
|
* The series to display in the line chart.
|
|
278
|
-
* An array of [[
|
|
280
|
+
* An array of [[RadialLineSeries]] objects.
|
|
279
281
|
*/
|
|
280
282
|
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
281
283
|
/**
|
|
@@ -305,11 +307,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
305
307
|
*/
|
|
306
308
|
tooltipItem: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
307
309
|
dataIndex: _propTypes.default.number,
|
|
308
|
-
seriesId: _propTypes.default.string.isRequired
|
|
309
|
-
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
310
|
+
seriesId: _propTypes.default.string.isRequired
|
|
310
311
|
}), _propTypes.default.shape({
|
|
311
312
|
dataIndex: _propTypes.default.number,
|
|
312
|
-
seriesId: _propTypes.default.string.isRequired
|
|
313
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
314
|
+
type: _propTypes.default.oneOf(['radialLine']).isRequired
|
|
313
315
|
})]),
|
|
314
316
|
/**
|
|
315
317
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
@@ -5,6 +5,8 @@ import { useThemeProps } from '@mui/material/styles';
|
|
|
5
5
|
import { useChartsContainerProps } from '@mui/x-charts/internals';
|
|
6
6
|
import { Unstable_ChartsRadialGrid as ChartsRadialGrid } from '@mui/x-charts/ChartsRadialGrid';
|
|
7
7
|
import { Unstable_ChartsRadialAxisHighlight as ChartsRadialAxisHighlight } from '@mui/x-charts/ChartsRadialAxisHighlight';
|
|
8
|
+
import { Unstable_ChartsRadiusAxis as ChartsRadiusAxis } from '@mui/x-charts/ChartsRadiusAxis';
|
|
9
|
+
import { Unstable_ChartsRotationAxis as ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
8
10
|
import { ChartsLegend } from "../ChartsLegend/index.mjs";
|
|
9
11
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
10
12
|
import { ChartsTooltip } from "../ChartsTooltip/index.mjs";
|
|
@@ -61,7 +63,7 @@ const RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(i
|
|
|
61
63
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
62
64
|
children: [/*#__PURE__*/_jsx(ChartsRadialGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
63
65
|
children: [/*#__PURE__*/_jsx(RadialAreaPlot, {}), /*#__PURE__*/_jsx(RadialLinePlot, {}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps))]
|
|
64
|
-
})), /*#__PURE__*/_jsx(ChartsRadialAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(RadialMarkPlot, {}), /*#__PURE__*/_jsx(RadialLineHighlightPlot, {
|
|
66
|
+
})), /*#__PURE__*/_jsx(ChartsRadialAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(ChartsRotationAxis, {}), /*#__PURE__*/_jsx(ChartsRadiusAxis, {}), /*#__PURE__*/_jsx(RadialMarkPlot, {}), /*#__PURE__*/_jsx(RadialLineHighlightPlot, {
|
|
65
67
|
slots: props.slots,
|
|
66
68
|
slotProps: props.slotProps
|
|
67
69
|
}), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
@@ -87,7 +89,7 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
87
89
|
* @default { rotation: 'line' }
|
|
88
90
|
*/
|
|
89
91
|
axisHighlight: PropTypes.shape({
|
|
90
|
-
radius: PropTypes.oneOf(['line', 'none']),
|
|
92
|
+
radius: PropTypes.oneOf(['band', 'line', 'none']),
|
|
91
93
|
rotation: PropTypes.oneOf(['band', 'line', 'none'])
|
|
92
94
|
}),
|
|
93
95
|
/**
|
|
@@ -151,11 +153,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
151
153
|
hiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
152
154
|
dataIndex: PropTypes.number,
|
|
153
155
|
seriesId: PropTypes.string.isRequired,
|
|
154
|
-
type: PropTypes.oneOf(['radialLine'])
|
|
156
|
+
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
155
157
|
}), PropTypes.shape({
|
|
156
158
|
dataIndex: PropTypes.number,
|
|
157
159
|
seriesId: PropTypes.string.isRequired,
|
|
158
|
-
type: PropTypes.oneOf(['radialLine'])
|
|
160
|
+
type: PropTypes.oneOf(['radialLine'])
|
|
159
161
|
})]).isRequired),
|
|
160
162
|
/**
|
|
161
163
|
* If `true`, the legend is not rendered.
|
|
@@ -167,11 +169,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
167
169
|
*/
|
|
168
170
|
highlightedItem: PropTypes.oneOfType([PropTypes.shape({
|
|
169
171
|
dataIndex: PropTypes.number,
|
|
170
|
-
seriesId: PropTypes.string.isRequired
|
|
171
|
-
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
172
|
+
seriesId: PropTypes.string.isRequired
|
|
172
173
|
}), PropTypes.shape({
|
|
173
174
|
dataIndex: PropTypes.number,
|
|
174
|
-
seriesId: PropTypes.string.isRequired
|
|
175
|
+
seriesId: PropTypes.string.isRequired,
|
|
176
|
+
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
175
177
|
})]),
|
|
176
178
|
/**
|
|
177
179
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -202,11 +204,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
202
204
|
initialHiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
203
205
|
dataIndex: PropTypes.number,
|
|
204
206
|
seriesId: PropTypes.string.isRequired,
|
|
205
|
-
type: PropTypes.oneOf(['radialLine'])
|
|
207
|
+
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
206
208
|
}), PropTypes.shape({
|
|
207
209
|
dataIndex: PropTypes.number,
|
|
208
210
|
seriesId: PropTypes.string.isRequired,
|
|
209
|
-
type: PropTypes.oneOf(['radialLine'])
|
|
211
|
+
type: PropTypes.oneOf(['radialLine'])
|
|
210
212
|
})]).isRequired),
|
|
211
213
|
/**
|
|
212
214
|
* If `true`, a loading overlay is displayed.
|
|
@@ -267,7 +269,7 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
267
269
|
rotationAxis: PropTypes.arrayOf(PropTypes.object),
|
|
268
270
|
/**
|
|
269
271
|
* The series to display in the line chart.
|
|
270
|
-
* An array of [[
|
|
272
|
+
* An array of [[RadialLineSeries]] objects.
|
|
271
273
|
*/
|
|
272
274
|
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
273
275
|
/**
|
|
@@ -297,11 +299,11 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
|
|
|
297
299
|
*/
|
|
298
300
|
tooltipItem: PropTypes.oneOfType([PropTypes.shape({
|
|
299
301
|
dataIndex: PropTypes.number,
|
|
300
|
-
seriesId: PropTypes.string.isRequired
|
|
301
|
-
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
302
|
+
seriesId: PropTypes.string.isRequired
|
|
302
303
|
}), PropTypes.shape({
|
|
303
304
|
dataIndex: PropTypes.number,
|
|
304
|
-
seriesId: PropTypes.string.isRequired
|
|
305
|
+
seriesId: PropTypes.string.isRequired,
|
|
306
|
+
type: PropTypes.oneOf(['radialLine']).isRequired
|
|
305
307
|
})]),
|
|
306
308
|
/**
|
|
307
309
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UseChartZAxisSignature, type UseChartPolarAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
-
import { type UseChartProExportSignature } from
|
|
2
|
+
import { type UseChartProExportSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
export type RadialLineChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialLine'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialLine'>, UseChartHighlightSignature<'radialLine'>, UseChartVisibilityManagerSignature<'radialLine'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
|
|
4
4
|
export declare const RADIAL_LINE_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialLineChartPluginSignatures>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UseChartZAxisSignature, type UseChartPolarAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartVisibilityManagerSignature, type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
-
import { type UseChartProExportSignature } from
|
|
2
|
+
import { type UseChartProExportSignature } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
export type RadialLineChartPluginSignatures = [UseChartZAxisSignature, UseChartTooltipSignature<'radialLine'>, UseChartInteractionSignature, UseChartPolarAxisSignature<'radialLine'>, UseChartHighlightSignature<'radialLine'>, UseChartVisibilityManagerSignature<'radialLine'>, UseChartKeyboardNavigationSignature, UseChartProExportSignature];
|
|
4
4
|
export declare const RADIAL_LINE_CHART_PLUGINS: ConvertSignaturesIntoPlugins<RadialLineChartPluginSignatures>;
|
|
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RADIAL_LINE_CHART_PLUGINS = void 0;
|
|
7
7
|
var _internals = require("@mui/x-charts/internals");
|
|
8
|
-
var _plugins = require("
|
|
8
|
+
var _plugins = require("@mui/x-charts-pro/plugins");
|
|
9
9
|
const RADIAL_LINE_CHART_PLUGINS = exports.RADIAL_LINE_CHART_PLUGINS = [_internals.useChartZAxis, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartPolarAxis, _internals.useChartHighlight, _internals.useChartVisibilityManager, _internals.useChartKeyboardNavigation, _plugins.useChartProExport];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { useChartZAxis, useChartPolarAxis, useChartTooltip, useChartInteraction, useChartHighlight, useChartKeyboardNavigation, useChartVisibilityManager } from '@mui/x-charts/internals';
|
|
2
|
-
import { useChartProExport } from
|
|
2
|
+
import { useChartProExport } from '@mui/x-charts-pro/plugins';
|
|
3
3
|
export const RADIAL_LINE_CHART_PLUGINS = [useChartZAxis, useChartTooltip, useChartInteraction, useChartPolarAxis, useChartHighlight, useChartVisibilityManager, useChartKeyboardNavigation, useChartProExport];
|
|
@@ -37,13 +37,15 @@ function RadialLinePlot(props) {
|
|
|
37
37
|
seriesId,
|
|
38
38
|
color,
|
|
39
39
|
hidden,
|
|
40
|
-
curve
|
|
40
|
+
curve,
|
|
41
|
+
closePath
|
|
41
42
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLine.RadialLine, {
|
|
42
43
|
seriesId: seriesId,
|
|
43
44
|
color: color,
|
|
44
45
|
hidden: hidden,
|
|
45
46
|
points: points,
|
|
46
47
|
curve: curve,
|
|
48
|
+
closePath: closePath,
|
|
47
49
|
className: classes.line
|
|
48
50
|
}, seriesId))
|
|
49
51
|
});
|
|
@@ -31,13 +31,15 @@ export function RadialLinePlot(props) {
|
|
|
31
31
|
seriesId,
|
|
32
32
|
color,
|
|
33
33
|
hidden,
|
|
34
|
-
curve
|
|
34
|
+
curve,
|
|
35
|
+
closePath
|
|
35
36
|
}) => /*#__PURE__*/_jsx(RadialLine, {
|
|
36
37
|
seriesId: seriesId,
|
|
37
38
|
color: color,
|
|
38
39
|
hidden: hidden,
|
|
39
40
|
points: points,
|
|
40
41
|
curve: curve,
|
|
42
|
+
closePath: closePath,
|
|
41
43
|
className: classes.line
|
|
42
44
|
}, seriesId))
|
|
43
45
|
});
|
|
@@ -5,57 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _internals = require("@mui/x-charts/internals");
|
|
8
|
-
const getColor = (series, rotationAxis, radiusAxis) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (dataIndex === undefined) {
|
|
15
|
-
return series.color;
|
|
16
|
-
}
|
|
17
|
-
const value = series.data[dataIndex];
|
|
18
|
-
const color = value === null ? getSeriesColor({
|
|
19
|
-
value,
|
|
20
|
-
dataIndex
|
|
21
|
-
}) : yColorScale(value);
|
|
22
|
-
if (color === null) {
|
|
23
|
-
return getSeriesColor({
|
|
24
|
-
value,
|
|
25
|
-
dataIndex
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return color;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
if (xColorScale) {
|
|
32
|
-
return dataIndex => {
|
|
33
|
-
if (dataIndex === undefined) {
|
|
34
|
-
return series.color;
|
|
35
|
-
}
|
|
36
|
-
const value = rotationAxis.data?.[dataIndex];
|
|
37
|
-
const color = value === null ? getSeriesColor({
|
|
38
|
-
value,
|
|
39
|
-
dataIndex
|
|
40
|
-
}) : xColorScale(value);
|
|
41
|
-
if (color === null) {
|
|
42
|
-
return getSeriesColor({
|
|
43
|
-
value,
|
|
44
|
-
dataIndex
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return color;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return dataIndex => {
|
|
51
|
-
if (dataIndex === undefined) {
|
|
52
|
-
return series.color;
|
|
53
|
-
}
|
|
54
|
-
const value = series.data[dataIndex];
|
|
55
|
-
return getSeriesColor({
|
|
56
|
-
value,
|
|
57
|
-
dataIndex
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
};
|
|
8
|
+
const getColor = (series, rotationAxis, radiusAxis) => (0, _internals.resolveColorProcessor)({
|
|
9
|
+
series,
|
|
10
|
+
valueColorScale: radiusAxis?.colorScale,
|
|
11
|
+
categoryColorScale: rotationAxis?.colorScale,
|
|
12
|
+
categoryValues: rotationAxis?.data
|
|
13
|
+
});
|
|
61
14
|
var _default = exports.default = getColor;
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const getColor = (series, rotationAxis, radiusAxis) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (dataIndex === undefined) {
|
|
9
|
-
return series.color;
|
|
10
|
-
}
|
|
11
|
-
const value = series.data[dataIndex];
|
|
12
|
-
const color = value === null ? getSeriesColor({
|
|
13
|
-
value,
|
|
14
|
-
dataIndex
|
|
15
|
-
}) : yColorScale(value);
|
|
16
|
-
if (color === null) {
|
|
17
|
-
return getSeriesColor({
|
|
18
|
-
value,
|
|
19
|
-
dataIndex
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return color;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
if (xColorScale) {
|
|
26
|
-
return dataIndex => {
|
|
27
|
-
if (dataIndex === undefined) {
|
|
28
|
-
return series.color;
|
|
29
|
-
}
|
|
30
|
-
const value = rotationAxis.data?.[dataIndex];
|
|
31
|
-
const color = value === null ? getSeriesColor({
|
|
32
|
-
value,
|
|
33
|
-
dataIndex
|
|
34
|
-
}) : xColorScale(value);
|
|
35
|
-
if (color === null) {
|
|
36
|
-
return getSeriesColor({
|
|
37
|
-
value,
|
|
38
|
-
dataIndex
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return color;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
return dataIndex => {
|
|
45
|
-
if (dataIndex === undefined) {
|
|
46
|
-
return series.color;
|
|
47
|
-
}
|
|
48
|
-
const value = series.data[dataIndex];
|
|
49
|
-
return getSeriesColor({
|
|
50
|
-
value,
|
|
51
|
-
dataIndex
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
};
|
|
1
|
+
import { resolveColorProcessor } from '@mui/x-charts/internals';
|
|
2
|
+
const getColor = (series, rotationAxis, radiusAxis) => resolveColorProcessor({
|
|
3
|
+
series,
|
|
4
|
+
valueColorScale: radiusAxis?.colorScale,
|
|
5
|
+
categoryColorScale: rotationAxis?.colorScale,
|
|
6
|
+
categoryValues: rotationAxis?.data
|
|
7
|
+
});
|
|
55
8
|
export default getColor;
|
|
@@ -21,7 +21,7 @@ function getBracketIndices(rotationAxis, angle) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
if ((0, _internals.isOrdinalScale)(scale)) {
|
|
24
|
-
const index = (0, _internals.
|
|
24
|
+
const index = (0, _internals.getRotationAxisIndex)(rotationAxis, angle);
|
|
25
25
|
if (index === -1) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
@@ -200,7 +200,7 @@ function getItemAtPosition(state, point) {
|
|
|
200
200
|
connectNulls,
|
|
201
201
|
curve
|
|
202
202
|
} = seriesItem;
|
|
203
|
-
const dataIndex = (0, _internals.
|
|
203
|
+
const dataIndex = (0, _internals.getRotationAxisIndex)(rotationAxis, pointerAngle);
|
|
204
204
|
if (dataIndex === -1) {
|
|
205
205
|
continue;
|
|
206
206
|
}
|
|
@@ -338,7 +338,7 @@ function getItemAtPosition(state, point) {
|
|
|
338
338
|
const radiusMin = Math.min(innerRadius, outerRadius);
|
|
339
339
|
const radiusMax = Math.max(innerRadius, outerRadius);
|
|
340
340
|
if (pointerRadius >= radiusMin && pointerRadius <= radiusMax) {
|
|
341
|
-
const dataIndex = (0, _internals.
|
|
341
|
+
const dataIndex = (0, _internals.getRotationAxisIndex)(rotationAxis, pointerAngle);
|
|
342
342
|
return {
|
|
343
343
|
type: 'radialLine',
|
|
344
344
|
seriesId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getValueToPositionMapper } from '@mui/x-charts/hooks';
|
|
2
|
-
import { selectorAllSeriesOfType, selectorChartPolarCenter, selectorChartRadiusAxis, selectorChartRotationAxis,
|
|
2
|
+
import { selectorAllSeriesOfType, selectorChartPolarCenter, selectorChartRadiusAxis, selectorChartRotationAxis, getRotationAxisIndex, isOrdinalScale } from '@mui/x-charts/internals';
|
|
3
3
|
import { evaluateCurveAtAngle, clampAngleRad, getAsNumber } from '@mui/x-charts/internals';
|
|
4
4
|
/**
|
|
5
5
|
* For a continuous rotation axis, find the two data indices that bracket the pointer's angle position.
|
|
@@ -16,7 +16,7 @@ function getBracketIndices(rotationAxis, angle) {
|
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
if (isOrdinalScale(scale)) {
|
|
19
|
-
const index =
|
|
19
|
+
const index = getRotationAxisIndex(rotationAxis, angle);
|
|
20
20
|
if (index === -1) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
@@ -195,7 +195,7 @@ export default function getItemAtPosition(state, point) {
|
|
|
195
195
|
connectNulls,
|
|
196
196
|
curve
|
|
197
197
|
} = seriesItem;
|
|
198
|
-
const dataIndex =
|
|
198
|
+
const dataIndex = getRotationAxisIndex(rotationAxis, pointerAngle);
|
|
199
199
|
if (dataIndex === -1) {
|
|
200
200
|
continue;
|
|
201
201
|
}
|
|
@@ -333,7 +333,7 @@ export default function getItemAtPosition(state, point) {
|
|
|
333
333
|
const radiusMin = Math.min(innerRadius, outerRadius);
|
|
334
334
|
const radiusMax = Math.max(innerRadius, outerRadius);
|
|
335
335
|
if (pointerRadius >= radiusMin && pointerRadius <= radiusMax) {
|
|
336
|
-
const dataIndex =
|
|
336
|
+
const dataIndex = getRotationAxisIndex(rotationAxis, pointerAngle);
|
|
337
337
|
return {
|
|
338
338
|
type: 'radialLine',
|
|
339
339
|
seriesId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare
|
|
1
|
+
import { type SeriesProcessor } from '@mui/x-charts/internals';
|
|
2
|
+
declare const seriesProcessor: SeriesProcessor<'radialLine'>;
|
|
3
3
|
export default seriesProcessor;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare
|
|
1
|
+
import { type SeriesProcessor } from '@mui/x-charts/internals';
|
|
2
|
+
declare const seriesProcessor: SeriesProcessor<'radialLine'>;
|
|
3
3
|
export default seriesProcessor;
|
|
@@ -1,146 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
11
|
-
var _warning = require("@mui/x-internals/warning");
|
|
12
7
|
var _internals = require("@mui/x-charts/internals");
|
|
13
|
-
const
|
|
14
|
-
const lineValueFormatter = v => v == null ? '' : v.toLocaleString();
|
|
15
|
-
function seriesProcessor(params, dataset, isItemVisible) {
|
|
16
|
-
const {
|
|
17
|
-
seriesOrder,
|
|
18
|
-
series
|
|
19
|
-
} = params;
|
|
20
|
-
const stackingGroups = (0, _internals.getStackingGroups)((0, _extends2.default)({}, params, {
|
|
21
|
-
defaultStrategy: {
|
|
22
|
-
stackOffset: 'none'
|
|
23
|
-
}
|
|
24
|
-
}));
|
|
25
|
-
const idToIndex = new Map();
|
|
26
|
-
// Create a data set with format adapted to d3
|
|
27
|
-
const d3Dataset = dataset ?? [];
|
|
28
|
-
seriesOrder.forEach((id, seriesIndex) => {
|
|
29
|
-
idToIndex.set(id, seriesIndex);
|
|
30
|
-
const data = series[id].data;
|
|
31
|
-
if (data !== undefined) {
|
|
32
|
-
data.forEach((value, dataIndex) => {
|
|
33
|
-
if (d3Dataset.length <= dataIndex) {
|
|
34
|
-
d3Dataset.push({
|
|
35
|
-
[id]: value
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
d3Dataset[dataIndex][id] = value;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
} else if (series[id].valueGetter && dataset) {
|
|
42
|
-
// When valueGetter is used without dataKey, populate d3Dataset with the series id as key
|
|
43
|
-
dataset.forEach((entry, dataIndex) => {
|
|
44
|
-
const value = series[id].valueGetter(entry);
|
|
45
|
-
if (d3Dataset.length <= dataIndex) {
|
|
46
|
-
d3Dataset.push({
|
|
47
|
-
[id]: value
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
d3Dataset[dataIndex][id] = value;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
54
|
-
// TODO: fix mui/no-guarded-throw
|
|
55
|
-
// eslint-disable-next-line mui/no-guarded-throw
|
|
56
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Radial line 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)(258, id));
|
|
57
|
-
}
|
|
58
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
59
|
-
if (!data && dataset) {
|
|
60
|
-
const dataKey = series[id].dataKey;
|
|
61
|
-
if (!dataKey && !series[id].valueGetter) {
|
|
62
|
-
// TODO: fix mui/no-guarded-throw
|
|
63
|
-
// eslint-disable-next-line mui/no-guarded-throw
|
|
64
|
-
throw new Error(`MUI X Charts: Radial line 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.');
|
|
65
|
-
}
|
|
66
|
-
if (dataKey) {
|
|
67
|
-
dataset.forEach((entry, index) => {
|
|
68
|
-
const value = entry[dataKey];
|
|
69
|
-
if (value != null && typeof value !== 'number') {
|
|
70
|
-
(0, _warning.warnOnce)(`MUI X Charts: your dataset key "${dataKey}" is used for plotting radial lines, but the dataset contains the non-null non-numerical element "${value}" at index ${index}.
|
|
71
|
-
Radial line plots only support numeric and null values.`);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
const completedSeries = {};
|
|
79
|
-
stackingGroups.forEach(stackingGroup => {
|
|
80
|
-
const {
|
|
81
|
-
ids,
|
|
82
|
-
stackingOffset,
|
|
83
|
-
stackingOrder
|
|
84
|
-
} = stackingGroup;
|
|
85
|
-
const keys = ids.map(id => {
|
|
86
|
-
// Use dataKey if needed and available
|
|
87
|
-
const dataKey = series[id].dataKey;
|
|
88
|
-
return series[id].data === undefined && dataKey !== undefined ? dataKey : id;
|
|
89
|
-
});
|
|
90
|
-
const stackedData = (0, _d3Shape.stack)().keys(keys).value((d, key) => d[key] ?? 0) // defaultize null value to 0
|
|
91
|
-
.order(stackingOrder).offset(stackingOffset)(d3Dataset);
|
|
92
|
-
const idOrder = stackedData.map(s => s.index);
|
|
93
|
-
const fixedOrder = () => idOrder;
|
|
94
|
-
|
|
95
|
-
// Compute visible stacked data
|
|
96
|
-
const visibleStackedData = (0, _d3Shape.stack)().keys(keys).value((d, key) => {
|
|
97
|
-
const keyIndex = keys.indexOf(key);
|
|
98
|
-
const seriesId = ids[keyIndex];
|
|
99
|
-
if (!isItemVisible?.({
|
|
100
|
-
type: 'radialLine',
|
|
101
|
-
seriesId
|
|
102
|
-
})) {
|
|
103
|
-
// For hidden series, return 0 so they don't contribute to the stack
|
|
104
|
-
return 0;
|
|
105
|
-
}
|
|
106
|
-
return d[key] ?? 0;
|
|
107
|
-
}).order(fixedOrder).offset(stackingOffset)(d3Dataset);
|
|
108
|
-
ids.forEach((id, index) => {
|
|
109
|
-
const {
|
|
110
|
-
dataKey,
|
|
111
|
-
valueGetter
|
|
112
|
-
} = series[id];
|
|
113
|
-
let data;
|
|
114
|
-
if (valueGetter) {
|
|
115
|
-
data = dataset.map(d => valueGetter(d));
|
|
116
|
-
} else if (dataKey) {
|
|
117
|
-
data = dataset.map(d => {
|
|
118
|
-
const value = d[dataKey];
|
|
119
|
-
return typeof value === 'number' ? value : null;
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
data = series[id].data;
|
|
123
|
-
}
|
|
124
|
-
const hidden = !isItemVisible?.({
|
|
125
|
-
type: 'radialLine',
|
|
126
|
-
seriesId: id
|
|
127
|
-
});
|
|
128
|
-
completedSeries[id] = (0, _extends2.default)({
|
|
129
|
-
labelMarkType: 'line+mark'
|
|
130
|
-
}, series[id], {
|
|
131
|
-
shape: series[id].shape ?? defaultShapes[(idToIndex.get(id) ?? 0) % defaultShapes.length],
|
|
132
|
-
data,
|
|
133
|
-
valueFormatter: series[id].valueFormatter ?? lineValueFormatter,
|
|
134
|
-
hidden,
|
|
135
|
-
stackedData: stackedData[index],
|
|
136
|
-
visibleStackedData: visibleStackedData[index]
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
return {
|
|
141
|
-
seriesOrder,
|
|
142
|
-
stackingGroups,
|
|
143
|
-
series: completedSeries
|
|
144
|
-
};
|
|
145
|
-
}
|
|
8
|
+
const seriesProcessor = (params, dataset, isItemVisible) => (0, _internals.processLineLikeSeries)(params, dataset, isItemVisible, 'radialLine');
|
|
146
9
|
var _default = exports.default = seriesProcessor;
|