@mui/x-charts-pro 8.24.0 → 8.26.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/BarChartPro/BarChartPro.js +41 -0
- package/BarChartPro/BarChartPro.plugins.d.ts +1 -1
- package/CHANGELOG.md +196 -6479
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +21 -1
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +10 -3
- package/ChartsToolbarPro/internals/ChartsToolbarDivider.js +1 -0
- package/FunnelChart/FocusedFunnelSection.d.ts +2 -0
- package/FunnelChart/FocusedFunnelSection.js +71 -0
- package/FunnelChart/FunnelChart.js +44 -1
- package/FunnelChart/FunnelChart.plugins.d.ts +2 -2
- package/FunnelChart/FunnelChart.plugins.js +1 -1
- package/FunnelChart/FunnelPlot.js +6 -14
- package/FunnelChart/coordinateMapper.d.ts +1 -1
- package/FunnelChart/coordinateMapper.js +2 -2
- package/FunnelChart/curves/curve.types.d.ts +1 -1
- package/FunnelChart/get2DExtrema.d.ts +3 -0
- package/FunnelChart/get2DExtrema.js +28 -0
- package/FunnelChart/index.d.ts +1 -0
- package/FunnelChart/index.js +12 -0
- package/FunnelChart/seriesConfig/index.js +2 -0
- package/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/FunnelChart/seriesConfig/keyboardFocusHandler.js +23 -0
- package/FunnelChart/seriesConfig/tooltipPosition.js +4 -4
- package/Heatmap/FocusedHeatmapCell.d.ts +1 -0
- package/Heatmap/FocusedHeatmapCell.js +36 -0
- package/Heatmap/Heatmap.js +22 -1
- package/Heatmap/Heatmap.plugins.d.ts +2 -2
- package/Heatmap/Heatmap.plugins.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -9
- package/Heatmap/HeatmapItem.js +8 -14
- package/Heatmap/HeatmapPlot.js +37 -27
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +3 -3
- package/Heatmap/index.d.ts +2 -1
- package/Heatmap/index.js +12 -0
- package/Heatmap/internals/HeatmapCell.d.ts +21 -0
- package/Heatmap/internals/HeatmapCell.js +18 -0
- package/Heatmap/seriesConfig/extremums.js +2 -3
- package/Heatmap/seriesConfig/index.js +4 -1
- package/Heatmap/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/Heatmap/seriesConfig/keyboardFocusHandler.js +90 -0
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.d.ts +2 -0
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +18 -0
- package/LineChartPro/LineChartPro.js +41 -0
- package/LineChartPro/LineChartPro.plugins.d.ts +1 -1
- package/PieChartPro/PieChartPro.js +41 -0
- package/PieChartPro/PieChartPro.plugins.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +43 -0
- package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/SankeyChart/FocusedSankeyLink.d.ts +1 -0
- package/SankeyChart/FocusedSankeyLink.js +34 -0
- package/SankeyChart/FocusedSankeyNode.d.ts +1 -0
- package/SankeyChart/FocusedSankeyNode.js +40 -0
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +49 -15
- package/SankeyChart/SankeyChart.plugins.d.ts +2 -2
- package/SankeyChart/SankeyChart.plugins.js +1 -1
- package/SankeyChart/SankeyDataProvider.d.ts +19 -0
- package/SankeyChart/SankeyDataProvider.js +33 -0
- package/SankeyChart/SankeyLinkLabel.js +1 -2
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +9 -0
- package/SankeyChart/SankeyLinkLabelPlot.js +38 -0
- package/SankeyChart/SankeyLinkPlot.d.ts +17 -0
- package/SankeyChart/SankeyLinkPlot.js +54 -0
- package/SankeyChart/SankeyNodeLabel.js +9 -12
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +9 -0
- package/SankeyChart/SankeyNodeLabelPlot.js +39 -0
- package/SankeyChart/SankeyNodePlot.d.ts +17 -0
- package/SankeyChart/SankeyNodePlot.js +53 -0
- package/SankeyChart/SankeyPlot.js +18 -44
- package/SankeyChart/d3Sankey/sankey.js +1 -0
- package/SankeyChart/index.d.ts +10 -2
- package/SankeyChart/index.js +119 -7
- package/SankeyChart/sankeyHighlightHooks.d.ts +3 -0
- package/SankeyChart/sankeyHighlightHooks.js +25 -0
- package/SankeyChart/seriesConfig/index.js +2 -0
- package/SankeyChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/SankeyChart/seriesConfig/keyboardFocusHandler.js +130 -0
- package/ScatterChartPro/ScatterChartPro.js +41 -0
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/context/useChartProApiContext.js +1 -1
- package/esm/BarChartPro/BarChartPro.js +41 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +1 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +23 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +10 -3
- package/esm/ChartsToolbarPro/internals/ChartsToolbarDivider.js +2 -0
- package/esm/FunnelChart/FocusedFunnelSection.d.ts +2 -0
- package/esm/FunnelChart/FocusedFunnelSection.js +64 -0
- package/esm/FunnelChart/FunnelChart.js +44 -1
- package/esm/FunnelChart/FunnelChart.plugins.d.ts +2 -2
- package/esm/FunnelChart/FunnelChart.plugins.js +2 -2
- package/esm/FunnelChart/FunnelPlot.js +6 -14
- package/esm/FunnelChart/coordinateMapper.d.ts +1 -1
- package/esm/FunnelChart/coordinateMapper.js +2 -2
- package/esm/FunnelChart/curves/curve.types.d.ts +1 -1
- package/esm/FunnelChart/get2DExtrema.d.ts +3 -0
- package/esm/FunnelChart/get2DExtrema.js +21 -0
- package/esm/FunnelChart/index.d.ts +1 -0
- package/esm/FunnelChart/index.js +1 -0
- package/esm/FunnelChart/seriesConfig/index.js +2 -0
- package/esm/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/keyboardFocusHandler.js +17 -0
- package/esm/FunnelChart/seriesConfig/tooltipPosition.js +4 -4
- package/esm/Heatmap/FocusedHeatmapCell.d.ts +1 -0
- package/esm/Heatmap/FocusedHeatmapCell.js +29 -0
- package/esm/Heatmap/Heatmap.js +22 -1
- package/esm/Heatmap/Heatmap.plugins.d.ts +2 -2
- package/esm/Heatmap/Heatmap.plugins.js +2 -2
- package/esm/Heatmap/HeatmapItem.d.ts +1 -9
- package/esm/Heatmap/HeatmapItem.js +7 -13
- package/esm/Heatmap/HeatmapPlot.js +38 -28
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +3 -3
- package/esm/Heatmap/index.d.ts +2 -1
- package/esm/Heatmap/index.js +1 -0
- package/esm/Heatmap/internals/HeatmapCell.d.ts +21 -0
- package/esm/Heatmap/internals/HeatmapCell.js +12 -0
- package/esm/Heatmap/seriesConfig/extremums.js +2 -3
- package/esm/Heatmap/seriesConfig/index.js +5 -2
- package/esm/Heatmap/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/keyboardFocusHandler.js +83 -0
- package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.d.ts +2 -0
- package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.js +13 -0
- package/esm/LineChartPro/LineChartPro.js +41 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +1 -1
- package/esm/PieChartPro/PieChartPro.js +41 -0
- package/esm/PieChartPro/PieChartPro.plugins.d.ts +1 -1
- package/esm/RadarChartPro/RadarChartPro.js +44 -0
- package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/esm/SankeyChart/FocusedSankeyLink.d.ts +1 -0
- package/esm/SankeyChart/FocusedSankeyLink.js +27 -0
- package/esm/SankeyChart/FocusedSankeyNode.d.ts +1 -0
- package/esm/SankeyChart/FocusedSankeyNode.js +33 -0
- package/esm/SankeyChart/SankeyChart.d.ts +2 -2
- package/esm/SankeyChart/SankeyChart.js +48 -14
- package/esm/SankeyChart/SankeyChart.plugins.d.ts +2 -2
- package/esm/SankeyChart/SankeyChart.plugins.js +2 -2
- package/esm/SankeyChart/SankeyDataProvider.d.ts +19 -0
- package/esm/SankeyChart/SankeyDataProvider.js +27 -0
- package/esm/SankeyChart/SankeyLinkLabel.js +2 -3
- package/esm/SankeyChart/SankeyLinkLabelPlot.d.ts +9 -0
- package/esm/SankeyChart/SankeyLinkLabelPlot.js +34 -0
- package/esm/SankeyChart/SankeyLinkPlot.d.ts +17 -0
- package/esm/SankeyChart/SankeyLinkPlot.js +49 -0
- package/esm/SankeyChart/SankeyNodeLabel.js +9 -12
- package/esm/SankeyChart/SankeyNodeLabelPlot.d.ts +9 -0
- package/esm/SankeyChart/SankeyNodeLabelPlot.js +35 -0
- package/esm/SankeyChart/SankeyNodePlot.d.ts +17 -0
- package/esm/SankeyChart/SankeyNodePlot.js +48 -0
- package/esm/SankeyChart/SankeyPlot.js +20 -46
- package/esm/SankeyChart/d3Sankey/sankey.js +1 -0
- package/esm/SankeyChart/index.d.ts +10 -2
- package/esm/SankeyChart/index.js +10 -1
- package/esm/SankeyChart/sankeyHighlightHooks.d.ts +3 -0
- package/esm/SankeyChart/sankeyHighlightHooks.js +18 -0
- package/esm/SankeyChart/seriesConfig/index.js +2 -0
- package/esm/SankeyChart/seriesConfig/keyboardFocusHandler.d.ts +3 -0
- package/esm/SankeyChart/seriesConfig/keyboardFocusHandler.js +124 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +41 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
- package/esm/context/useChartProApiContext.d.ts +1 -1
- package/esm/context/useChartProApiContext.js +1 -1
- package/esm/hooks/useChartProApiRef.d.ts +1 -1
- package/esm/hooks/useChartProApiRef.js +3 -1
- package/esm/hooks/useFunnelSeries.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +2 -1
- package/esm/internals/plugins/allPlugins.d.ts +4 -4
- package/esm/internals/plugins/allPlugins.js +2 -2
- package/esm/models/seriesType/heatmap.d.ts +16 -1
- package/esm/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +4 -0
- package/esm/plugins/selectors/useChartHeatmapPosition.selectors.js +39 -0
- package/hooks/useChartProApiRef.d.ts +1 -1
- package/hooks/useChartProApiRef.js +2 -1
- package/hooks/useFunnelSeries.d.ts +1 -1
- package/index.js +1 -1
- package/internals/index.d.ts +2 -1
- package/internals/plugins/allPlugins.d.ts +4 -4
- package/internals/plugins/allPlugins.js +2 -2
- package/models/seriesType/heatmap.d.ts +16 -1
- package/package.json +5 -5
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +4 -0
- package/plugins/selectors/useChartHeatmapPosition.selectors.js +45 -0
|
@@ -215,6 +215,32 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
215
215
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
216
216
|
*/
|
|
217
217
|
id: _propTypes.default.string,
|
|
218
|
+
/**
|
|
219
|
+
* List of initially hidden series and/or items.
|
|
220
|
+
* Used for uncontrolled state.
|
|
221
|
+
*
|
|
222
|
+
* Different chart types use different keys.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* [
|
|
227
|
+
* {
|
|
228
|
+
* type: 'pie',
|
|
229
|
+
* seriesId: 'series-1',
|
|
230
|
+
* dataIndex: 3,
|
|
231
|
+
* },
|
|
232
|
+
* {
|
|
233
|
+
* type: 'line',
|
|
234
|
+
* seriesId: 'series-2',
|
|
235
|
+
* }
|
|
236
|
+
* ]
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
240
|
+
dataIndex: _propTypes.default.number,
|
|
241
|
+
seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
242
|
+
type: _propTypes.default.oneOf(['bar']).isRequired
|
|
243
|
+
})),
|
|
218
244
|
/**
|
|
219
245
|
* The list of zoom data related to each axis.
|
|
220
246
|
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
@@ -282,6 +308,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
282
308
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
283
309
|
*/
|
|
284
310
|
onItemClick: _propTypes.default.func,
|
|
311
|
+
/**
|
|
312
|
+
* The callback fired when the tooltip item changes.
|
|
313
|
+
*
|
|
314
|
+
* @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
|
|
315
|
+
*/
|
|
316
|
+
onTooltipItemChange: _propTypes.default.func,
|
|
285
317
|
/**
|
|
286
318
|
* Callback fired when the zoom has changed.
|
|
287
319
|
*
|
|
@@ -325,6 +357,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
325
357
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
326
358
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
327
359
|
title: _propTypes.default.string,
|
|
360
|
+
/**
|
|
361
|
+
* The tooltip item.
|
|
362
|
+
* Used when the tooltip is controlled.
|
|
363
|
+
*/
|
|
364
|
+
tooltipItem: _propTypes.default.shape({
|
|
365
|
+
dataIndex: _propTypes.default.number.isRequired,
|
|
366
|
+
seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
367
|
+
type: _propTypes.default.oneOf(['bar']).isRequired
|
|
368
|
+
}),
|
|
328
369
|
/**
|
|
329
370
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
330
371
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConvertSignaturesIntoPlugins, type UseChartZAxisSignature, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartBrushSignature, type UseChartVisibilityManagerSignature } from '@mui/x-charts/internals';
|
|
2
2
|
import { type UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
|
|
3
3
|
import { type UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
|
|
4
|
-
export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature
|
|
4
|
+
export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'bar'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'bar'>, UseChartHighlightSignature, UseChartVisibilityManagerSignature<'bar'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
5
5
|
export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginSignatures>;
|