@mui/x-charts 9.4.0 → 9.6.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/BarChart/BarChart.js +1 -1
- package/BarChart/BarChart.mjs +1 -1
- package/BarChart/BarElement.js +2 -1
- package/BarChart/BarElement.mjs +2 -1
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/BarLabel/BarLabel.mjs +1 -1
- package/BarChart/BarPlot.js +1 -1
- package/BarChart/BarPlot.mjs +1 -1
- package/CHANGELOG.md +251 -0
- package/ChartsAxis/ChartsAxis.js +1 -1
- package/ChartsAxis/ChartsAxis.mjs +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsClipPath/ChartsClipPath.mjs +1 -1
- package/ChartsContainer/ChartsContainer.js +5 -3
- package/ChartsContainer/ChartsContainer.mjs +5 -3
- package/ChartsDataProvider/ChartsDataProvider.js +5 -1
- package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
- package/ChartsGrid/ChartsGrid.js +5 -1
- package/ChartsGrid/ChartsGrid.mjs +5 -1
- package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
- package/ChartsRadialAxisHighlight/index.d.mts +6 -1
- package/ChartsRadialAxisHighlight/index.d.ts +6 -1
- package/ChartsRadialAxisHighlight/index.js +9 -2
- package/ChartsRadialAxisHighlight/index.mjs +8 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +10 -2
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +10 -2
- package/ChartsRadialDataProvider/index.d.mts +5 -0
- package/ChartsRadialDataProvider/index.d.ts +5 -0
- package/ChartsRadialDataProvider/index.js +12 -1
- package/ChartsRadialDataProvider/index.mjs +7 -0
- package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
- package/ChartsRadialGrid/index.d.mts +6 -1
- package/ChartsRadialGrid/index.d.ts +6 -1
- package/ChartsRadialGrid/index.js +8 -2
- package/ChartsRadialGrid/index.mjs +8 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
- package/ChartsRadiusAxis/index.d.mts +6 -1
- package/ChartsRadiusAxis/index.d.ts +6 -1
- package/ChartsRadiusAxis/index.js +10 -2
- package/ChartsRadiusAxis/index.mjs +7 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
- package/ChartsRotationAxis/index.d.mts +6 -1
- package/ChartsRotationAxis/index.d.ts +6 -1
- package/ChartsRotationAxis/index.js +10 -2
- package/ChartsRotationAxis/index.mjs +7 -1
- package/ChartsSurface/ChartsSurface.js +1 -1
- package/ChartsSurface/ChartsSurface.mjs +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
- package/ChartsText/ChartsText.js +2 -2
- package/ChartsText/ChartsText.mjs +2 -2
- package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
- package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
- package/ChartsTooltip/ChartsTooltip.js +13 -33
- package/ChartsTooltip/ChartsTooltip.mjs +13 -33
- package/ChartsTooltip/ChartsTooltipContainer.js +17 -30
- package/ChartsTooltip/ChartsTooltipContainer.mjs +17 -30
- package/ChartsWrapper/ChartsWrapper.js +1 -1
- package/ChartsWrapper/ChartsWrapper.mjs +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsXAxis.js +11 -2
- package/ChartsXAxis/ChartsXAxis.mjs +11 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsYAxis.js +11 -2
- package/ChartsYAxis/ChartsYAxis.mjs +11 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
- package/Gauge/Gauge.js +1 -1
- package/Gauge/Gauge.mjs +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeContainer.mjs +1 -1
- package/Gauge/GaugeValueArc.js +2 -2
- package/Gauge/GaugeValueArc.mjs +2 -2
- package/Gauge/GaugeValueText.js +1 -1
- package/Gauge/GaugeValueText.mjs +1 -1
- package/LineChart/AnimatedArea.js +3 -3
- package/LineChart/AnimatedArea.mjs +3 -3
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AnimatedLine.mjs +1 -1
- package/LineChart/AreaElement.js +2 -2
- package/LineChart/AreaElement.mjs +2 -2
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/AreaPlot.mjs +1 -1
- package/LineChart/CircleMarkElement.js +1 -1
- package/LineChart/CircleMarkElement.mjs +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.js +5 -3
- package/LineChart/LineElement.mjs +5 -3
- package/LineChart/LineHighlightElement.js +1 -2
- package/LineChart/LineHighlightElement.mjs +1 -2
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LineHighlightPlot.mjs +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/LinePlot.mjs +1 -1
- package/LineChart/MarkElement.js +4 -3
- package/LineChart/MarkElement.mjs +4 -3
- package/LineChart/MarkPlot.js +2 -1
- package/LineChart/MarkPlot.mjs +2 -1
- package/PieChart/FocusedPieArc.d.mts +5 -1
- package/PieChart/FocusedPieArc.d.ts +5 -1
- package/PieChart/FocusedPieArc.js +22 -1
- package/PieChart/FocusedPieArc.mjs +24 -2
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArc.mjs +1 -1
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabel.mjs +1 -1
- package/PieChart/PieArcLabelPlot.js +7 -6
- package/PieChart/PieArcLabelPlot.mjs +7 -6
- package/PieChart/PieArcPlot.js +7 -6
- package/PieChart/PieArcPlot.mjs +7 -6
- package/PieChart/PieChart.js +1 -1
- package/PieChart/PieChart.mjs +1 -1
- package/PieChart/PiePlot.js +2 -1
- package/PieChart/PiePlot.mjs +2 -1
- package/RadarChart/RadarAxis/RadarAxis.js +5 -1
- package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
- package/RadarChart/RadarChart.js +1 -1
- package/RadarChart/RadarChart.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +1 -5
- package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
- package/ScatterChart/Scatter.js +1 -1
- package/ScatterChart/Scatter.mjs +1 -1
- package/ScatterChart/ScatterChart.js +12 -6
- package/ScatterChart/ScatterChart.mjs +12 -6
- package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
- package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
- package/ScatterChart/ScatterChart.plugins.js +2 -1
- package/ScatterChart/ScatterChart.plugins.mjs +2 -1
- package/ScatterChart/ScatterMarker.js +2 -2
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.d.mts +12 -3
- package/ScatterChart/ScatterPlot.d.ts +12 -3
- package/ScatterChart/ScatterPlot.js +30 -5
- package/ScatterChart/ScatterPlot.mjs +30 -5
- package/ScatterChart/async/ScatterAsync.d.mts +9 -0
- package/ScatterChart/async/ScatterAsync.d.ts +9 -0
- package/ScatterChart/async/ScatterAsync.js +71 -0
- package/ScatterChart/async/ScatterAsync.mjs +67 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
- package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
- package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
- package/ScatterChart/seriesConfig/getColor.js +6 -15
- package/ScatterChart/seriesConfig/getColor.mjs +6 -15
- package/SparkLineChart/SparkLineChart.js +3 -2
- package/SparkLineChart/SparkLineChart.mjs +3 -2
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/Toolbar.mjs +1 -1
- package/Toolbar/ToolbarButton.js +1 -1
- package/Toolbar/ToolbarButton.mjs +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +2 -2
- package/internals/colorScale.d.ts +2 -2
- package/internals/colorScale.js +2 -2
- package/internals/colorScale.mjs +2 -2
- package/internals/getSeriesColorFn.d.mts +5 -5
- package/internals/getSeriesColorFn.d.ts +5 -5
- package/internals/index.d.mts +3 -0
- package/internals/index.d.ts +3 -0
- package/internals/index.js +20 -0
- package/internals/index.mjs +3 -0
- package/internals/plugins/allPlugins.d.mts +4 -3
- package/internals/plugins/allPlugins.d.ts +4 -3
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/allPlugins.mjs +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
- package/internals/resolveColorProcessor.js +4 -7
- package/internals/resolveColorProcessor.mjs +4 -7
- package/internals/scales/scaleBand.js +70 -43
- package/internals/scales/scaleBand.mjs +71 -44
- package/models/axis.d.mts +20 -4
- package/models/axis.d.ts +20 -4
- package/models/colorMapping.d.mts +8 -0
- package/models/colorMapping.d.ts +8 -0
- package/models/seriesType/bar.d.mts +1 -1
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.mts +4 -4
- package/models/seriesType/common.d.ts +4 -4
- package/models/seriesType/config.d.mts +3 -3
- package/models/seriesType/config.d.ts +3 -3
- package/models/seriesType/line.d.mts +1 -1
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.mts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +1 -1
- package/models/seriesType/scatter.d.ts +1 -1
- package/package.json +8 -5
- package/hooks/useIsHydrated.d.mts +0 -4
- package/hooks/useIsHydrated.d.ts +0 -4
- package/hooks/useIsHydrated.js +0 -19
- package/hooks/useIsHydrated.mjs +0 -14
package/PieChart/PieArcPlot.mjs
CHANGED
|
@@ -70,7 +70,7 @@ function PieArcPlot(props) {
|
|
|
70
70
|
}, slotProps?.pieArc), item.dataIndex))
|
|
71
71
|
}));
|
|
72
72
|
}
|
|
73
|
-
process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes /* remove-proptypes */ = {
|
|
74
74
|
// ----------------------------- Warning --------------------------------
|
|
75
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
76
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -89,10 +89,11 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
89
89
|
color: PropTypes.string.isRequired,
|
|
90
90
|
endAngle: PropTypes.number.isRequired,
|
|
91
91
|
formattedValue: PropTypes.string.isRequired,
|
|
92
|
+
hidden: PropTypes.bool.isRequired,
|
|
92
93
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
93
94
|
index: PropTypes.number.isRequired,
|
|
94
95
|
label: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
95
|
-
labelMarkType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'square']), PropTypes.func]),
|
|
96
|
+
labelMarkType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
|
|
96
97
|
padAngle: PropTypes.number.isRequired,
|
|
97
98
|
startAngle: PropTypes.number.isRequired,
|
|
98
99
|
value: PropTypes.number.isRequired
|
|
@@ -122,10 +123,6 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
122
123
|
outerRadius: PropTypes.number,
|
|
123
124
|
paddingAngle: PropTypes.number
|
|
124
125
|
}),
|
|
125
|
-
/**
|
|
126
|
-
* The id of this series.
|
|
127
|
-
*/
|
|
128
|
-
seriesId: PropTypes.string.isRequired,
|
|
129
126
|
/**
|
|
130
127
|
* The radius between circle center and the beginning of the arc.
|
|
131
128
|
* @default 0
|
|
@@ -147,6 +144,10 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
147
144
|
* @default 0
|
|
148
145
|
*/
|
|
149
146
|
paddingAngle: PropTypes.number,
|
|
147
|
+
/**
|
|
148
|
+
* The id of this series.
|
|
149
|
+
*/
|
|
150
|
+
seriesId: PropTypes.string.isRequired,
|
|
150
151
|
/**
|
|
151
152
|
* If `true`, animations are skipped.
|
|
152
153
|
* @default false
|
package/PieChart/PieChart.js
CHANGED
|
@@ -109,7 +109,7 @@ const PieChart = exports.PieChart = /*#__PURE__*/React.forwardRef(function PieCh
|
|
|
109
109
|
}));
|
|
110
110
|
});
|
|
111
111
|
if (process.env.NODE_ENV !== "production") PieChart.displayName = "PieChart";
|
|
112
|
-
process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
112
|
+
process.env.NODE_ENV !== "production" ? PieChart.propTypes /* remove-proptypes */ = {
|
|
113
113
|
// ----------------------------- Warning --------------------------------
|
|
114
114
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
115
115
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/PieChart/PieChart.mjs
CHANGED
|
@@ -102,7 +102,7 @@ const PieChart = /*#__PURE__*/React.forwardRef(function PieChart(inProps, ref) {
|
|
|
102
102
|
}));
|
|
103
103
|
});
|
|
104
104
|
if (process.env.NODE_ENV !== "production") PieChart.displayName = "PieChart";
|
|
105
|
-
process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
105
|
+
process.env.NODE_ENV !== "production" ? PieChart.propTypes /* remove-proptypes */ = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
108
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/PieChart/PiePlot.js
CHANGED
|
@@ -102,11 +102,12 @@ function PiePlot(props) {
|
|
|
102
102
|
})]
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
process.env.NODE_ENV !== "production" ? PiePlot.propTypes = {
|
|
105
|
+
process.env.NODE_ENV !== "production" ? PiePlot.propTypes /* remove-proptypes */ = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
108
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
109
109
|
// ----------------------------------------------------------------------
|
|
110
|
+
className: _propTypes.default.string,
|
|
110
111
|
/**
|
|
111
112
|
* Callback fired when a pie item is clicked.
|
|
112
113
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
package/PieChart/PiePlot.mjs
CHANGED
|
@@ -96,11 +96,12 @@ function PiePlot(props) {
|
|
|
96
96
|
})]
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
process.env.NODE_ENV !== "production" ? PiePlot.propTypes = {
|
|
99
|
+
process.env.NODE_ENV !== "production" ? PiePlot.propTypes /* remove-proptypes */ = {
|
|
100
100
|
// ----------------------------- Warning --------------------------------
|
|
101
101
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
102
102
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
103
103
|
// ----------------------------------------------------------------------
|
|
104
|
+
className: PropTypes.string,
|
|
104
105
|
/**
|
|
105
106
|
* Callback fired when a pie item is clicked.
|
|
106
107
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -61,7 +61,7 @@ function RadarAxis(props) {
|
|
|
61
61
|
}), formattedValue))]
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
process.env.NODE_ENV !== "production" ? RadarAxis.propTypes = {
|
|
64
|
+
process.env.NODE_ENV !== "production" ? RadarAxis.propTypes /* remove-proptypes */ = {
|
|
65
65
|
// ----------------------------- Warning --------------------------------
|
|
66
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
67
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -75,6 +75,10 @@ process.env.NODE_ENV !== "production" ? RadarAxis.propTypes = {
|
|
|
75
75
|
* Override or extend the styles applied to the component.
|
|
76
76
|
*/
|
|
77
77
|
classes: _propTypes.default.object,
|
|
78
|
+
/**
|
|
79
|
+
* A CSS class name applied to the root element.
|
|
80
|
+
*/
|
|
81
|
+
className: _propTypes.default.string,
|
|
78
82
|
/**
|
|
79
83
|
* The number of divisions with label.
|
|
80
84
|
* @default 1
|
|
@@ -53,7 +53,7 @@ function RadarAxis(props) {
|
|
|
53
53
|
}), formattedValue))]
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
process.env.NODE_ENV !== "production" ? RadarAxis.propTypes = {
|
|
56
|
+
process.env.NODE_ENV !== "production" ? RadarAxis.propTypes /* remove-proptypes */ = {
|
|
57
57
|
// ----------------------------- Warning --------------------------------
|
|
58
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
59
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -67,6 +67,10 @@ process.env.NODE_ENV !== "production" ? RadarAxis.propTypes = {
|
|
|
67
67
|
* Override or extend the styles applied to the component.
|
|
68
68
|
*/
|
|
69
69
|
classes: PropTypes.object,
|
|
70
|
+
/**
|
|
71
|
+
* A CSS class name applied to the root element.
|
|
72
|
+
*/
|
|
73
|
+
className: PropTypes.string,
|
|
70
74
|
/**
|
|
71
75
|
* The number of divisions with label.
|
|
72
76
|
* @default 1
|
|
@@ -72,7 +72,7 @@ function RadarAxisHighlight(props) {
|
|
|
72
72
|
})]
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes = {
|
|
75
|
+
process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes /* remove-proptypes */ = {
|
|
76
76
|
// ----------------------------- Warning --------------------------------
|
|
77
77
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
78
78
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -80,5 +80,9 @@ process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes = {
|
|
|
80
80
|
/**
|
|
81
81
|
* Override or extend the styles applied to the component.
|
|
82
82
|
*/
|
|
83
|
-
classes: _propTypes.default.object
|
|
83
|
+
classes: _propTypes.default.object,
|
|
84
|
+
/**
|
|
85
|
+
* A CSS class name applied to the root element.
|
|
86
|
+
*/
|
|
87
|
+
className: _propTypes.default.string
|
|
84
88
|
} : void 0;
|
|
@@ -65,7 +65,7 @@ function RadarAxisHighlight(props) {
|
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes = {
|
|
68
|
+
process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes /* remove-proptypes */ = {
|
|
69
69
|
// ----------------------------- Warning --------------------------------
|
|
70
70
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
71
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -73,6 +73,10 @@ process.env.NODE_ENV !== "production" ? RadarAxisHighlight.propTypes = {
|
|
|
73
73
|
/**
|
|
74
74
|
* Override or extend the styles applied to the component.
|
|
75
75
|
*/
|
|
76
|
-
classes: PropTypes.object
|
|
76
|
+
classes: PropTypes.object,
|
|
77
|
+
/**
|
|
78
|
+
* A CSS class name applied to the root element.
|
|
79
|
+
*/
|
|
80
|
+
className: PropTypes.string
|
|
77
81
|
} : void 0;
|
|
78
82
|
export { RadarAxisHighlight };
|
package/RadarChart/RadarChart.js
CHANGED
|
@@ -62,7 +62,7 @@ const RadarChart = exports.RadarChart = /*#__PURE__*/React.forwardRef(function R
|
|
|
62
62
|
}));
|
|
63
63
|
});
|
|
64
64
|
if (process.env.NODE_ENV !== "production") RadarChart.displayName = "RadarChart";
|
|
65
|
-
process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
|
|
65
|
+
process.env.NODE_ENV !== "production" ? RadarChart.propTypes /* remove-proptypes */ = {
|
|
66
66
|
// ----------------------------- Warning --------------------------------
|
|
67
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
68
68
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -55,7 +55,7 @@ const RadarChart = /*#__PURE__*/React.forwardRef(function RadarChart(inProps, re
|
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
57
|
if (process.env.NODE_ENV !== "production") RadarChart.displayName = "RadarChart";
|
|
58
|
-
process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
|
|
58
|
+
process.env.NODE_ENV !== "production" ? RadarChart.propTypes /* remove-proptypes */ = {
|
|
59
59
|
// ----------------------------- Warning --------------------------------
|
|
60
60
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
61
61
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -67,15 +67,11 @@ function RadarGrid(props) {
|
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
process.env.NODE_ENV !== "production" ? RadarGrid.propTypes = {
|
|
70
|
+
process.env.NODE_ENV !== "production" ? RadarGrid.propTypes /* remove-proptypes */ = {
|
|
71
71
|
// ----------------------------- Warning --------------------------------
|
|
72
72
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
73
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
74
74
|
// ----------------------------------------------------------------------
|
|
75
|
-
/**
|
|
76
|
-
* Override or extend the styles applied to the component.
|
|
77
|
-
*/
|
|
78
|
-
classes: _propTypes.default.object,
|
|
79
75
|
/**
|
|
80
76
|
* The number of divisions in the radar grid.
|
|
81
77
|
* @default 5
|
|
@@ -59,15 +59,11 @@ function RadarGrid(props) {
|
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
process.env.NODE_ENV !== "production" ? RadarGrid.propTypes = {
|
|
62
|
+
process.env.NODE_ENV !== "production" ? RadarGrid.propTypes /* remove-proptypes */ = {
|
|
63
63
|
// ----------------------------- Warning --------------------------------
|
|
64
64
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
65
65
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
66
66
|
// ----------------------------------------------------------------------
|
|
67
|
-
/**
|
|
68
|
-
* Override or extend the styles applied to the component.
|
|
69
|
-
*/
|
|
70
|
-
classes: PropTypes.object,
|
|
71
67
|
/**
|
|
72
68
|
* The number of divisions in the radar grid.
|
|
73
69
|
* @default 5
|
|
@@ -89,7 +89,7 @@ function RadarSeriesArea(props) {
|
|
|
89
89
|
})
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes = {
|
|
92
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes /* remove-proptypes */ = {
|
|
93
93
|
// ----------------------------- Warning --------------------------------
|
|
94
94
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
95
95
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -98,6 +98,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes = {
|
|
|
98
98
|
* Override or extend the styles applied to the component.
|
|
99
99
|
*/
|
|
100
100
|
classes: _propTypes.default.object,
|
|
101
|
+
/**
|
|
102
|
+
* A CSS class name applied to the root element.
|
|
103
|
+
*/
|
|
104
|
+
className: _propTypes.default.string,
|
|
101
105
|
/**
|
|
102
106
|
* Callback fired when an area is clicked.
|
|
103
107
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -80,7 +80,7 @@ function RadarSeriesArea(props) {
|
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes = {
|
|
83
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes /* remove-proptypes */ = {
|
|
84
84
|
// ----------------------------- Warning --------------------------------
|
|
85
85
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
86
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -89,6 +89,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesArea.propTypes = {
|
|
|
89
89
|
* Override or extend the styles applied to the component.
|
|
90
90
|
*/
|
|
91
91
|
classes: PropTypes.object,
|
|
92
|
+
/**
|
|
93
|
+
* A CSS class name applied to the root element.
|
|
94
|
+
*/
|
|
95
|
+
className: PropTypes.string,
|
|
92
96
|
/**
|
|
93
97
|
* Callback fired when an area is clicked.
|
|
94
98
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -85,7 +85,7 @@ function RadarSeriesMarks(props) {
|
|
|
85
85
|
})
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes = {
|
|
88
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes /* remove-proptypes */ = {
|
|
89
89
|
// ----------------------------- Warning --------------------------------
|
|
90
90
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
91
91
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -94,6 +94,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes = {
|
|
|
94
94
|
* Override or extend the styles applied to the component.
|
|
95
95
|
*/
|
|
96
96
|
classes: _propTypes.default.object,
|
|
97
|
+
/**
|
|
98
|
+
* A CSS class name applied to the root element.
|
|
99
|
+
*/
|
|
100
|
+
className: _propTypes.default.string,
|
|
97
101
|
/**
|
|
98
102
|
* Callback fired when a mark is clicked.
|
|
99
103
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -76,7 +76,7 @@ function RadarSeriesMarks(props) {
|
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes = {
|
|
79
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes /* remove-proptypes */ = {
|
|
80
80
|
// ----------------------------- Warning --------------------------------
|
|
81
81
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
82
82
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -85,6 +85,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesMarks.propTypes = {
|
|
|
85
85
|
* Override or extend the styles applied to the component.
|
|
86
86
|
*/
|
|
87
87
|
classes: PropTypes.object,
|
|
88
|
+
/**
|
|
89
|
+
* A CSS class name applied to the root element.
|
|
90
|
+
*/
|
|
91
|
+
className: PropTypes.string,
|
|
88
92
|
/**
|
|
89
93
|
* Callback fired when a mark is clicked.
|
|
90
94
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -77,7 +77,7 @@ function RadarSeriesPlot(props) {
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes = {
|
|
80
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes /* remove-proptypes */ = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
83
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -86,6 +86,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes = {
|
|
|
86
86
|
* Override or extend the styles applied to the component.
|
|
87
87
|
*/
|
|
88
88
|
classes: _propTypes.default.object,
|
|
89
|
+
/**
|
|
90
|
+
* A CSS class name applied to the root element.
|
|
91
|
+
*/
|
|
92
|
+
className: _propTypes.default.string,
|
|
89
93
|
/**
|
|
90
94
|
* Callback fired when an area is clicked.
|
|
91
95
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
@@ -70,7 +70,7 @@ function RadarSeriesPlot(props) {
|
|
|
70
70
|
})
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes = {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes /* remove-proptypes */ = {
|
|
74
74
|
// ----------------------------- Warning --------------------------------
|
|
75
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
76
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -79,6 +79,10 @@ process.env.NODE_ENV !== "production" ? RadarSeriesPlot.propTypes = {
|
|
|
79
79
|
* Override or extend the styles applied to the component.
|
|
80
80
|
*/
|
|
81
81
|
classes: PropTypes.object,
|
|
82
|
+
/**
|
|
83
|
+
* A CSS class name applied to the root element.
|
|
84
|
+
*/
|
|
85
|
+
className: PropTypes.string,
|
|
82
86
|
/**
|
|
83
87
|
* Callback fired when an area is clicked.
|
|
84
88
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
package/ScatterChart/Scatter.js
CHANGED
|
@@ -104,7 +104,7 @@ function Scatter(props) {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
process.env.NODE_ENV !== "production" ? Scatter.propTypes = {
|
|
107
|
+
process.env.NODE_ENV !== "production" ? Scatter.propTypes /* remove-proptypes */ = {
|
|
108
108
|
// ----------------------------- Warning --------------------------------
|
|
109
109
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
110
110
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/ScatterChart/Scatter.mjs
CHANGED
|
@@ -100,7 +100,7 @@ function Scatter(props) {
|
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
process.env.NODE_ENV !== "production" ? Scatter.propTypes = {
|
|
103
|
+
process.env.NODE_ENV !== "production" ? Scatter.propTypes /* remove-proptypes */ = {
|
|
104
104
|
// ----------------------------- Warning --------------------------------
|
|
105
105
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
106
106
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -72,7 +72,7 @@ const ScatterChart = exports.ScatterChart = /*#__PURE__*/React.forwardRef(functi
|
|
|
72
72
|
}));
|
|
73
73
|
});
|
|
74
74
|
if (process.env.NODE_ENV !== "production") ScatterChart.displayName = "ScatterChart";
|
|
75
|
-
process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
75
|
+
process.env.NODE_ENV !== "production" ? ScatterChart.propTypes /* remove-proptypes */ = {
|
|
76
76
|
// ----------------------------- Warning --------------------------------
|
|
77
77
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
78
78
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -148,7 +148,9 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
148
148
|
/**
|
|
149
149
|
* Options to enable features planned for the next major.
|
|
150
150
|
*/
|
|
151
|
-
experimentalFeatures: _propTypes.default.
|
|
151
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
152
|
+
progressiveRendering: _propTypes.default.bool
|
|
153
|
+
}),
|
|
152
154
|
/**
|
|
153
155
|
* Option to display a cartesian grid in the background.
|
|
154
156
|
*/
|
|
@@ -307,13 +309,15 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
307
309
|
onTooltipItemChange: _propTypes.default.func,
|
|
308
310
|
/**
|
|
309
311
|
* The type of renderer to use for the scatter plot.
|
|
310
|
-
* - `svg-single`: Renders every scatter item in a `<circle />` element.
|
|
312
|
+
* - `svg-single`: Renders every scatter item in a `<circle />` element, synchronously.
|
|
313
|
+
* - `svg-progressive`: Renders every scatter item in a `<circle />` element, in progressive batches that paint over several animation frames to keep the main thread responsive.
|
|
311
314
|
* - `svg-batch`: Batch renders scatter items in `<path />` elements for better performance with large datasets, at the cost of some limitations.
|
|
312
315
|
* Read more: https://mui.com/x/react-charts/scatter/#performance
|
|
313
316
|
*
|
|
317
|
+
* When not set, defaults to `svg-single`. Enable the `progressiveRendering` experimental feature to auto-select `svg-progressive` above an internal point-count threshold; this will become the default in the next major version.
|
|
314
318
|
* @default 'svg-single'
|
|
315
319
|
*/
|
|
316
|
-
renderer: _propTypes.default.oneOf(['svg-batch', 'svg-single']),
|
|
320
|
+
renderer: _propTypes.default.oneOf(['svg-batch', 'svg-progressive', 'svg-single']),
|
|
317
321
|
/**
|
|
318
322
|
* The series to display in the scatter chart.
|
|
319
323
|
* An array of [[ScatterSeries]] objects.
|
|
@@ -390,11 +394,13 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
390
394
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
391
395
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
392
396
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
393
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
397
|
+
type: _propTypes.default.oneOf(['continuous']).isRequired,
|
|
398
|
+
unknownColor: _propTypes.default.string
|
|
394
399
|
}), _propTypes.default.shape({
|
|
395
400
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
396
401
|
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
397
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
402
|
+
type: _propTypes.default.oneOf(['piecewise']).isRequired,
|
|
403
|
+
unknownColor: _propTypes.default.string
|
|
398
404
|
}), _propTypes.default.shape({
|
|
399
405
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
400
406
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -65,7 +65,7 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(inProps
|
|
|
65
65
|
}));
|
|
66
66
|
});
|
|
67
67
|
if (process.env.NODE_ENV !== "production") ScatterChart.displayName = "ScatterChart";
|
|
68
|
-
process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
68
|
+
process.env.NODE_ENV !== "production" ? ScatterChart.propTypes /* remove-proptypes */ = {
|
|
69
69
|
// ----------------------------- Warning --------------------------------
|
|
70
70
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
71
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -141,7 +141,9 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
141
141
|
/**
|
|
142
142
|
* Options to enable features planned for the next major.
|
|
143
143
|
*/
|
|
144
|
-
experimentalFeatures: PropTypes.
|
|
144
|
+
experimentalFeatures: PropTypes.shape({
|
|
145
|
+
progressiveRendering: PropTypes.bool
|
|
146
|
+
}),
|
|
145
147
|
/**
|
|
146
148
|
* Option to display a cartesian grid in the background.
|
|
147
149
|
*/
|
|
@@ -300,13 +302,15 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
300
302
|
onTooltipItemChange: PropTypes.func,
|
|
301
303
|
/**
|
|
302
304
|
* The type of renderer to use for the scatter plot.
|
|
303
|
-
* - `svg-single`: Renders every scatter item in a `<circle />` element.
|
|
305
|
+
* - `svg-single`: Renders every scatter item in a `<circle />` element, synchronously.
|
|
306
|
+
* - `svg-progressive`: Renders every scatter item in a `<circle />` element, in progressive batches that paint over several animation frames to keep the main thread responsive.
|
|
304
307
|
* - `svg-batch`: Batch renders scatter items in `<path />` elements for better performance with large datasets, at the cost of some limitations.
|
|
305
308
|
* Read more: https://mui.com/x/react-charts/scatter/#performance
|
|
306
309
|
*
|
|
310
|
+
* When not set, defaults to `svg-single`. Enable the `progressiveRendering` experimental feature to auto-select `svg-progressive` above an internal point-count threshold; this will become the default in the next major version.
|
|
307
311
|
* @default 'svg-single'
|
|
308
312
|
*/
|
|
309
|
-
renderer: PropTypes.oneOf(['svg-batch', 'svg-single']),
|
|
313
|
+
renderer: PropTypes.oneOf(['svg-batch', 'svg-progressive', 'svg-single']),
|
|
310
314
|
/**
|
|
311
315
|
* The series to display in the scatter chart.
|
|
312
316
|
* An array of [[ScatterSeries]] objects.
|
|
@@ -383,11 +387,13 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
383
387
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
384
388
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
385
389
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
386
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
390
|
+
type: PropTypes.oneOf(['continuous']).isRequired,
|
|
391
|
+
unknownColor: PropTypes.string
|
|
387
392
|
}), PropTypes.shape({
|
|
388
393
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
389
394
|
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
390
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
395
|
+
type: PropTypes.oneOf(['piecewise']).isRequired,
|
|
396
|
+
unknownColor: PropTypes.string
|
|
391
397
|
}), PropTypes.shape({
|
|
392
398
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
393
399
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -8,5 +8,6 @@ import { type UseChartClosestPointSignature } from "../internals/plugins/feature
|
|
|
8
8
|
import { type UseChartKeyboardNavigationSignature } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
9
9
|
import { type UseChartBrushSignature } from "../internals/plugins/featurePlugins/useChartBrush/index.mjs";
|
|
10
10
|
import { type UseChartVisibilityManagerSignature } from "../internals/plugins/featurePlugins/useChartVisibilityManager/index.mjs";
|
|
11
|
-
|
|
11
|
+
import { type UseProgressiveRenderingSignature } from "../internals/plugins/featurePlugins/useProgressiveRendering/index.mjs";
|
|
12
|
+
export type ScatterChartPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'scatter'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartHighlightSignature<'scatter'>, UseChartVisibilityManagerSignature<'scatter'>, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature, UseProgressiveRenderingSignature];
|
|
12
13
|
export declare const SCATTER_CHART_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartPluginSignatures>;
|
|
@@ -8,5 +8,6 @@ import { type UseChartClosestPointSignature } from "../internals/plugins/feature
|
|
|
8
8
|
import { type UseChartKeyboardNavigationSignature } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
9
9
|
import { type UseChartBrushSignature } from "../internals/plugins/featurePlugins/useChartBrush/index.js";
|
|
10
10
|
import { type UseChartVisibilityManagerSignature } from "../internals/plugins/featurePlugins/useChartVisibilityManager/index.js";
|
|
11
|
-
|
|
11
|
+
import { type UseProgressiveRenderingSignature } from "../internals/plugins/featurePlugins/useProgressiveRendering/index.js";
|
|
12
|
+
export type ScatterChartPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'scatter'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartHighlightSignature<'scatter'>, UseChartVisibilityManagerSignature<'scatter'>, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature, UseProgressiveRenderingSignature];
|
|
12
13
|
export declare const SCATTER_CHART_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartPluginSignatures>;
|
|
@@ -13,4 +13,5 @@ var _useChartClosestPoint = require("../internals/plugins/featurePlugins/useChar
|
|
|
13
13
|
var _useChartKeyboardNavigation = require("../internals/plugins/featurePlugins/useChartKeyboardNavigation");
|
|
14
14
|
var _useChartBrush = require("../internals/plugins/featurePlugins/useChartBrush");
|
|
15
15
|
var _useChartVisibilityManager = require("../internals/plugins/featurePlugins/useChartVisibilityManager");
|
|
16
|
-
|
|
16
|
+
var _useProgressiveRendering = require("../internals/plugins/featurePlugins/useProgressiveRendering");
|
|
17
|
+
const SCATTER_CHART_PLUGINS = exports.SCATTER_CHART_PLUGINS = [_useChartZAxis.useChartZAxis, _useChartBrush.useChartBrush, _useChartTooltip.useChartTooltip, _useChartInteraction.useChartInteraction, _useChartCartesianAxis.useChartCartesianAxis, _useChartHighlight.useChartHighlight, _useChartVisibilityManager.useChartVisibilityManager, _useChartClosestPoint.useChartClosestPoint, _useChartKeyboardNavigation.useChartKeyboardNavigation, _useProgressiveRendering.useProgressiveRendering];
|
|
@@ -7,4 +7,5 @@ import { useChartClosestPoint } from "../internals/plugins/featurePlugins/useCha
|
|
|
7
7
|
import { useChartKeyboardNavigation } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
8
8
|
import { useChartBrush } from "../internals/plugins/featurePlugins/useChartBrush/index.mjs";
|
|
9
9
|
import { useChartVisibilityManager } from "../internals/plugins/featurePlugins/useChartVisibilityManager/index.mjs";
|
|
10
|
-
|
|
10
|
+
import { useProgressiveRendering } from "../internals/plugins/featurePlugins/useProgressiveRendering/index.mjs";
|
|
11
|
+
export const SCATTER_CHART_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartVisibilityManager, useChartClosestPoint, useChartKeyboardNavigation, useProgressiveRendering];
|
|
@@ -32,7 +32,7 @@ function ScatterMarker(props) {
|
|
|
32
32
|
cursor: other.onClick ? 'pointer' : 'unset'
|
|
33
33
|
}, other));
|
|
34
34
|
}
|
|
35
|
-
process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes = {
|
|
35
|
+
process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes /* remove-proptypes */ = {
|
|
36
36
|
// ----------------------------- Warning --------------------------------
|
|
37
37
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
38
38
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -61,7 +61,7 @@ process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes = {
|
|
|
61
61
|
/**
|
|
62
62
|
* The series ID.
|
|
63
63
|
*/
|
|
64
|
-
seriesId: _propTypes.default.
|
|
64
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
65
65
|
/**
|
|
66
66
|
* The size of the marker.
|
|
67
67
|
*/
|
|
@@ -24,7 +24,7 @@ function ScatterMarker(props) {
|
|
|
24
24
|
cursor: other.onClick ? 'pointer' : 'unset'
|
|
25
25
|
}, other));
|
|
26
26
|
}
|
|
27
|
-
process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes = {
|
|
27
|
+
process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes /* remove-proptypes */ = {
|
|
28
28
|
// ----------------------------- Warning --------------------------------
|
|
29
29
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
30
30
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -53,7 +53,7 @@ process.env.NODE_ENV !== "production" ? ScatterMarker.propTypes = {
|
|
|
53
53
|
/**
|
|
54
54
|
* The series ID.
|
|
55
55
|
*/
|
|
56
|
-
seriesId: PropTypes.
|
|
56
|
+
seriesId: PropTypes.string.isRequired,
|
|
57
57
|
/**
|
|
58
58
|
* The size of the marker.
|
|
59
59
|
*/
|
|
@@ -8,8 +8,15 @@ export interface ScatterPlotSlotProps extends ScatterSlotProps {
|
|
|
8
8
|
scatter?: Partial<ScatterProps> & ScatterPropsOverrides;
|
|
9
9
|
}
|
|
10
10
|
export type RendererType = 'svg-single' | 'svg-batch';
|
|
11
|
-
export interface ScatterPlotProps extends Pick<ScatterProps, '
|
|
11
|
+
export interface ScatterPlotProps extends Pick<ScatterProps, 'classes'> {
|
|
12
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Callback fired when a marker is clicked directly.
|
|
15
|
+
* For closest-point clicks (the `ScatterChart` default), pass `onItemClick` to the chart container instead.
|
|
16
|
+
* @param {MouseEvent} event Mouse event recorded on the `<svg/>` element.
|
|
17
|
+
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
18
|
+
*/
|
|
19
|
+
onItemClick?: ScatterProps['onItemClick'];
|
|
13
20
|
/**
|
|
14
21
|
* Overridable component slots.
|
|
15
22
|
* @default {}
|
|
@@ -22,13 +29,15 @@ export interface ScatterPlotProps extends Pick<ScatterProps, 'onItemClick' | 'cl
|
|
|
22
29
|
slotProps?: ScatterPlotSlotProps;
|
|
23
30
|
/**
|
|
24
31
|
* The type of renderer to use for the scatter plot.
|
|
25
|
-
* - `svg-single`: Renders every scatter item in a `<circle />` element.
|
|
32
|
+
* - `svg-single`: Renders every scatter item in a `<circle />` element, synchronously.
|
|
33
|
+
* - `svg-progressive`: Renders every scatter item in a `<circle />` element, in progressive batches that paint over several animation frames to keep the main thread responsive.
|
|
26
34
|
* - `svg-batch`: Batch renders scatter items in `<path />` elements for better performance with large datasets, at the cost of some limitations.
|
|
27
35
|
* Read more: https://mui.com/x/react-charts/scatter/#performance
|
|
28
36
|
*
|
|
37
|
+
* When not set, defaults to `svg-single`. Enable the `progressiveRendering` experimental feature to auto-select `svg-progressive` above an internal point-count threshold; this will become the default in the next major version.
|
|
29
38
|
* @default 'svg-single'
|
|
30
39
|
*/
|
|
31
|
-
renderer?: RendererType;
|
|
40
|
+
renderer?: RendererType | 'svg-progressive';
|
|
32
41
|
}
|
|
33
42
|
/**
|
|
34
43
|
* Demos:
|