@mui/x-charts 8.16.0 → 8.18.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/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.js +1 -0
- package/BarChart/BarClipPath.d.ts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +6 -8
- package/BarChart/BarLabel/BarLabel.d.ts +6 -0
- package/BarChart/BarLabel/BarLabel.js +41 -4
- package/BarChart/BarLabel/BarLabelItem.d.ts +7 -1
- package/BarChart/BarLabel/BarLabelItem.js +4 -2
- package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -3
- package/BarChart/BarLabel/BarLabelPlot.js +42 -38
- package/BarChart/BarPlot.d.ts +13 -3
- package/BarChart/BarPlot.js +8 -3
- package/BarChart/seriesConfig/{extremums.d.ts → bar/extremums.d.ts} +1 -1
- package/BarChart/seriesConfig/{extremums.js → bar/extremums.js} +1 -1
- package/BarChart/seriesConfig/bar/getColor.d.ts +3 -0
- package/BarChart/seriesConfig/{getColor.js → bar/getColor.js} +28 -5
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +3 -0
- package/BarChart/seriesConfig/bar/legend.d.ts +3 -0
- package/BarChart/seriesConfig/{legend.js → bar/legend.js} +1 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +3 -0
- package/BarChart/seriesConfig/{seriesProcessor.js → bar/seriesProcessor.js} +1 -1
- package/BarChart/seriesConfig/bar/tooltip.d.ts +4 -0
- package/BarChart/seriesConfig/{tooltip.js → bar/tooltip.js} +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +3 -0
- package/BarChart/seriesConfig/{tooltipPosition.js → bar/tooltipPosition.js} +1 -1
- package/BarChart/seriesConfig/index.d.ts +1 -1
- package/BarChart/seriesConfig/index.js +9 -9
- package/BarChart/types.d.ts +2 -0
- package/BarChart/useBarPlotData.js +5 -3
- package/CHANGELOG.md +208 -1
- package/ChartDataProvider/ChartDataProvider.d.ts +1 -1
- package/ChartsAxis/ChartsAxis.d.ts +1 -2
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -2
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +1 -2
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +1 -2
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +1 -2
- package/ChartsClipPath/ChartsClipPath.d.ts +1 -2
- package/ChartsClipPath/ChartsClipPath.js +0 -2
- package/ChartsGrid/ChartsGrid.d.ts +1 -2
- package/ChartsGrid/ChartsGrid.js +0 -2
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +1 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +1 -2
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -2
- package/ChartsOverlay/ChartsLoadingOverlay.js +0 -2
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -2
- package/ChartsOverlay/ChartsNoDataOverlay.js +0 -2
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -2
- package/ChartsReferenceLine/ChartsReferenceLine.js +0 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +0 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.js +0 -2
- package/ChartsSurface/ChartsSurface.js +8 -9
- package/ChartsSurface/chartsSurfaceClasses.d.ts +6 -0
- package/ChartsSurface/chartsSurfaceClasses.js +21 -0
- package/ChartsSurface/index.d.ts +2 -1
- package/ChartsSurface/index.js +12 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -2
- package/ChartsTooltip/ChartsAxisTooltipContent.js +0 -2
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -2
- package/ChartsTooltip/ChartsItemTooltipContent.js +0 -2
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -2
- package/ChartsTooltip/ChartsTooltip.js +0 -2
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +13 -14
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsWrapper/ChartsWrapper.d.ts +1 -1
- package/ChartsWrapper/ChartsWrapper.js +3 -5
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +1 -2
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -2
- package/ChartsXAxis/ChartsXAxis.js +0 -2
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +1 -2
- package/ChartsXAxis/useAxisTicksProps.d.ts +32 -32
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +1 -2
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -2
- package/ChartsYAxis/ChartsYAxis.js +0 -2
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +1 -2
- package/ChartsYAxis/useAxisTicksProps.d.ts +32 -32
- package/Gauge/GaugeProvider.d.ts +1 -1
- package/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/Gauge/GaugeValueArc.d.ts +1 -1
- package/Gauge/GaugeValueText.d.ts +1 -2
- package/Gauge/GaugeValueText.js +0 -2
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.d.ts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/FocusedMark.d.ts +1 -2
- package/LineChart/FocusedMark.js +0 -2
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LinePlot.d.ts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.ts +1 -1
- package/LineChart/seriesConfig/getColor.js +28 -5
- package/LineChart/seriesConfig/index.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +2 -2
- package/PieChart/PieArcLabelPlot.d.ts +1 -1
- package/PieChart/PieArcPlot.d.ts +1 -1
- package/PieChart/PiePlot.d.ts +1 -2
- package/PieChart/PiePlot.js +0 -2
- package/PieChart/seriesConfig/index.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +7 -3
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -2
- package/RadarChart/RadarGrid/RadarGrid.d.ts +1 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -2
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +1 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +1 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +1 -3
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -0
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -1
- package/RadarChart/seriesConfig/getColor.js +12 -1
- package/ScatterChart/BatchScatter.d.ts +1 -2
- package/ScatterChart/BatchScatter.js +4 -4
- package/ScatterChart/Scatter.d.ts +7 -2
- package/ScatterChart/Scatter.js +7 -3
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/ScatterPlot.js +1 -1
- package/ScatterChart/seriesConfig/getColor.js +36 -7
- package/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +2 -2
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.js +4 -4
- package/context/ChartProvider/ChartProvider.types.d.ts +3 -3
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/esm/BarChart/AnimatedBarElement.d.ts +1 -1
- package/esm/BarChart/BarChart.js +1 -0
- package/esm/BarChart/BarClipPath.d.ts +1 -1
- package/esm/BarChart/BarElement.d.ts +1 -1
- package/esm/BarChart/BarElement.js +6 -8
- package/esm/BarChart/BarLabel/BarLabel.d.ts +6 -0
- package/esm/BarChart/BarLabel/BarLabel.js +41 -4
- package/esm/BarChart/BarLabel/BarLabelItem.d.ts +7 -1
- package/esm/BarChart/BarLabel/BarLabelItem.js +4 -2
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +2 -3
- package/esm/BarChart/BarLabel/BarLabelPlot.js +42 -37
- package/esm/BarChart/BarPlot.d.ts +13 -3
- package/esm/BarChart/BarPlot.js +8 -3
- package/esm/BarChart/seriesConfig/{extremums.d.ts → bar/extremums.d.ts} +1 -1
- package/esm/BarChart/seriesConfig/{extremums.js → bar/extremums.js} +1 -1
- package/esm/BarChart/seriesConfig/bar/getColor.d.ts +3 -0
- package/esm/BarChart/seriesConfig/{getColor.js → bar/getColor.js} +28 -5
- package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/BarChart/seriesConfig/bar/legend.d.ts +3 -0
- package/esm/BarChart/seriesConfig/{legend.js → bar/legend.js} +1 -1
- package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +3 -0
- package/esm/BarChart/seriesConfig/{seriesProcessor.js → bar/seriesProcessor.js} +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltip.d.ts +4 -0
- package/esm/BarChart/seriesConfig/{tooltip.js → bar/tooltip.js} +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.d.ts +3 -0
- package/esm/BarChart/seriesConfig/{tooltipPosition.js → bar/tooltipPosition.js} +1 -1
- package/esm/BarChart/seriesConfig/index.d.ts +1 -1
- package/esm/BarChart/seriesConfig/index.js +8 -8
- package/esm/BarChart/types.d.ts +2 -0
- package/esm/BarChart/useBarPlotData.js +5 -3
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +1 -1
- package/esm/ChartsAxis/ChartsAxis.d.ts +1 -2
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -2
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +1 -2
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +1 -2
- package/esm/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +1 -2
- package/esm/ChartsClipPath/ChartsClipPath.d.ts +1 -2
- package/esm/ChartsClipPath/ChartsClipPath.js +0 -1
- package/esm/ChartsGrid/ChartsGrid.d.ts +1 -2
- package/esm/ChartsGrid/ChartsGrid.js +0 -1
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +1 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +1 -2
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -2
- package/esm/ChartsOverlay/ChartsLoadingOverlay.js +0 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -2
- package/esm/ChartsOverlay/ChartsNoDataOverlay.js +0 -1
- package/esm/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -2
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +0 -1
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +0 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -2
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +0 -1
- package/esm/ChartsSurface/ChartsSurface.js +9 -10
- package/esm/ChartsSurface/chartsSurfaceClasses.d.ts +6 -0
- package/esm/ChartsSurface/chartsSurfaceClasses.js +13 -0
- package/esm/ChartsSurface/index.d.ts +2 -1
- package/esm/ChartsSurface/index.js +2 -1
- package/esm/ChartsText/ChartsText.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -2
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +0 -1
- package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -2
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +0 -1
- package/esm/ChartsTooltip/ChartsTooltip.d.ts +1 -2
- package/esm/ChartsTooltip/ChartsTooltip.js +0 -1
- package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +13 -14
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/esm/ChartsWrapper/ChartsWrapper.d.ts +1 -1
- package/esm/ChartsWrapper/ChartsWrapper.js +4 -6
- package/esm/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -2
- package/esm/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +1 -2
- package/esm/ChartsXAxis/ChartsXAxis.d.ts +1 -2
- package/esm/ChartsXAxis/ChartsXAxis.js +0 -1
- package/esm/ChartsXAxis/ChartsXAxisImpl.d.ts +1 -2
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +32 -32
- package/esm/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -2
- package/esm/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +1 -2
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +1 -2
- package/esm/ChartsYAxis/ChartsYAxis.js +0 -1
- package/esm/ChartsYAxis/ChartsYAxisImpl.d.ts +1 -2
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +32 -32
- package/esm/Gauge/GaugeProvider.d.ts +1 -1
- package/esm/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/esm/Gauge/GaugeValueArc.d.ts +1 -1
- package/esm/Gauge/GaugeValueText.d.ts +1 -2
- package/esm/Gauge/GaugeValueText.js +0 -1
- package/esm/LineChart/AnimatedArea.d.ts +1 -1
- package/esm/LineChart/AppearingMask.d.ts +1 -1
- package/esm/LineChart/AreaElement.d.ts +1 -1
- package/esm/LineChart/AreaPlot.d.ts +1 -1
- package/esm/LineChart/CircleMarkElement.d.ts +1 -1
- package/esm/LineChart/FocusedMark.d.ts +1 -2
- package/esm/LineChart/FocusedMark.js +0 -1
- package/esm/LineChart/LineElement.d.ts +1 -1
- package/esm/LineChart/LineHighlightElement.d.ts +1 -1
- package/esm/LineChart/LineHighlightPlot.d.ts +1 -1
- package/esm/LineChart/LinePlot.d.ts +1 -1
- package/esm/LineChart/MarkElement.d.ts +1 -1
- package/esm/LineChart/MarkPlot.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getColor.js +28 -5
- package/esm/LineChart/seriesConfig/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.js +1 -1
- package/esm/PieChart/PieArcLabelPlot.d.ts +1 -1
- package/esm/PieChart/PieArcPlot.d.ts +1 -1
- package/esm/PieChart/PiePlot.d.ts +1 -2
- package/esm/PieChart/PiePlot.js +0 -1
- package/esm/PieChart/seriesConfig/index.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.js +1 -1
- package/esm/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/esm/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -2
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +7 -2
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -2
- package/esm/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -2
- package/esm/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -2
- package/esm/RadarChart/RadarGrid/RadarGrid.d.ts +1 -2
- package/esm/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -2
- package/esm/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -2
- package/esm/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +1 -2
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +1 -2
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -2
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +1 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -1
- package/esm/RadarChart/seriesConfig/getColor.js +12 -1
- package/esm/ScatterChart/BatchScatter.d.ts +1 -2
- package/esm/ScatterChart/BatchScatter.js +4 -4
- package/esm/ScatterChart/Scatter.d.ts +7 -2
- package/esm/ScatterChart/Scatter.js +7 -3
- package/esm/ScatterChart/ScatterMarker.d.ts +1 -1
- package/esm/ScatterChart/ScatterPlot.d.ts +1 -1
- package/esm/ScatterChart/ScatterPlot.js +1 -1
- package/esm/ScatterChart/seriesConfig/getColor.js +36 -7
- package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.js +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.js +4 -4
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +3 -3
- package/esm/context/ChartsSlotsContext.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.js +61 -12
- package/esm/hooks/index.d.ts +1 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/useAxis.d.ts +116 -16
- package/esm/hooks/useAxis.js +122 -18
- package/esm/hooks/useDataset.d.ts +6 -0
- package/esm/hooks/useDataset.js +13 -0
- package/esm/hooks/useInteractionItemProps.js +2 -5
- package/esm/hooks/useIsItemFocused.js +5 -3
- package/esm/hooks/useItemHighlighted.js +2 -2
- package/esm/hooks/useItemHighlightedGetter.js +0 -1
- package/esm/hooks/useScale.d.ts +25 -6
- package/esm/hooks/useScale.js +29 -8
- package/esm/index.js +1 -1
- package/esm/internals/colorScale.d.ts +1 -1
- package/esm/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +1 -2
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -2
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +0 -1
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -2
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.js +0 -1
- package/esm/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -2
- package/esm/internals/createSeriesSelectorOfType.js +5 -3
- package/esm/internals/getSeriesColorFn.d.ts +5 -0
- package/esm/internals/getSeriesColorFn.js +3 -0
- package/esm/internals/index.d.ts +1 -1
- package/esm/internals/index.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +7 -15
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +2 -4
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +28 -36
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +11 -17
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +27 -21
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.js +1 -6
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.js +6 -10
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -4
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +1 -3
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +10 -10
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -7
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +8 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +1 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +19 -35
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +29 -57
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +15 -15
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +21 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +11 -17
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +12 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +15 -9
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +62 -86
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +69 -45
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +14 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +3 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +17 -33
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +23 -22
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +9 -15
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +2 -4
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +12 -16
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -21
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +8 -7
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +29 -43
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +14 -28
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +7 -9
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +47 -53
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +22 -36
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +3 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +3 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +11 -21
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +14 -26
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +11 -10
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -3
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +3 -5
- package/esm/internals/plugins/models/plugin.d.ts +3 -2
- package/esm/internals/plugins/utils/selectors.d.ts +13 -17
- package/esm/internals/plugins/utils/selectors.js +3 -35
- package/esm/internals/plugins/utils/useLazySelectorEffect.d.ts +2 -2
- package/esm/internals/plugins/utils/useLazySelectorEffect.js +2 -2
- package/esm/internals/store/useCharts.d.ts +3 -4
- package/esm/internals/store/useCharts.js +2 -2
- package/esm/internals/store/useSelector.d.ts +2 -4
- package/esm/internals/store/useSelector.js +2 -8
- package/esm/internals/store/useStore.d.ts +3 -5
- package/esm/locales/index.d.ts +2 -1
- package/esm/locales/index.js +1 -0
- package/esm/locales/nbNO.d.ts +115 -0
- package/esm/locales/nbNO.js +113 -0
- package/esm/models/seriesType/bar.d.ts +16 -0
- package/esm/models/seriesType/common.d.ts +22 -6
- package/esm/models/seriesType/config.d.ts +7 -16
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.js +61 -12
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +12 -0
- package/hooks/useAxis.d.ts +116 -16
- package/hooks/useAxis.js +122 -18
- package/hooks/useDataset.d.ts +6 -0
- package/hooks/useDataset.js +18 -0
- package/hooks/useInteractionItemProps.js +2 -5
- package/hooks/useIsItemFocused.js +5 -3
- package/hooks/useItemHighlighted.js +2 -2
- package/hooks/useScale.d.ts +25 -6
- package/hooks/useScale.js +29 -8
- package/index.js +1 -1
- package/internals/colorScale.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +1 -2
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -2
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +0 -2
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -2
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.js +0 -2
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -2
- package/internals/createSeriesSelectorOfType.js +6 -3
- package/internals/getSeriesColorFn.d.ts +5 -0
- package/internals/getSeriesColorFn.js +9 -0
- package/internals/index.d.ts +1 -1
- package/internals/index.js +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +7 -15
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +2 -4
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +28 -36
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +11 -17
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +27 -21
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.js +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
- package/internals/plugins/corePlugins/useChartId/useChartId.js +6 -10
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -4
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +1 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +10 -10
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -7
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +9 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +19 -35
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +29 -57
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +15 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +22 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +11 -17
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +14 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +62 -86
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +70 -46
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +14 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +17 -33
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +23 -23
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +9 -15
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +2 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +12 -16
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -21
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +8 -7
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +29 -43
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +14 -28
- package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +7 -9
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +47 -53
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +22 -36
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +4 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +3 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +11 -21
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +14 -26
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +12 -10
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -3
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +3 -5
- package/internals/plugins/models/plugin.d.ts +3 -2
- package/internals/plugins/utils/selectors.d.ts +13 -17
- package/internals/plugins/utils/selectors.js +3 -35
- package/internals/plugins/utils/useLazySelectorEffect.d.ts +2 -2
- package/internals/plugins/utils/useLazySelectorEffect.js +2 -2
- package/internals/store/useCharts.d.ts +3 -4
- package/internals/store/useCharts.js +2 -2
- package/internals/store/useSelector.d.ts +2 -4
- package/internals/store/useSelector.js +2 -10
- package/internals/store/useStore.d.ts +3 -5
- package/locales/index.d.ts +2 -1
- package/locales/index.js +11 -0
- package/locales/nbNO.d.ts +115 -0
- package/locales/nbNO.js +119 -0
- package/models/seriesType/bar.d.ts +16 -0
- package/models/seriesType/common.d.ts +22 -6
- package/models/seriesType/config.d.ts +7 -16
- package/package.json +5 -5
- package/BarChart/seriesConfig/getColor.d.ts +0 -3
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/BarChart/seriesConfig/legend.d.ts +0 -3
- package/BarChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/BarChart/seriesConfig/tooltip.d.ts +0 -4
- package/BarChart/seriesConfig/tooltipPosition.d.ts +0 -3
- package/esm/BarChart/seriesConfig/getColor.d.ts +0 -3
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/esm/BarChart/seriesConfig/legend.d.ts +0 -3
- package/esm/BarChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/esm/BarChart/seriesConfig/tooltip.d.ts +0 -4
- package/esm/BarChart/seriesConfig/tooltipPosition.d.ts +0 -3
- package/esm/internals/plugins/utils/ChartStore.d.ts +0 -13
- package/esm/internals/plugins/utils/ChartStore.js +0 -22
- package/internals/plugins/utils/ChartStore.d.ts +0 -13
- package/internals/plugins/utils/ChartStore.js +0 -29
- /package/BarChart/seriesConfig/{getSeriesWithDefaultValues.js → bar/getSeriesWithDefaultValues.js} +0 -0
- /package/esm/BarChart/seriesConfig/{getSeriesWithDefaultValues.js → bar/getSeriesWithDefaultValues.js} +0 -0
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.ChartsYAxis = ChartsYAxis;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _warning = require("@mui/x-internals/warning");
|
|
14
12
|
var _hooks = require("../hooks");
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisScaleConfig, ChartsYAxisProps, ComputedAxis } from "../models/axis.js";
|
|
3
2
|
interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
|
|
4
3
|
axis: ComputedAxis<keyof AxisScaleConfig, any, ChartsYAxisProps>;
|
|
@@ -9,5 +8,5 @@ interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
|
|
|
9
8
|
export declare function ChartsYAxisImpl({
|
|
10
9
|
axis,
|
|
11
10
|
...inProps
|
|
12
|
-
}: ChartsYAxisImplProps):
|
|
11
|
+
}: ChartsYAxisImplProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartsYAxisProps } from "../models/axis.js";
|
|
2
2
|
import { ChartsText, ChartsTextProps } from "../ChartsText/index.js";
|
|
3
3
|
export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
4
|
-
yScale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number, never> | import("@mui/x-charts-vendor/d3-scale").
|
|
4
|
+
yScale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleSymLog<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleBand<{
|
|
5
5
|
toString(): string;
|
|
6
6
|
}> | import("@mui/x-charts-vendor/d3-scale").ScalePoint<{
|
|
7
7
|
toString(): string;
|
|
@@ -383,7 +383,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
383
383
|
}) | undefined;
|
|
384
384
|
ignoreTooltip?: boolean | undefined;
|
|
385
385
|
offset: number;
|
|
386
|
-
scaleType: "
|
|
386
|
+
scaleType: "log";
|
|
387
387
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
388
388
|
triggerTooltip?: boolean;
|
|
389
389
|
} | {
|
|
@@ -421,7 +421,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
421
421
|
}) | undefined;
|
|
422
422
|
ignoreTooltip?: boolean | undefined;
|
|
423
423
|
offset: number;
|
|
424
|
-
scaleType: "
|
|
424
|
+
scaleType: "log";
|
|
425
425
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
426
426
|
triggerTooltip?: boolean;
|
|
427
427
|
} | {
|
|
@@ -459,7 +459,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
459
459
|
}) | undefined;
|
|
460
460
|
ignoreTooltip?: boolean | undefined;
|
|
461
461
|
offset: number;
|
|
462
|
-
scaleType: "
|
|
462
|
+
scaleType: "log";
|
|
463
463
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
464
464
|
triggerTooltip?: boolean;
|
|
465
465
|
} | {
|
|
@@ -497,7 +497,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
497
497
|
}) | undefined;
|
|
498
498
|
ignoreTooltip?: boolean | undefined;
|
|
499
499
|
offset: number;
|
|
500
|
-
scaleType: "
|
|
500
|
+
scaleType: "log";
|
|
501
501
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
502
502
|
triggerTooltip?: boolean;
|
|
503
503
|
} | {
|
|
@@ -535,7 +535,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
535
535
|
}) | undefined;
|
|
536
536
|
ignoreTooltip?: boolean | undefined;
|
|
537
537
|
offset: number;
|
|
538
|
-
scaleType: "
|
|
538
|
+
scaleType: "log";
|
|
539
539
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
540
540
|
triggerTooltip?: boolean;
|
|
541
541
|
} | {
|
|
@@ -573,7 +573,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
573
573
|
}) | undefined;
|
|
574
574
|
ignoreTooltip?: boolean | undefined;
|
|
575
575
|
offset: number;
|
|
576
|
-
scaleType: "
|
|
576
|
+
scaleType: "log";
|
|
577
577
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
578
578
|
triggerTooltip?: boolean;
|
|
579
579
|
} | {
|
|
@@ -611,7 +611,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
611
611
|
}) | undefined;
|
|
612
612
|
ignoreTooltip?: boolean | undefined;
|
|
613
613
|
offset: number;
|
|
614
|
-
scaleType: "
|
|
614
|
+
scaleType: "log";
|
|
615
615
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
616
616
|
triggerTooltip?: boolean;
|
|
617
617
|
} | {
|
|
@@ -649,7 +649,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
649
649
|
}) | undefined;
|
|
650
650
|
ignoreTooltip?: boolean | undefined;
|
|
651
651
|
offset: number;
|
|
652
|
-
scaleType: "
|
|
652
|
+
scaleType: "log";
|
|
653
653
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
654
654
|
triggerTooltip?: boolean;
|
|
655
655
|
} | {
|
|
@@ -687,7 +687,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
687
687
|
}) | undefined;
|
|
688
688
|
ignoreTooltip?: boolean | undefined;
|
|
689
689
|
offset: number;
|
|
690
|
-
scaleType: "
|
|
690
|
+
scaleType: "log";
|
|
691
691
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
692
692
|
triggerTooltip?: boolean;
|
|
693
693
|
} | {
|
|
@@ -725,7 +725,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
725
725
|
}) | undefined;
|
|
726
726
|
ignoreTooltip?: boolean | undefined;
|
|
727
727
|
offset: number;
|
|
728
|
-
scaleType: "
|
|
728
|
+
scaleType: "linear";
|
|
729
729
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
730
730
|
triggerTooltip?: boolean;
|
|
731
731
|
} | {
|
|
@@ -763,7 +763,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
763
763
|
}) | undefined;
|
|
764
764
|
ignoreTooltip?: boolean | undefined;
|
|
765
765
|
offset: number;
|
|
766
|
-
scaleType: "
|
|
766
|
+
scaleType: "linear";
|
|
767
767
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
768
768
|
triggerTooltip?: boolean;
|
|
769
769
|
} | {
|
|
@@ -801,7 +801,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
801
801
|
}) | undefined;
|
|
802
802
|
ignoreTooltip?: boolean | undefined;
|
|
803
803
|
offset: number;
|
|
804
|
-
scaleType: "
|
|
804
|
+
scaleType: "linear";
|
|
805
805
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
806
806
|
triggerTooltip?: boolean;
|
|
807
807
|
} | {
|
|
@@ -839,7 +839,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
839
839
|
}) | undefined;
|
|
840
840
|
ignoreTooltip?: boolean | undefined;
|
|
841
841
|
offset: number;
|
|
842
|
-
scaleType: "
|
|
842
|
+
scaleType: "linear";
|
|
843
843
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
844
844
|
triggerTooltip?: boolean;
|
|
845
845
|
} | {
|
|
@@ -877,7 +877,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
877
877
|
}) | undefined;
|
|
878
878
|
ignoreTooltip?: boolean | undefined;
|
|
879
879
|
offset: number;
|
|
880
|
-
scaleType: "
|
|
880
|
+
scaleType: "linear";
|
|
881
881
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
882
882
|
triggerTooltip?: boolean;
|
|
883
883
|
} | {
|
|
@@ -915,7 +915,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
915
915
|
}) | undefined;
|
|
916
916
|
ignoreTooltip?: boolean | undefined;
|
|
917
917
|
offset: number;
|
|
918
|
-
scaleType: "
|
|
918
|
+
scaleType: "linear";
|
|
919
919
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
|
|
920
920
|
triggerTooltip?: boolean;
|
|
921
921
|
} | {
|
|
@@ -953,7 +953,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
953
953
|
}) | undefined;
|
|
954
954
|
ignoreTooltip?: boolean | undefined;
|
|
955
955
|
offset: number;
|
|
956
|
-
scaleType: "
|
|
956
|
+
scaleType: "linear";
|
|
957
957
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
958
958
|
triggerTooltip?: boolean;
|
|
959
959
|
} | {
|
|
@@ -991,7 +991,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
991
991
|
}) | undefined;
|
|
992
992
|
ignoreTooltip?: boolean | undefined;
|
|
993
993
|
offset: number;
|
|
994
|
-
scaleType: "
|
|
994
|
+
scaleType: "linear";
|
|
995
995
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
996
996
|
triggerTooltip?: boolean;
|
|
997
997
|
} | {
|
|
@@ -1029,7 +1029,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
1029
1029
|
}) | undefined;
|
|
1030
1030
|
ignoreTooltip?: boolean | undefined;
|
|
1031
1031
|
offset: number;
|
|
1032
|
-
scaleType: "
|
|
1032
|
+
scaleType: "linear";
|
|
1033
1033
|
colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
|
|
1034
1034
|
triggerTooltip?: boolean;
|
|
1035
1035
|
} | {
|
|
@@ -3438,23 +3438,29 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3438
3438
|
onTransitionRunCapture?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3439
3439
|
onTransitionStart?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3440
3440
|
onTransitionStartCapture?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3441
|
-
|
|
3442
|
-
|
|
3441
|
+
href?: string | undefined | undefined;
|
|
3442
|
+
media?: string | undefined | undefined;
|
|
3443
|
+
target?: string | undefined | undefined;
|
|
3443
3444
|
end?: number | string | undefined | undefined;
|
|
3444
|
-
|
|
3445
|
-
|
|
3445
|
+
mode?: number | string | undefined | undefined;
|
|
3446
|
+
ideographic?: number | string | undefined | undefined;
|
|
3447
|
+
alphabetic?: number | string | undefined | undefined;
|
|
3448
|
+
hanging?: number | string | undefined | undefined;
|
|
3449
|
+
mathematical?: number | string | undefined | undefined;
|
|
3450
|
+
origin?: number | string | undefined | undefined;
|
|
3446
3451
|
x?: number | string | undefined | undefined;
|
|
3447
3452
|
y?: number | string | undefined | undefined;
|
|
3448
3453
|
radius?: number | string | undefined | undefined;
|
|
3449
|
-
|
|
3454
|
+
cx?: number | string | undefined | undefined;
|
|
3455
|
+
cy?: number | string | undefined | undefined;
|
|
3456
|
+
min?: number | string | undefined | undefined;
|
|
3457
|
+
max?: number | string | undefined | undefined;
|
|
3450
3458
|
method?: string | undefined | undefined;
|
|
3451
|
-
target?: string | undefined | undefined;
|
|
3452
3459
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
3453
3460
|
accentHeight?: number | string | undefined | undefined;
|
|
3454
3461
|
accumulate?: "none" | "sum" | undefined | undefined;
|
|
3455
3462
|
additive?: "replace" | "sum" | undefined | undefined;
|
|
3456
3463
|
allowReorder?: "no" | "yes" | undefined | undefined;
|
|
3457
|
-
alphabetic?: number | string | undefined | undefined;
|
|
3458
3464
|
amplitude?: number | string | undefined | undefined;
|
|
3459
3465
|
arabicForm?: "initial" | "medial" | "terminal" | "isolated" | undefined | undefined;
|
|
3460
3466
|
ascent?: number | string | undefined | undefined;
|
|
@@ -3502,11 +3508,8 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3502
3508
|
glyphRef?: number | string | undefined | undefined;
|
|
3503
3509
|
gradientTransform?: string | undefined | undefined;
|
|
3504
3510
|
gradientUnits?: string | undefined | undefined;
|
|
3505
|
-
hanging?: number | string | undefined | undefined;
|
|
3506
3511
|
horizAdvX?: number | string | undefined | undefined;
|
|
3507
3512
|
horizOriginX?: number | string | undefined | undefined;
|
|
3508
|
-
href?: string | undefined | undefined;
|
|
3509
|
-
ideographic?: number | string | undefined | undefined;
|
|
3510
3513
|
in2?: number | string | undefined | undefined;
|
|
3511
3514
|
in?: string | undefined | undefined;
|
|
3512
3515
|
intercept?: number | string | undefined | undefined;
|
|
@@ -3529,13 +3532,10 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3529
3532
|
markerWidth?: number | string | undefined | undefined;
|
|
3530
3533
|
maskContentUnits?: number | string | undefined | undefined;
|
|
3531
3534
|
maskUnits?: number | string | undefined | undefined;
|
|
3532
|
-
mathematical?: number | string | undefined | undefined;
|
|
3533
|
-
mode?: number | string | undefined | undefined;
|
|
3534
3535
|
numOctaves?: number | string | undefined | undefined;
|
|
3535
3536
|
operator?: number | string | undefined | undefined;
|
|
3536
3537
|
orient?: number | string | undefined | undefined;
|
|
3537
3538
|
orientation?: number | string | undefined | undefined;
|
|
3538
|
-
origin?: number | string | undefined | undefined;
|
|
3539
3539
|
overlinePosition?: number | string | undefined | undefined;
|
|
3540
3540
|
overlineThickness?: number | string | undefined | undefined;
|
|
3541
3541
|
panose1?: number | string | undefined | undefined;
|
package/Gauge/GaugeProvider.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const GaugeContext: React.Context<Required<GaugeConfig> & Process
|
|
|
103
103
|
export interface GaugeProviderProps extends GaugeConfig, CircularConfig {
|
|
104
104
|
children: React.ReactNode;
|
|
105
105
|
}
|
|
106
|
-
export declare function GaugeProvider(props: GaugeProviderProps):
|
|
106
|
+
export declare function GaugeProvider(props: GaugeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
107
107
|
export declare function useGaugeState(): Required<GaugeConfig> & ProcessedCircularConfig & {
|
|
108
108
|
/**
|
|
109
109
|
* The maximal radius from (cx, cy) that fits the arc in the drawing area.
|
package/Gauge/GaugeValueArc.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartsTextProps } from "../ChartsText/index.js";
|
|
3
2
|
export interface GaugeFormatterParams {
|
|
4
3
|
value: number | null;
|
|
@@ -8,7 +7,7 @@ export interface GaugeFormatterParams {
|
|
|
8
7
|
export interface GaugeValueTextProps extends Omit<ChartsTextProps, 'text'> {
|
|
9
8
|
text?: string | ((params: GaugeFormatterParams) => string | null);
|
|
10
9
|
}
|
|
11
|
-
declare function GaugeValueText(props: GaugeValueTextProps):
|
|
10
|
+
declare function GaugeValueText(props: GaugeValueTextProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
11
|
declare namespace GaugeValueText {
|
|
13
12
|
var propTypes: any;
|
|
14
13
|
}
|
package/Gauge/GaugeValueText.js
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.GaugeValueText = GaugeValueText;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
13
|
var _GaugeProvider = require("./GaugeProvider");
|
|
@@ -19,7 +19,7 @@ export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'
|
|
|
19
19
|
*
|
|
20
20
|
* - [AreaElement API](https://mui.com/x/api/charts/animated-area/)
|
|
21
21
|
*/
|
|
22
|
-
declare function AnimatedArea(props: AnimatedAreaProps):
|
|
22
|
+
declare function AnimatedArea(props: AnimatedAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
declare namespace AnimatedArea {
|
|
24
24
|
var propTypes: any;
|
|
25
25
|
}
|
|
@@ -13,5 +13,5 @@ export declare const appearingMaskClasses: AppearingMaskClasses;
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare function AppearingMask(props: AppearingMaskProps):
|
|
16
|
+
export declare function AppearingMask(props: AppearingMaskProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -59,7 +59,7 @@ export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded'
|
|
|
59
59
|
*
|
|
60
60
|
* - [AreaElement API](https://mui.com/x/api/charts/area-element/)
|
|
61
61
|
*/
|
|
62
|
-
declare function AreaElement(props: AreaElementProps):
|
|
62
|
+
declare function AreaElement(props: AreaElementProps): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
declare namespace AreaElement {
|
|
64
64
|
var propTypes: any;
|
|
65
65
|
}
|
package/LineChart/AreaPlot.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
22
22
|
*
|
|
23
23
|
* - [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
|
|
24
24
|
*/
|
|
25
|
-
declare function AreaPlot(props: AreaPlotProps):
|
|
25
|
+
declare function AreaPlot(props: AreaPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
declare namespace AreaPlot {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
|
@@ -33,7 +33,7 @@ export type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'is
|
|
|
33
33
|
*
|
|
34
34
|
* - [CircleMarkElement API](https://mui.com/x/api/charts/circle-mark-element/)
|
|
35
35
|
*/
|
|
36
|
-
declare function CircleMarkElement(props: CircleMarkElementProps):
|
|
36
|
+
declare function CircleMarkElement(props: CircleMarkElementProps): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
declare namespace CircleMarkElement {
|
|
38
38
|
var propTypes: any;
|
|
39
39
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function FocusedMark(): React.JSX.Element | null;
|
|
1
|
+
export declare function FocusedMark(): import("react/jsx-runtime").JSX.Element | null;
|
package/LineChart/FocusedMark.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.FocusedMark = FocusedMark;
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
8
|
var _styles = require("@mui/material/styles");
|
|
11
9
|
var _useFocusedItem = require("../hooks/useFocusedItem");
|
|
12
10
|
var _hooks = require("../hooks");
|
|
@@ -59,7 +59,7 @@ export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded'
|
|
|
59
59
|
*
|
|
60
60
|
* - [LineElement API](https://mui.com/x/api/charts/line-element/)
|
|
61
61
|
*/
|
|
62
|
-
declare function LineElement(props: LineElementProps):
|
|
62
|
+
declare function LineElement(props: LineElementProps): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
declare namespace LineElement {
|
|
64
64
|
var propTypes: any;
|
|
65
65
|
}
|
|
@@ -29,7 +29,7 @@ export type LineHighlightElementProps = (LineHighlightElementCommonProps & ({
|
|
|
29
29
|
*
|
|
30
30
|
* - [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
|
|
31
31
|
*/
|
|
32
|
-
declare function LineHighlightElement(props: LineHighlightElementProps):
|
|
32
|
+
declare function LineHighlightElement(props: LineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
declare namespace LineHighlightElement {
|
|
34
34
|
var propTypes: any;
|
|
35
35
|
}
|
|
@@ -29,7 +29,7 @@ export interface LineHighlightPlotProps extends React.SVGAttributes<SVGSVGElemen
|
|
|
29
29
|
*
|
|
30
30
|
* - [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
|
|
31
31
|
*/
|
|
32
|
-
declare function LineHighlightPlot(props: LineHighlightPlotProps):
|
|
32
|
+
declare function LineHighlightPlot(props: LineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
33
|
declare namespace LineHighlightPlot {
|
|
34
34
|
var propTypes: any;
|
|
35
35
|
}
|
package/LineChart/LinePlot.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
21
21
|
*
|
|
22
22
|
* - [LinePlot API](https://mui.com/x/api/charts/line-plot/)
|
|
23
23
|
*/
|
|
24
|
-
declare function LinePlot(props: LinePlotProps):
|
|
24
|
+
declare function LinePlot(props: LinePlotProps): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
declare namespace LinePlot {
|
|
26
26
|
var propTypes: any;
|
|
27
27
|
}
|
|
@@ -35,7 +35,7 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
|
|
|
35
35
|
*
|
|
36
36
|
* - [MarkElement API](https://mui.com/x/api/charts/mark-element/)
|
|
37
37
|
*/
|
|
38
|
-
declare function MarkElement(props: MarkElementProps):
|
|
38
|
+
declare function MarkElement(props: MarkElementProps): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
declare namespace MarkElement {
|
|
40
40
|
var propTypes: any;
|
|
41
41
|
}
|
package/LineChart/MarkPlot.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
35
35
|
*
|
|
36
36
|
* - [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
|
|
37
37
|
*/
|
|
38
|
-
declare function MarkPlot(props: MarkPlotProps):
|
|
38
|
+
declare function MarkPlot(props: MarkPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
39
39
|
declare namespace MarkPlot {
|
|
40
40
|
var propTypes: any;
|
|
41
41
|
}
|
|
@@ -4,18 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _getSeriesColorFn = require("../../internals/getSeriesColorFn");
|
|
7
8
|
const getColor = (series, xAxis, yAxis) => {
|
|
8
9
|
const yColorScale = yAxis?.colorScale;
|
|
9
10
|
const xColorScale = xAxis?.colorScale;
|
|
11
|
+
const getSeriesColor = (0, _getSeriesColorFn.getSeriesColorFn)(series);
|
|
10
12
|
if (yColorScale) {
|
|
11
13
|
return dataIndex => {
|
|
12
14
|
if (dataIndex === undefined) {
|
|
13
15
|
return series.color;
|
|
14
16
|
}
|
|
15
17
|
const value = series.data[dataIndex];
|
|
16
|
-
const color = value === null ?
|
|
18
|
+
const color = value === null ? getSeriesColor({
|
|
19
|
+
value,
|
|
20
|
+
dataIndex
|
|
21
|
+
}) : yColorScale(value);
|
|
17
22
|
if (color === null) {
|
|
18
|
-
return
|
|
23
|
+
return getSeriesColor({
|
|
24
|
+
value,
|
|
25
|
+
dataIndex
|
|
26
|
+
});
|
|
19
27
|
}
|
|
20
28
|
return color;
|
|
21
29
|
};
|
|
@@ -26,13 +34,28 @@ const getColor = (series, xAxis, yAxis) => {
|
|
|
26
34
|
return series.color;
|
|
27
35
|
}
|
|
28
36
|
const value = xAxis.data?.[dataIndex];
|
|
29
|
-
const color = value === null ?
|
|
37
|
+
const color = value === null ? getSeriesColor({
|
|
38
|
+
value,
|
|
39
|
+
dataIndex
|
|
40
|
+
}) : xColorScale(value);
|
|
30
41
|
if (color === null) {
|
|
31
|
-
return
|
|
42
|
+
return getSeriesColor({
|
|
43
|
+
value,
|
|
44
|
+
dataIndex
|
|
45
|
+
});
|
|
32
46
|
}
|
|
33
47
|
return color;
|
|
34
48
|
};
|
|
35
49
|
}
|
|
36
|
-
return
|
|
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
|
+
};
|
|
37
60
|
};
|
|
38
61
|
var _default = exports.default = getColor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartSeriesTypeConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const lineSeriesConfig: ChartSeriesTypeConfig<'line'>;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.lineSeriesConfig = void 0;
|
|
9
9
|
var _extremums = require("./extremums");
|
|
10
10
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
11
11
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
@@ -13,7 +13,7 @@ var _legend = _interopRequireDefault(require("./legend"));
|
|
|
13
13
|
var _tooltip = _interopRequireWildcard(require("./tooltip"));
|
|
14
14
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
15
15
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
16
|
-
const
|
|
16
|
+
const lineSeriesConfig = exports.lineSeriesConfig = {
|
|
17
17
|
colorProcessor: _getColor.default,
|
|
18
18
|
seriesProcessor: _seriesProcessor.default,
|
|
19
19
|
legendGetter: _legend.default,
|
|
@@ -29,7 +29,7 @@ export interface PieArcLabelPlotProps extends Pick<DefaultizedPieSeriesType, 'da
|
|
|
29
29
|
*/
|
|
30
30
|
skipAnimation?: boolean;
|
|
31
31
|
}
|
|
32
|
-
declare function PieArcLabelPlot(props: PieArcLabelPlotProps):
|
|
32
|
+
declare function PieArcLabelPlot(props: PieArcLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
33
|
declare namespace PieArcLabelPlot {
|
|
34
34
|
var propTypes: any;
|
|
35
35
|
}
|
package/PieChart/PieArcPlot.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface PieArcPlotProps extends Pick<DefaultizedPieSeriesType, 'data' |
|
|
|
36
36
|
*/
|
|
37
37
|
skipAnimation?: boolean;
|
|
38
38
|
}
|
|
39
|
-
declare function PieArcPlot(props: PieArcPlotProps):
|
|
39
|
+
declare function PieArcPlot(props: PieArcPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
40
40
|
declare namespace PieArcPlot {
|
|
41
41
|
var propTypes: any;
|
|
42
42
|
}
|
package/PieChart/PiePlot.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PieArcPlotProps, PieArcPlotSlotProps, PieArcPlotSlots } from "./PieArcPlot.js";
|
|
3
2
|
import { PieArcLabelPlotSlots, PieArcLabelPlotSlotProps } from "./PieArcLabelPlot.js";
|
|
4
3
|
export interface PiePlotSlots extends PieArcPlotSlots, PieArcLabelPlotSlots {}
|
|
@@ -25,7 +24,7 @@ export interface PiePlotProps extends Pick<PieArcPlotProps, 'skipAnimation' | 'o
|
|
|
25
24
|
*
|
|
26
25
|
* - [PiePlot API](https://mui.com/x/api/charts/pie-plot/)
|
|
27
26
|
*/
|
|
28
|
-
declare function PiePlot(props: PiePlotProps):
|
|
27
|
+
declare function PiePlot(props: PiePlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
28
|
declare namespace PiePlot {
|
|
30
29
|
var propTypes: any;
|
|
31
30
|
}
|
package/PieChart/PiePlot.js
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.PiePlot = PiePlot;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _PieArcPlot = require("./PieArcPlot");
|
|
13
11
|
var _PieArcLabelPlot = require("./PieArcLabelPlot");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartSeriesTypeConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const pieSeriesConfig: ChartSeriesTypeConfig<'pie'>;
|
|
@@ -4,14 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.pieSeriesConfig = void 0;
|
|
8
8
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
9
9
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
10
10
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
12
12
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
13
13
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
14
|
-
const
|
|
14
|
+
const pieSeriesConfig = exports.pieSeriesConfig = {
|
|
15
15
|
colorProcessor: _getColor.default,
|
|
16
16
|
seriesProcessor: _seriesProcessor.default,
|
|
17
17
|
legendGetter: _legend.default,
|
|
@@ -22,7 +22,7 @@ export interface RadarAxisProps extends UseRadarAxisParams {
|
|
|
22
22
|
*/
|
|
23
23
|
classes?: Partial<RadarAxisClasses>;
|
|
24
24
|
}
|
|
25
|
-
declare function RadarAxis(props: RadarAxisProps):
|
|
25
|
+
declare function RadarAxis(props: RadarAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
26
|
declare namespace RadarAxis {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
|
@@ -8,13 +8,13 @@ export declare function getLabelAttributes(params: GetLabelAttributesParams): {
|
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
10
10
|
textAnchor: "inherit" | "end" | "start" | "middle" | undefined;
|
|
11
|
-
dominantBaseline: "inherit" | "auto" | "
|
|
11
|
+
dominantBaseline: "inherit" | "auto" | "text-before-edge" | "middle" | "central" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "use-script" | "no-change" | "reset-size" | undefined;
|
|
12
12
|
transform?: undefined;
|
|
13
13
|
} | {
|
|
14
14
|
x: number;
|
|
15
15
|
y: number;
|
|
16
16
|
textAnchor: "inherit" | "end" | "start" | "middle" | undefined;
|
|
17
|
-
dominantBaseline: "inherit" | "auto" | "
|
|
17
|
+
dominantBaseline: "inherit" | "auto" | "text-before-edge" | "middle" | "central" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "use-script" | "no-change" | "reset-size" | undefined;
|
|
18
18
|
transform: string;
|
|
19
19
|
};
|
|
20
20
|
export {};
|