@mui/x-charts 9.5.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 +151 -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/ChartsRadialDataProvider/ChartsRadialDataProvider.js +9 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +9 -1
- package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -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/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 +1 -1
- package/ChartsRotationAxis/index.d.ts +1 -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 +6 -26
- package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -26
- 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 +1 -1
- package/LineChart/AreaElement.mjs +1 -1
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/AreaPlot.mjs +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.js +4 -2
- package/LineChart/LineElement.mjs +4 -2
- 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 +3 -2
- package/LineChart/MarkElement.mjs +3 -2
- 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 +5 -3
- package/ScatterChart/ScatterChart.mjs +5 -3
- package/ScatterChart/ScatterMarker.js +2 -2
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.d.mts +8 -1
- package/ScatterChart/ScatterPlot.d.ts +8 -1
- package/ScatterChart/ScatterPlot.js +5 -2
- package/ScatterChart/ScatterPlot.mjs +5 -2
- package/ScatterChart/seriesConfig/getColor.js +6 -15
- package/ScatterChart/seriesConfig/getColor.mjs +6 -15
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/SparkLineChart/SparkLineChart.mjs +1 -1
- 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/index.d.mts +2 -0
- package/internals/index.d.ts +2 -0
- package/internals/index.js +8 -0
- package/internals/index.mjs +2 -0
- 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/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/resolveColorProcessor.js +4 -7
- package/internals/resolveColorProcessor.mjs +4 -7
- 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/package.json +7 -4
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,11 +19,8 @@ function resolveColorProcessor(params) {
|
|
|
19
19
|
return series.color;
|
|
20
20
|
}
|
|
21
21
|
const value = series.data[dataIndex];
|
|
22
|
-
const color = value
|
|
23
|
-
|
|
24
|
-
dataIndex
|
|
25
|
-
}) : valueColorScale(value);
|
|
26
|
-
if (color === null) {
|
|
22
|
+
const color = valueColorScale(value);
|
|
23
|
+
if (typeof color !== 'string') {
|
|
27
24
|
return getSeriesColor({
|
|
28
25
|
value,
|
|
29
26
|
dataIndex
|
|
@@ -42,8 +39,8 @@ function resolveColorProcessor(params) {
|
|
|
42
39
|
value: series.data[dataIndex],
|
|
43
40
|
dataIndex
|
|
44
41
|
};
|
|
45
|
-
const color =
|
|
46
|
-
if (color
|
|
42
|
+
const color = categoryColorScale(value);
|
|
43
|
+
if (typeof color !== 'string') {
|
|
47
44
|
return getSeriesColor(fallbackValue);
|
|
48
45
|
}
|
|
49
46
|
return color;
|
|
@@ -13,11 +13,8 @@ export function resolveColorProcessor(params) {
|
|
|
13
13
|
return series.color;
|
|
14
14
|
}
|
|
15
15
|
const value = series.data[dataIndex];
|
|
16
|
-
const color = value
|
|
17
|
-
|
|
18
|
-
dataIndex
|
|
19
|
-
}) : valueColorScale(value);
|
|
20
|
-
if (color === null) {
|
|
16
|
+
const color = valueColorScale(value);
|
|
17
|
+
if (typeof color !== 'string') {
|
|
21
18
|
return getSeriesColor({
|
|
22
19
|
value,
|
|
23
20
|
dataIndex
|
|
@@ -36,8 +33,8 @@ export function resolveColorProcessor(params) {
|
|
|
36
33
|
value: series.data[dataIndex],
|
|
37
34
|
dataIndex
|
|
38
35
|
};
|
|
39
|
-
const color =
|
|
40
|
-
if (color
|
|
36
|
+
const color = categoryColorScale(value);
|
|
37
|
+
if (typeof color !== 'string') {
|
|
41
38
|
return getSeriesColor(fallbackValue);
|
|
42
39
|
}
|
|
43
40
|
return color;
|
package/models/axis.d.mts
CHANGED
|
@@ -167,8 +167,13 @@ type AxisSideConfig<AxisProps extends ChartsCartesianAxisProps> = {
|
|
|
167
167
|
*/
|
|
168
168
|
width?: AxisProps extends ChartsYAxisProps ? number | 'auto' : never;
|
|
169
169
|
};
|
|
170
|
-
export interface ChartsRotationAxisProps extends ChartsAxisProps {
|
|
170
|
+
export interface ChartsRotationAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
|
|
171
171
|
axis?: 'rotation';
|
|
172
|
+
/**
|
|
173
|
+
* If true, the tick labels are not rendered.
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
disableTickLabel?: boolean;
|
|
172
177
|
/**
|
|
173
178
|
* The start angle (in deg).
|
|
174
179
|
*/
|
|
@@ -204,16 +209,27 @@ export interface ChartsRotationAxisProps extends ChartsAxisProps {
|
|
|
204
209
|
*/
|
|
205
210
|
classes?: Partial<ChartsRadialAxisClasses>;
|
|
206
211
|
}
|
|
207
|
-
export interface ChartsRadiusAxisProps extends ChartsAxisProps {
|
|
212
|
+
export interface ChartsRadiusAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
|
|
208
213
|
axis?: 'radius';
|
|
214
|
+
/**
|
|
215
|
+
* If true, the tick labels are not rendered.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
disableTickLabel?: boolean;
|
|
209
219
|
/**
|
|
210
220
|
* The minimal radius.
|
|
221
|
+
* Can be a number (in pixels), a pixel string (for example `'20px'`), or a percentage string
|
|
222
|
+
* (for example `'20%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
223
|
+
* @default 0
|
|
211
224
|
*/
|
|
212
|
-
minRadius?: number;
|
|
225
|
+
minRadius?: number | string;
|
|
213
226
|
/**
|
|
214
227
|
* The maximal radius.
|
|
228
|
+
* Can be a number (in pixels), a pixel string (for example `'80px'`), or a percentage string
|
|
229
|
+
* (for example `'80%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
230
|
+
* @default '100%'
|
|
215
231
|
*/
|
|
216
|
-
maxRadius?: number;
|
|
232
|
+
maxRadius?: number | string;
|
|
217
233
|
/**
|
|
218
234
|
* The position of the axis in polar coordinates.
|
|
219
235
|
* It can be 'start', 'end', or a specific angle in degrees.
|
package/models/axis.d.ts
CHANGED
|
@@ -167,8 +167,13 @@ type AxisSideConfig<AxisProps extends ChartsCartesianAxisProps> = {
|
|
|
167
167
|
*/
|
|
168
168
|
width?: AxisProps extends ChartsYAxisProps ? number | 'auto' : never;
|
|
169
169
|
};
|
|
170
|
-
export interface ChartsRotationAxisProps extends ChartsAxisProps {
|
|
170
|
+
export interface ChartsRotationAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
|
|
171
171
|
axis?: 'rotation';
|
|
172
|
+
/**
|
|
173
|
+
* If true, the tick labels are not rendered.
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
disableTickLabel?: boolean;
|
|
172
177
|
/**
|
|
173
178
|
* The start angle (in deg).
|
|
174
179
|
*/
|
|
@@ -204,16 +209,27 @@ export interface ChartsRotationAxisProps extends ChartsAxisProps {
|
|
|
204
209
|
*/
|
|
205
210
|
classes?: Partial<ChartsRadialAxisClasses>;
|
|
206
211
|
}
|
|
207
|
-
export interface ChartsRadiusAxisProps extends ChartsAxisProps {
|
|
212
|
+
export interface ChartsRadiusAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
|
|
208
213
|
axis?: 'radius';
|
|
214
|
+
/**
|
|
215
|
+
* If true, the tick labels are not rendered.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
disableTickLabel?: boolean;
|
|
209
219
|
/**
|
|
210
220
|
* The minimal radius.
|
|
221
|
+
* Can be a number (in pixels), a pixel string (for example `'20px'`), or a percentage string
|
|
222
|
+
* (for example `'20%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
223
|
+
* @default 0
|
|
211
224
|
*/
|
|
212
|
-
minRadius?: number;
|
|
225
|
+
minRadius?: number | string;
|
|
213
226
|
/**
|
|
214
227
|
* The maximal radius.
|
|
228
|
+
* Can be a number (in pixels), a pixel string (for example `'80px'`), or a percentage string
|
|
229
|
+
* (for example `'80%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
230
|
+
* @default '100%'
|
|
215
231
|
*/
|
|
216
|
-
maxRadius?: number;
|
|
232
|
+
maxRadius?: number | string;
|
|
217
233
|
/**
|
|
218
234
|
* The position of the axis in polar coordinates.
|
|
219
235
|
* It can be 'start', 'end', or a specific angle in degrees.
|
|
@@ -14,6 +14,10 @@ export interface ContinuousColorConfig<Value = number | Date> {
|
|
|
14
14
|
* The colors to render. It can be an array with the extremum colors, or an interpolation function.
|
|
15
15
|
*/
|
|
16
16
|
color: readonly [string, string] | ((t: number) => string);
|
|
17
|
+
/**
|
|
18
|
+
* The color to use when an element is not part of the values.
|
|
19
|
+
*/
|
|
20
|
+
unknownColor?: string;
|
|
17
21
|
}
|
|
18
22
|
export interface PiecewiseColorConfig<Value = number | Date> {
|
|
19
23
|
type: 'piecewise';
|
|
@@ -26,6 +30,10 @@ export interface PiecewiseColorConfig<Value = number | Date> {
|
|
|
26
30
|
* Should contain N+1 colors, where N is the number of thresholds.
|
|
27
31
|
*/
|
|
28
32
|
colors: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The color to use when an element is not part of the values.
|
|
35
|
+
*/
|
|
36
|
+
unknownColor?: string;
|
|
29
37
|
}
|
|
30
38
|
export interface OrdinalColorConfig<Value = number | Date | string> {
|
|
31
39
|
type: 'ordinal';
|
package/models/colorMapping.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export interface ContinuousColorConfig<Value = number | Date> {
|
|
|
14
14
|
* The colors to render. It can be an array with the extremum colors, or an interpolation function.
|
|
15
15
|
*/
|
|
16
16
|
color: readonly [string, string] | ((t: number) => string);
|
|
17
|
+
/**
|
|
18
|
+
* The color to use when an element is not part of the values.
|
|
19
|
+
*/
|
|
20
|
+
unknownColor?: string;
|
|
17
21
|
}
|
|
18
22
|
export interface PiecewiseColorConfig<Value = number | Date> {
|
|
19
23
|
type: 'piecewise';
|
|
@@ -26,6 +30,10 @@ export interface PiecewiseColorConfig<Value = number | Date> {
|
|
|
26
30
|
* Should contain N+1 colors, where N is the number of thresholds.
|
|
27
31
|
*/
|
|
28
32
|
colors: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The color to use when an element is not part of the values.
|
|
35
|
+
*/
|
|
36
|
+
unknownColor?: string;
|
|
29
37
|
}
|
|
30
38
|
export interface OrdinalColorConfig<Value = number | Date | string> {
|
|
31
39
|
type: 'ordinal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.29.7",
|
|
31
|
-
"@mui/utils": "9.0.1",
|
|
31
|
+
"@mui/utils": "^9.0.1",
|
|
32
32
|
"bezier-easing": "^3.0.0",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"reselect": "^5.2.0",
|
|
36
36
|
"use-sync-external-store": "^1.6.0",
|
|
37
37
|
"@mui/x-charts-vendor": "^9.4.0",
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-
|
|
38
|
+
"@mui/x-internals": "^9.6.0",
|
|
39
|
+
"@mui/x-internal-gestures": "^9.6.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|
|
@@ -705,6 +705,9 @@
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
|
+
"imports": {
|
|
709
|
+
"#formatErrorMessage": "@mui/x-internals/formatErrorMessage"
|
|
710
|
+
},
|
|
708
711
|
"main": "./index.js",
|
|
709
712
|
"types": "./index.d.ts"
|
|
710
713
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Returns true after hydration is done on the client.
|
|
2
|
-
*
|
|
3
|
-
* Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
|
|
4
|
-
export declare function useIsHydrated(): boolean;
|
package/hooks/useIsHydrated.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Returns true after hydration is done on the client.
|
|
2
|
-
*
|
|
3
|
-
* Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
|
|
4
|
-
export declare function useIsHydrated(): boolean;
|
package/hooks/useIsHydrated.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.useIsHydrated = useIsHydrated;
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
/** Returns true after hydration is done on the client.
|
|
11
|
-
*
|
|
12
|
-
* Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
|
|
13
|
-
function useIsHydrated() {
|
|
14
|
-
const [isHydrated, setIsHydrated] = React.useState(false);
|
|
15
|
-
React.useEffect(() => {
|
|
16
|
-
setIsHydrated(true);
|
|
17
|
-
}, []);
|
|
18
|
-
return isHydrated;
|
|
19
|
-
}
|
package/hooks/useIsHydrated.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
/** Returns true after hydration is done on the client.
|
|
6
|
-
*
|
|
7
|
-
* Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
|
|
8
|
-
export function useIsHydrated() {
|
|
9
|
-
const [isHydrated, setIsHydrated] = React.useState(false);
|
|
10
|
-
React.useEffect(() => {
|
|
11
|
-
setIsHydrated(true);
|
|
12
|
-
}, []);
|
|
13
|
-
return isHydrated;
|
|
14
|
-
}
|