@mui/x-charts 7.3.0 → 7.3.1
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.d.ts +1 -0
- package/BarChart/BarChart.js +8 -97
- package/BarChart/BarElement.d.ts +63 -62
- package/BarChart/BarElement.js +1 -2
- package/BarChart/BarPlot.js +3 -3
- package/CHANGELOG.md +79 -2
- package/ChartContainer/ChartContainer.js +3 -1
- package/ChartsAxis/ChartsAxis.js +7 -99
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsGrid/ChartsGrid.js +1 -1
- package/ChartsLegend/ChartsLegend.js +1 -1
- package/ChartsLegend/DefaultChartsLegend.js +1 -1
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsSurface.js +1 -1
- package/ChartsText/ChartsText.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +17 -4
- package/ChartsTooltip/ChartsItemTooltipContent.js +20 -4
- package/ChartsTooltip/ChartsTooltip.js +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +3 -7
- package/ChartsTooltip/ChartsTooltipTable.js +8 -9
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -5
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +2 -4
- package/ChartsTooltip/utils.js +1 -1
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
- package/ChartsXAxis/ChartsXAxis.js +1 -1
- package/ChartsYAxis/ChartsYAxis.js +1 -1
- package/Gauge/Gauge.js +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeProvider.js +1 -1
- package/Gauge/GaugeReferenceArc.js +1 -1
- package/Gauge/GaugeValueArc.js +1 -1
- package/Gauge/GaugeValueText.js +1 -1
- package/LineChart/AnimatedArea.d.ts +63 -62
- package/LineChart/AnimatedArea.js +1 -1
- package/LineChart/AnimatedLine.d.ts +63 -62
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/LineChart.d.ts +1 -0
- package/LineChart/LineChart.js +8 -97
- package/LineChart/LineElement.js +1 -1
- package/LineChart/LineHighlightElement.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/MarkElement.js +1 -1
- package/LineChart/MarkPlot.js +1 -1
- package/PieChart/PieArc.d.ts +1 -0
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArcLabel.d.ts +1 -0
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabelPlot.js +1 -1
- package/PieChart/PieArcPlot.js +1 -1
- package/PieChart/PieChart.d.ts +1 -0
- package/PieChart/PieChart.js +8 -97
- package/PieChart/PiePlot.js +1 -1
- package/PieChart/dataTransform/transition.d.ts +1 -0
- package/PieChart/dataTransform/useTransformData.js +1 -1
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +3 -1
- package/ResponsiveChartContainer/useChartContainerDimensions.js +1 -1
- package/ScatterChart/Scatter.js +1 -1
- package/ScatterChart/ScatterChart.d.ts +3 -1
- package/ScatterChart/ScatterChart.js +63 -124
- package/ScatterChart/ScatterPlot.js +9 -2
- package/ScatterChart/getColor.d.ts +2 -1
- package/ScatterChart/getColor.js +18 -1
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/context/CartesianContextProvider.d.ts +2 -1
- package/context/CartesianContextProvider.js +1 -1
- package/context/DrawingProvider.js +1 -1
- package/context/HighlightProvider.js +1 -1
- package/context/InteractionProvider.js +1 -1
- package/context/SeriesContextProvider.js +1 -1
- package/context/ZAxisContextProvider.d.ts +33 -0
- package/context/ZAxisContextProvider.js +98 -0
- package/context/index.d.ts +2 -0
- package/context/index.js +8 -1
- package/esm/BarChart/BarChart.js +8 -98
- package/esm/BarChart/BarElement.js +0 -1
- package/esm/BarChart/BarPlot.js +2 -2
- package/esm/ChartContainer/ChartContainer.js +3 -2
- package/esm/ChartsAxis/ChartsAxis.js +7 -100
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -2
- package/esm/ChartsGrid/ChartsGrid.js +1 -2
- package/esm/ChartsLegend/DefaultChartsLegend.js +1 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -2
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -2
- package/esm/ChartsSurface.js +1 -2
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +16 -3
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +19 -3
- package/esm/ChartsTooltip/ChartsTooltipTable.js +8 -8
- package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -6
- package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +2 -5
- package/esm/ChartsXAxis/ChartsXAxis.js +1 -2
- package/esm/ChartsYAxis/ChartsYAxis.js +1 -2
- package/esm/Gauge/Gauge.js +1 -2
- package/esm/LineChart/AnimatedArea.js +1 -2
- package/esm/LineChart/AnimatedLine.js +1 -2
- package/esm/LineChart/LineChart.js +8 -98
- package/esm/PieChart/PieChart.js +8 -98
- package/esm/PieChart/PiePlot.js +1 -2
- package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -0
- package/esm/ScatterChart/ScatterChart.js +63 -125
- package/esm/ScatterChart/ScatterPlot.js +8 -1
- package/esm/ScatterChart/getColor.js +18 -1
- package/esm/SparkLineChart/SparkLineChart.js +1 -2
- package/esm/context/ZAxisContextProvider.js +89 -0
- package/esm/context/index.js +1 -1
- package/esm/internals/colorGetter.js +2 -2
- package/esm/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +1 -2
- package/esm/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +1 -2
- package/esm/models/z-axis.js +1 -0
- package/hooks/useAxisEvents.js +1 -1
- package/hooks/useChartDimensions.js +1 -1
- package/hooks/useChartId.js +1 -1
- package/hooks/useDrawingArea.js +1 -1
- package/hooks/useInteractionItemProps.js +1 -1
- package/hooks/useMounted.js +1 -1
- package/hooks/useScale.js +1 -1
- package/hooks/useSeries.js +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useTicks.js +1 -1
- package/index.js +1 -1
- package/internals/colorGetter.d.ts +3 -1
- package/internals/colorGetter.js +2 -2
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +1 -1
- package/internals/defaultizeColor.d.ts +1 -0
- package/internals/useAnimatedPath.d.ts +1 -0
- package/internals/useAnimatedPath.js +1 -1
- package/models/colorMapping.d.ts +3 -2
- package/models/seriesType/pie.d.ts +5 -0
- package/models/seriesType/scatter.d.ts +5 -0
- package/models/z-axis.d.ts +14 -0
- package/models/z-axis.js +5 -0
- package/modern/BarChart/BarChart.js +8 -98
- package/modern/BarChart/BarElement.js +0 -1
- package/modern/BarChart/BarPlot.js +2 -2
- package/modern/ChartContainer/ChartContainer.js +3 -2
- package/modern/ChartsAxis/ChartsAxis.js +7 -100
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -2
- package/modern/ChartsGrid/ChartsGrid.js +1 -2
- package/modern/ChartsLegend/DefaultChartsLegend.js +1 -2
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +1 -2
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +1 -2
- package/modern/ChartsSurface.js +1 -2
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +16 -3
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +19 -3
- package/modern/ChartsTooltip/ChartsTooltipTable.js +8 -8
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -6
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +2 -5
- package/modern/ChartsXAxis/ChartsXAxis.js +1 -2
- package/modern/ChartsYAxis/ChartsYAxis.js +1 -2
- package/modern/Gauge/Gauge.js +1 -2
- package/modern/LineChart/AnimatedArea.js +1 -2
- package/modern/LineChart/AnimatedLine.js +1 -2
- package/modern/LineChart/LineChart.js +8 -98
- package/modern/PieChart/PieChart.js +8 -98
- package/modern/PieChart/PiePlot.js +1 -2
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -0
- package/modern/ScatterChart/ScatterChart.js +63 -125
- package/modern/ScatterChart/ScatterPlot.js +8 -1
- package/modern/ScatterChart/getColor.js +18 -1
- package/modern/SparkLineChart/SparkLineChart.js +1 -2
- package/modern/context/ZAxisContextProvider.js +89 -0
- package/modern/context/index.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/colorGetter.js +2 -2
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +1 -2
- package/modern/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +1 -2
- package/modern/models/z-axis.js +1 -0
- package/package.json +3 -5
package/BarChart/BarChart.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface BarChartSlotProps extends ChartsAxisSlotProps, BarPlotSlotProps
|
|
|
17
17
|
export interface BarChartProps extends Omit<ResponsiveChartContainerProps, 'series'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<BarPlotProps, 'slots' | 'slotProps'>, ChartsOnAxisClickHandlerProps {
|
|
18
18
|
/**
|
|
19
19
|
* The series to display in the bar chart.
|
|
20
|
+
* An array of [[BarSeriesType]] objects.
|
|
20
21
|
*/
|
|
21
22
|
series: MakeOptional<BarSeriesType, 'type'>[];
|
|
22
23
|
/**
|
package/BarChart/BarChart.js
CHANGED
|
@@ -21,7 +21,7 @@ var _ChartsGrid = require("../ChartsGrid");
|
|
|
21
21
|
var _ChartsOnAxisClickHandler = require("../ChartsOnAxisClickHandler");
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
/**
|
|
26
26
|
* Demos:
|
|
27
27
|
*
|
|
@@ -145,30 +145,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
145
145
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
146
146
|
* @default xAxisIds[0] The id of the first provided axis
|
|
147
147
|
*/
|
|
148
|
-
bottomAxis: _propTypes.default.oneOfType([_propTypes.default.
|
|
149
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
150
|
-
classes: _propTypes.default.object,
|
|
151
|
-
disableLine: _propTypes.default.bool,
|
|
152
|
-
disableTicks: _propTypes.default.bool,
|
|
153
|
-
fill: _propTypes.default.string,
|
|
154
|
-
label: _propTypes.default.string,
|
|
155
|
-
labelFontSize: _propTypes.default.number,
|
|
156
|
-
labelStyle: _propTypes.default.object,
|
|
157
|
-
position: _propTypes.default.oneOf(['bottom', 'top']),
|
|
158
|
-
slotProps: _propTypes.default.object,
|
|
159
|
-
slots: _propTypes.default.object,
|
|
160
|
-
stroke: _propTypes.default.string,
|
|
161
|
-
tickFontSize: _propTypes.default.number,
|
|
162
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
163
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
164
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
165
|
-
tickLabelStyle: _propTypes.default.object,
|
|
166
|
-
tickMaxStep: _propTypes.default.number,
|
|
167
|
-
tickMinStep: _propTypes.default.number,
|
|
168
|
-
tickNumber: _propTypes.default.number,
|
|
169
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
170
|
-
tickSize: _propTypes.default.number
|
|
171
|
-
}), _propTypes.default.string]),
|
|
148
|
+
bottomAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
172
149
|
children: _propTypes.default.node,
|
|
173
150
|
className: _propTypes.default.string,
|
|
174
151
|
/**
|
|
@@ -208,30 +185,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
208
185
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
209
186
|
* @default yAxisIds[0] The id of the first provided axis
|
|
210
187
|
*/
|
|
211
|
-
leftAxis: _propTypes.default.oneOfType([_propTypes.default.
|
|
212
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
213
|
-
classes: _propTypes.default.object,
|
|
214
|
-
disableLine: _propTypes.default.bool,
|
|
215
|
-
disableTicks: _propTypes.default.bool,
|
|
216
|
-
fill: _propTypes.default.string,
|
|
217
|
-
label: _propTypes.default.string,
|
|
218
|
-
labelFontSize: _propTypes.default.number,
|
|
219
|
-
labelStyle: _propTypes.default.object,
|
|
220
|
-
position: _propTypes.default.oneOf(['left', 'right']),
|
|
221
|
-
slotProps: _propTypes.default.object,
|
|
222
|
-
slots: _propTypes.default.object,
|
|
223
|
-
stroke: _propTypes.default.string,
|
|
224
|
-
tickFontSize: _propTypes.default.number,
|
|
225
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
226
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
227
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
228
|
-
tickLabelStyle: _propTypes.default.object,
|
|
229
|
-
tickMaxStep: _propTypes.default.number,
|
|
230
|
-
tickMinStep: _propTypes.default.number,
|
|
231
|
-
tickNumber: _propTypes.default.number,
|
|
232
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
233
|
-
tickSize: _propTypes.default.number
|
|
234
|
-
}), _propTypes.default.string]),
|
|
188
|
+
leftAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
235
189
|
/**
|
|
236
190
|
* @deprecated Consider using `slotProps.legend` instead.
|
|
237
191
|
*/
|
|
@@ -276,32 +230,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
276
230
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
277
231
|
* @default null
|
|
278
232
|
*/
|
|
279
|
-
rightAxis: _propTypes.default.oneOfType([_propTypes.default.
|
|
280
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
281
|
-
classes: _propTypes.default.object,
|
|
282
|
-
disableLine: _propTypes.default.bool,
|
|
283
|
-
disableTicks: _propTypes.default.bool,
|
|
284
|
-
fill: _propTypes.default.string,
|
|
285
|
-
label: _propTypes.default.string,
|
|
286
|
-
labelFontSize: _propTypes.default.number,
|
|
287
|
-
labelStyle: _propTypes.default.object,
|
|
288
|
-
position: _propTypes.default.oneOf(['left', 'right']),
|
|
289
|
-
slotProps: _propTypes.default.object,
|
|
290
|
-
slots: _propTypes.default.object,
|
|
291
|
-
stroke: _propTypes.default.string,
|
|
292
|
-
tickFontSize: _propTypes.default.number,
|
|
293
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
294
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
295
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
296
|
-
tickLabelStyle: _propTypes.default.object,
|
|
297
|
-
tickMaxStep: _propTypes.default.number,
|
|
298
|
-
tickMinStep: _propTypes.default.number,
|
|
299
|
-
tickNumber: _propTypes.default.number,
|
|
300
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
301
|
-
tickSize: _propTypes.default.number
|
|
302
|
-
}), _propTypes.default.string]),
|
|
233
|
+
rightAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
303
234
|
/**
|
|
304
235
|
* The series to display in the bar chart.
|
|
236
|
+
* An array of [[BarSeriesType]] objects.
|
|
305
237
|
*/
|
|
306
238
|
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
307
239
|
/**
|
|
@@ -338,30 +270,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
338
270
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
339
271
|
* @default null
|
|
340
272
|
*/
|
|
341
|
-
topAxis: _propTypes.default.oneOfType([_propTypes.default.
|
|
342
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
343
|
-
classes: _propTypes.default.object,
|
|
344
|
-
disableLine: _propTypes.default.bool,
|
|
345
|
-
disableTicks: _propTypes.default.bool,
|
|
346
|
-
fill: _propTypes.default.string,
|
|
347
|
-
label: _propTypes.default.string,
|
|
348
|
-
labelFontSize: _propTypes.default.number,
|
|
349
|
-
labelStyle: _propTypes.default.object,
|
|
350
|
-
position: _propTypes.default.oneOf(['bottom', 'top']),
|
|
351
|
-
slotProps: _propTypes.default.object,
|
|
352
|
-
slots: _propTypes.default.object,
|
|
353
|
-
stroke: _propTypes.default.string,
|
|
354
|
-
tickFontSize: _propTypes.default.number,
|
|
355
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
356
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
357
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
358
|
-
tickLabelStyle: _propTypes.default.object,
|
|
359
|
-
tickMaxStep: _propTypes.default.number,
|
|
360
|
-
tickMinStep: _propTypes.default.number,
|
|
361
|
-
tickNumber: _propTypes.default.number,
|
|
362
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
363
|
-
tickSize: _propTypes.default.number
|
|
364
|
-
}), _propTypes.default.string]),
|
|
273
|
+
topAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
365
274
|
viewBox: _propTypes.default.shape({
|
|
366
275
|
height: _propTypes.default.number,
|
|
367
276
|
width: _propTypes.default.number,
|
|
@@ -375,6 +284,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
375
284
|
/**
|
|
376
285
|
* The configuration of the x-axes.
|
|
377
286
|
* If not provided, a default axis config is used.
|
|
287
|
+
* An array of [[AxisConfig]] objects.
|
|
378
288
|
*/
|
|
379
289
|
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
380
290
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
@@ -427,6 +337,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
427
337
|
/**
|
|
428
338
|
* The configuration of the y-axes.
|
|
429
339
|
* If not provided, a default axis config is used.
|
|
340
|
+
* An array of [[AxisConfig]] objects.
|
|
430
341
|
*/
|
|
431
342
|
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
432
343
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
package/BarChart/BarElement.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@react-spring/shared" />
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { HighlightScope } from '../context/HighlightProvider';
|
|
3
4
|
import { SeriesId } from '../models/seriesType/common';
|
|
@@ -941,9 +942,10 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
941
942
|
vectorEffect?: string | number | undefined;
|
|
942
943
|
additive?: "replace" | "sum" | undefined;
|
|
943
944
|
path?: string | undefined;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
946
|
+
className?: string | undefined;
|
|
947
|
+
id?: string | undefined;
|
|
948
|
+
lang?: string | undefined;
|
|
947
949
|
max?: string | number | undefined;
|
|
948
950
|
media?: string | undefined;
|
|
949
951
|
method?: string | undefined;
|
|
@@ -951,65 +953,9 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
951
953
|
name?: string | undefined;
|
|
952
954
|
target?: string | undefined;
|
|
953
955
|
type?: string | undefined;
|
|
954
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
955
|
-
className?: string | undefined;
|
|
956
|
-
id?: string | undefined;
|
|
957
|
-
lang?: string | undefined;
|
|
958
|
-
tabIndex?: number | undefined;
|
|
959
956
|
role?: React.AriaRole | undefined;
|
|
960
|
-
|
|
961
|
-
"
|
|
962
|
-
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
963
|
-
"aria-braillelabel"?: string | undefined;
|
|
964
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
965
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
966
|
-
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
967
|
-
"aria-colcount"?: number | undefined;
|
|
968
|
-
"aria-colindex"?: number | undefined;
|
|
969
|
-
"aria-colindextext"?: string | undefined;
|
|
970
|
-
"aria-colspan"?: number | undefined;
|
|
971
|
-
"aria-controls"?: string | undefined;
|
|
972
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
973
|
-
"aria-describedby"?: string | undefined;
|
|
974
|
-
"aria-description"?: string | undefined;
|
|
975
|
-
"aria-details"?: string | undefined;
|
|
976
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
977
|
-
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
978
|
-
"aria-errormessage"?: string | undefined;
|
|
979
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
980
|
-
"aria-flowto"?: string | undefined;
|
|
981
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
982
|
-
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
983
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
984
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
985
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
986
|
-
"aria-label"?: string | undefined;
|
|
987
|
-
"aria-labelledby"?: string | undefined;
|
|
988
|
-
"aria-level"?: number | undefined;
|
|
989
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
990
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
991
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
992
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
993
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
994
|
-
"aria-owns"?: string | undefined;
|
|
995
|
-
"aria-placeholder"?: string | undefined;
|
|
996
|
-
"aria-posinset"?: number | undefined;
|
|
997
|
-
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
998
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
999
|
-
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1000
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
1001
|
-
"aria-roledescription"?: string | undefined;
|
|
1002
|
-
"aria-rowcount"?: number | undefined;
|
|
1003
|
-
"aria-rowindex"?: number | undefined;
|
|
1004
|
-
"aria-rowindextext"?: string | undefined;
|
|
1005
|
-
"aria-rowspan"?: number | undefined;
|
|
1006
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
1007
|
-
"aria-setsize"?: number | undefined;
|
|
1008
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
1009
|
-
"aria-valuemax"?: number | undefined;
|
|
1010
|
-
"aria-valuemin"?: number | undefined;
|
|
1011
|
-
"aria-valuenow"?: number | undefined;
|
|
1012
|
-
"aria-valuetext"?: string | undefined;
|
|
957
|
+
tabIndex?: number | undefined;
|
|
958
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
1013
959
|
accentHeight?: string | number | undefined;
|
|
1014
960
|
allowReorder?: "yes" | "no" | undefined;
|
|
1015
961
|
amplitude?: string | number | undefined;
|
|
@@ -1063,6 +1009,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
1063
1009
|
gradientUnits?: string | undefined;
|
|
1064
1010
|
horizAdvX?: string | number | undefined;
|
|
1065
1011
|
horizOriginX?: string | number | undefined;
|
|
1012
|
+
href?: string | undefined;
|
|
1066
1013
|
in2?: string | number | undefined;
|
|
1067
1014
|
in?: string | undefined;
|
|
1068
1015
|
intercept?: string | number | undefined;
|
|
@@ -1177,6 +1124,59 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
1177
1124
|
yChannelSelector?: string | undefined;
|
|
1178
1125
|
z?: string | number | undefined;
|
|
1179
1126
|
zoomAndPan?: string | undefined;
|
|
1127
|
+
"aria-activedescendant"?: string | undefined;
|
|
1128
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
1129
|
+
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
1130
|
+
"aria-braillelabel"?: string | undefined;
|
|
1131
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
1132
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
1133
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1134
|
+
"aria-colcount"?: number | undefined;
|
|
1135
|
+
"aria-colindex"?: number | undefined;
|
|
1136
|
+
"aria-colindextext"?: string | undefined;
|
|
1137
|
+
"aria-colspan"?: number | undefined;
|
|
1138
|
+
"aria-controls"?: string | undefined;
|
|
1139
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
1140
|
+
"aria-describedby"?: string | undefined;
|
|
1141
|
+
"aria-description"?: string | undefined;
|
|
1142
|
+
"aria-details"?: string | undefined;
|
|
1143
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
1144
|
+
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
1145
|
+
"aria-errormessage"?: string | undefined;
|
|
1146
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
1147
|
+
"aria-flowto"?: string | undefined;
|
|
1148
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
1149
|
+
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
1150
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
1151
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
1152
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
1153
|
+
"aria-label"?: string | undefined;
|
|
1154
|
+
"aria-labelledby"?: string | undefined;
|
|
1155
|
+
"aria-level"?: number | undefined;
|
|
1156
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
1157
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
1158
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
1159
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
1160
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
1161
|
+
"aria-owns"?: string | undefined;
|
|
1162
|
+
"aria-placeholder"?: string | undefined;
|
|
1163
|
+
"aria-posinset"?: number | undefined;
|
|
1164
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1165
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
1166
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1167
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
1168
|
+
"aria-roledescription"?: string | undefined;
|
|
1169
|
+
"aria-rowcount"?: number | undefined;
|
|
1170
|
+
"aria-rowindex"?: number | undefined;
|
|
1171
|
+
"aria-rowindextext"?: string | undefined;
|
|
1172
|
+
"aria-rowspan"?: number | undefined;
|
|
1173
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
1174
|
+
"aria-setsize"?: number | undefined;
|
|
1175
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
1176
|
+
"aria-valuemax"?: number | undefined;
|
|
1177
|
+
"aria-valuemin"?: number | undefined;
|
|
1178
|
+
"aria-valuenow"?: number | undefined;
|
|
1179
|
+
"aria-valuetext"?: string | undefined;
|
|
1180
1180
|
children?: React.ReactNode;
|
|
1181
1181
|
dangerouslySetInnerHTML?: {
|
|
1182
1182
|
__html: string | TrustedHTML;
|
|
@@ -1343,12 +1343,13 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
1343
1343
|
onAnimationIterationCapture?: React.AnimationEventHandler<SVGRectElement> | undefined;
|
|
1344
1344
|
onTransitionEnd?: React.TransitionEventHandler<SVGRectElement> | undefined;
|
|
1345
1345
|
onTransitionEndCapture?: React.TransitionEventHandler<SVGRectElement> | undefined;
|
|
1346
|
+
key?: React.Key | null | undefined;
|
|
1346
1347
|
ref?: ((instance: SVGRectElement | null) => void) | React.RefObject<SVGRectElement> | null | undefined;
|
|
1347
1348
|
}> & {
|
|
1348
1349
|
scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1349
1350
|
scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1350
1351
|
viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
|
|
1351
|
-
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "
|
|
1352
|
+
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "suppressHydrationWarning" | "className" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "scrollTop" | "scrollLeft"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
1352
1353
|
ownerState: BarElementOwnerState;
|
|
1353
1354
|
}, {}, {}>;
|
|
1354
1355
|
interface BarProps extends Omit<React.ComponentPropsWithoutRef<'path'>, 'id' | 'color'> {
|
package/BarChart/BarElement.js
CHANGED
|
@@ -23,7 +23,7 @@ var _InteractionProvider = require("../context/InteractionProvider");
|
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
24
|
const _excluded = ["id", "dataIndex", "classes", "color", "highlightScope", "slots", "slotProps", "style", "onClick"];
|
|
25
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
27
|
function getBarElementUtilityClass(slot) {
|
|
28
28
|
return (0, _generateUtilityClass.default)('MuiBarElement', slot);
|
|
29
29
|
}
|
|
@@ -46,7 +46,6 @@ const BarElementPath = exports.BarElementPath = (0, _styles.styled)(_web.animate
|
|
|
46
46
|
ownerState
|
|
47
47
|
}) => ({
|
|
48
48
|
stroke: 'none',
|
|
49
|
-
shapeRendering: 'crispEdges',
|
|
50
49
|
fill: ownerState.isHighlighted ? (0, _d3Color.color)(ownerState.color).brighter(0.5).formatHex() : ownerState.color,
|
|
51
50
|
transition: 'opacity 0.2s ease-in, fill 0.2s ease-in',
|
|
52
51
|
opacity: ownerState.isFaded && 0.3 || 1
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -28,7 +28,7 @@ const _excluded = ["skipAnimation", "onItemClick"];
|
|
|
28
28
|
* @returns The bar width and the offset between bars.
|
|
29
29
|
*/
|
|
30
30
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
31
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
31
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
32
32
|
function getBandSize({
|
|
33
33
|
bandWidth: W,
|
|
34
34
|
numberOfGroups: N,
|
|
@@ -117,8 +117,8 @@ const useAggregatedData = () => {
|
|
|
117
117
|
} = series[seriesId];
|
|
118
118
|
return stackedData.map((values, dataIndex) => {
|
|
119
119
|
const valueCoordinates = values.map(v => verticalLayout ? yScale(v) : xScale(v));
|
|
120
|
-
const minValueCoord = Math.min(...valueCoordinates);
|
|
121
|
-
const maxValueCoord = Math.max(...valueCoordinates);
|
|
120
|
+
const minValueCoord = Math.round(Math.min(...valueCoordinates));
|
|
121
|
+
const maxValueCoord = Math.round(Math.max(...valueCoordinates));
|
|
122
122
|
return {
|
|
123
123
|
seriesId,
|
|
124
124
|
dataIndex,
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,83 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.3.1
|
|
7
|
+
|
|
8
|
+
_Apr 26, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
|
|
13
|
+
- 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@7.3.1`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
|
|
22
|
+
- [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
|
|
23
|
+
- [DataGrid] Fix group header resize (#12863) @arminmeh
|
|
24
|
+
- [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@7.3.1`.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-premium@7.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.1`.
|
|
33
|
+
|
|
34
|
+
### Date and Time Pickers
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers@7.3.1`
|
|
37
|
+
|
|
38
|
+
- [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
|
|
39
|
+
- [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@7.3.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
|
|
50
|
+
- [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
|
|
51
|
+
- [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
|
|
52
|
+
- [charts] Improve default tooltip content (#12257) @oliviertassinari
|
|
53
|
+
- [charts] Round y values for bar chart (#12846) @alexfauquette
|
|
54
|
+
|
|
55
|
+
### Tree View
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-tree-view@7.3.1`
|
|
58
|
+
|
|
59
|
+
- [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
|
|
60
|
+
- [TreeView] Rework the selection internals (#12703) @flaviendelangle
|
|
61
|
+
- [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
|
|
66
|
+
- [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
|
|
67
|
+
- [docs] Document interfaces for charts (#12656) @alexfauquette
|
|
68
|
+
- [docs] Fix Vale regression (#12862) @oliviertassinari
|
|
69
|
+
- [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
|
|
70
|
+
- [docs] Update Column features availability (#12865) @DanailH
|
|
71
|
+
|
|
72
|
+
### Core
|
|
73
|
+
|
|
74
|
+
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
75
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
76
|
+
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
77
|
+
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
78
|
+
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
79
|
+
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
80
|
+
- [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
|
|
81
|
+
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
82
|
+
|
|
6
83
|
## 7.3.0
|
|
7
84
|
|
|
8
85
|
_Apr 18, 2024_
|
|
@@ -243,7 +320,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
243
320
|
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
244
321
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
245
322
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
246
|
-
- [docs] Match IE 11 spacing with Material
|
|
323
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
247
324
|
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
248
325
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
249
326
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
@@ -506,7 +583,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
|
|
|
506
583
|
- [docs] Update links to v6 (#12496) @cherniavskii
|
|
507
584
|
- [docs] Update links to v7 docs (#12500) @noraleonte
|
|
508
585
|
- [docs] Update supported versions (#12508) @joserodolfofreitas
|
|
509
|
-
- [docs] Update "What's new in MUI
|
|
586
|
+
- [docs] Update "What's new in MUI X" page #12527 @cherniavskii
|
|
510
587
|
|
|
511
588
|
### Core
|
|
512
589
|
|
|
@@ -18,7 +18,7 @@ var _HighlightProvider = require("../context/HighlightProvider");
|
|
|
18
18
|
var _ChartsAxesGradients = require("../internals/components/ChartsAxesGradients");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
const ChartContainer = exports.ChartContainer = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
|
|
23
23
|
const {
|
|
24
24
|
width,
|
|
@@ -130,6 +130,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
130
130
|
/**
|
|
131
131
|
* The configuration of the x-axes.
|
|
132
132
|
* If not provided, a default axis config is used.
|
|
133
|
+
* An array of [[AxisConfig]] objects.
|
|
133
134
|
*/
|
|
134
135
|
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
135
136
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
@@ -182,6 +183,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
182
183
|
/**
|
|
183
184
|
* The configuration of the y-axes.
|
|
184
185
|
* If not provided, a default axis config is used.
|
|
186
|
+
* An array of [[AxisConfig]] objects.
|
|
185
187
|
*/
|
|
186
188
|
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
187
189
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|