@mui/x-charts 7.0.0-alpha.5 → 7.0.0-alpha.8
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 -0
- package/BarChart/BarElement.d.ts +37 -20
- package/BarChart/BarPlot.js +4 -4
- package/BarChart/formatter.js +1 -1
- package/CHANGELOG.md +357 -49
- package/ChartsAxis/ChartsAxis.js +4 -4
- package/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
- package/ChartsSurface.d.ts +2 -2
- package/ChartsSurface.js +33 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.js +2 -0
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/LineChart.d.ts +1 -0
- package/LineChart/LineChart.js +2 -0
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/formatter.js +2 -2
- package/PieChart/PieArcLabel.d.ts +1 -0
- package/PieChart/PieArcLabel.js +7 -8
- package/PieChart/PieArcLabelPlot.d.ts +5 -0
- package/PieChart/PieArcLabelPlot.js +16 -3
- package/PieChart/PieArcPlot.d.ts +5 -0
- package/PieChart/PieArcPlot.js +9 -1
- package/PieChart/PieChart.d.ts +14 -2
- package/PieChart/PieChart.js +6 -2
- package/PieChart/PiePlot.js +3 -0
- package/PieChart/dataTransform/transition.js +9 -2
- package/PieChart/dataTransform/useTransformData.d.ts +1 -0
- package/PieChart/dataTransform/useTransformData.js +11 -8
- package/ResponsiveChartContainer/index.js +2 -2
- package/ScatterChart/ScatterChart.js +1 -0
- package/SparkLineChart/SparkLineChart.d.ts +15 -1
- package/SparkLineChart/SparkLineChart.js +8 -1
- package/context/CartesianContextProvider.d.ts +1 -1
- package/context/CartesianContextProvider.js +9 -8
- package/context/DrawingProvider.d.ts +1 -1
- package/context/DrawingProvider.js +8 -7
- package/context/HighlightProvider.d.ts +2 -2
- package/context/HighlightProvider.js +4 -3
- package/context/InteractionProvider.d.ts +2 -2
- package/context/InteractionProvider.js +4 -3
- package/context/SeriesContextProvider.d.ts +3 -1
- package/context/SeriesContextProvider.js +8 -7
- package/esm/BarChart/BarChart.js +1 -0
- package/esm/BarChart/BarPlot.js +4 -4
- package/esm/BarChart/formatter.js +1 -1
- package/esm/ChartsAxis/ChartsAxis.js +4 -4
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
- package/esm/ChartsSurface.js +35 -2
- package/esm/ChartsTooltip/ChartsTooltipTable.js +2 -0
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/LineChart.js +2 -0
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/formatter.js +2 -2
- package/esm/PieChart/PieArcLabel.js +7 -8
- package/esm/PieChart/PieArcLabelPlot.js +16 -3
- package/esm/PieChart/PieArcPlot.js +9 -1
- package/esm/PieChart/PieChart.js +6 -2
- package/esm/PieChart/PiePlot.js +3 -0
- package/esm/PieChart/dataTransform/transition.js +9 -2
- package/esm/PieChart/dataTransform/useTransformData.js +12 -9
- package/esm/ResponsiveChartContainer/index.js +2 -2
- package/esm/ScatterChart/ScatterChart.js +1 -0
- package/esm/SparkLineChart/SparkLineChart.js +8 -1
- package/esm/context/CartesianContextProvider.js +9 -8
- package/esm/context/DrawingProvider.js +8 -7
- package/esm/context/HighlightProvider.js +6 -4
- package/esm/context/InteractionProvider.js +6 -4
- package/esm/context/SeriesContextProvider.js +10 -8
- package/esm/index.js +1 -0
- package/esm/internals/domUtils.js +3 -1
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/internals/defaultizeColor.d.ts +3 -0
- package/internals/domUtils.js +3 -1
- package/legacy/BarChart/BarChart.js +1 -0
- package/legacy/BarChart/BarPlot.js +4 -4
- package/legacy/BarChart/formatter.js +1 -1
- package/legacy/ChartsAxis/ChartsAxis.js +4 -4
- package/legacy/ChartsReferenceLine/ChartsReferenceLine.js +7 -5
- package/legacy/ChartsSurface.js +35 -2
- package/legacy/ChartsTooltip/ChartsTooltipTable.js +2 -0
- package/legacy/LineChart/AreaPlot.js +2 -2
- package/legacy/LineChart/LineChart.js +2 -0
- package/legacy/LineChart/LineHighlightPlot.js +1 -1
- package/legacy/LineChart/LinePlot.js +2 -2
- package/legacy/LineChart/MarkPlot.js +1 -1
- package/legacy/LineChart/formatter.js +2 -2
- package/legacy/PieChart/PieArcLabel.js +7 -8
- package/legacy/PieChart/PieArcLabelPlot.js +16 -4
- package/legacy/PieChart/PieArcPlot.js +10 -1
- package/legacy/PieChart/PieChart.js +6 -2
- package/legacy/PieChart/PiePlot.js +3 -0
- package/legacy/PieChart/dataTransform/transition.js +9 -2
- package/legacy/PieChart/dataTransform/useTransformData.js +12 -9
- package/legacy/ResponsiveChartContainer/index.js +2 -2
- package/legacy/ScatterChart/ScatterChart.js +1 -0
- package/legacy/SparkLineChart/SparkLineChart.js +8 -1
- package/legacy/context/CartesianContextProvider.js +17 -17
- package/legacy/context/DrawingProvider.js +6 -6
- package/legacy/context/HighlightProvider.js +4 -3
- package/legacy/context/InteractionProvider.js +4 -3
- package/legacy/context/SeriesContextProvider.js +9 -8
- package/legacy/index.js +2 -1
- package/legacy/internals/domUtils.js +3 -3
- package/models/seriesType/pie.d.ts +15 -0
- package/modern/BarChart/BarChart.js +1 -0
- package/modern/BarChart/BarPlot.js +4 -4
- package/modern/BarChart/formatter.js +1 -1
- package/modern/ChartsAxis/ChartsAxis.js +4 -4
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
- package/modern/ChartsSurface.js +35 -2
- package/modern/ChartsTooltip/ChartsTooltipTable.js +2 -0
- package/modern/LineChart/AreaPlot.js +2 -2
- package/modern/LineChart/LineChart.js +2 -0
- package/modern/LineChart/LineHighlightPlot.js +1 -1
- package/modern/LineChart/LinePlot.js +2 -2
- package/modern/LineChart/MarkPlot.js +1 -1
- package/modern/LineChart/formatter.js +2 -2
- package/modern/PieChart/PieArcLabel.js +7 -8
- package/modern/PieChart/PieArcLabelPlot.js +16 -3
- package/modern/PieChart/PieArcPlot.js +9 -1
- package/modern/PieChart/PieChart.js +6 -2
- package/modern/PieChart/PiePlot.js +3 -0
- package/modern/PieChart/dataTransform/transition.js +9 -2
- package/modern/PieChart/dataTransform/useTransformData.js +11 -8
- package/modern/ResponsiveChartContainer/index.js +2 -2
- package/modern/ScatterChart/ScatterChart.js +1 -0
- package/modern/SparkLineChart/SparkLineChart.js +8 -1
- package/modern/context/CartesianContextProvider.js +9 -8
- package/modern/context/DrawingProvider.js +8 -7
- package/modern/context/HighlightProvider.js +6 -4
- package/modern/context/InteractionProvider.js +6 -4
- package/modern/context/SeriesContextProvider.js +10 -8
- package/modern/index.js +2 -1
- package/modern/internals/domUtils.js +3 -1
- package/package.json +5 -5
package/BarChart/BarChart.js
CHANGED
|
@@ -161,6 +161,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
161
161
|
className: _propTypes.default.string,
|
|
162
162
|
/**
|
|
163
163
|
* Color palette used to colorize multiple series.
|
|
164
|
+
* @default blueberryTwilightPalette
|
|
164
165
|
*/
|
|
165
166
|
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
166
167
|
/**
|
package/BarChart/BarElement.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
37
37
|
animationIterationCount?: import("csstype").Property.AnimationIterationCount | undefined;
|
|
38
38
|
animationName?: import("csstype").Property.AnimationName | undefined;
|
|
39
39
|
animationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
|
|
40
|
+
animationRangeEnd?: import("csstype").Property.AnimationRangeEnd<string | number> | undefined;
|
|
41
|
+
animationRangeStart?: import("csstype").Property.AnimationRangeStart<string | number> | undefined;
|
|
40
42
|
animationTimeline?: import("csstype").Property.AnimationTimeline | undefined;
|
|
41
43
|
animationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
42
44
|
appearance?: import("csstype").Property.Appearance | undefined;
|
|
@@ -158,6 +160,10 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
158
160
|
fontStretch?: import("csstype").Property.FontStretch | undefined;
|
|
159
161
|
fontStyle?: import("csstype").Property.FontStyle | undefined;
|
|
160
162
|
fontSynthesis?: import("csstype").Property.FontSynthesis | undefined;
|
|
163
|
+
fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition | undefined;
|
|
164
|
+
fontSynthesisSmallCaps?: import("csstype").Property.FontSynthesisSmallCaps | undefined;
|
|
165
|
+
fontSynthesisStyle?: import("csstype").Property.FontSynthesisStyle | undefined;
|
|
166
|
+
fontSynthesisWeight?: import("csstype").Property.FontSynthesisWeight | undefined;
|
|
161
167
|
fontVariant?: import("csstype").Property.FontVariant | undefined;
|
|
162
168
|
fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
|
|
163
169
|
fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
|
|
@@ -231,6 +237,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
231
237
|
maskRepeat?: import("csstype").Property.MaskRepeat | undefined;
|
|
232
238
|
maskSize?: import("csstype").Property.MaskSize<string | number> | undefined;
|
|
233
239
|
maskType?: import("csstype").Property.MaskType | undefined;
|
|
240
|
+
masonryAutoFlow?: import("csstype").Property.MasonryAutoFlow | undefined;
|
|
234
241
|
mathDepth?: import("csstype").Property.MathDepth | undefined;
|
|
235
242
|
mathShift?: import("csstype").Property.MathShift | undefined;
|
|
236
243
|
mathStyle?: import("csstype").Property.MathStyle | undefined;
|
|
@@ -270,6 +277,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
270
277
|
overflowWrap?: import("csstype").Property.OverflowWrap | undefined;
|
|
271
278
|
overflowX?: import("csstype").Property.OverflowX | undefined;
|
|
272
279
|
overflowY?: import("csstype").Property.OverflowY | undefined;
|
|
280
|
+
overlay?: import("csstype").Property.Overlay | undefined;
|
|
273
281
|
overscrollBehaviorBlock?: import("csstype").Property.OverscrollBehaviorBlock | undefined;
|
|
274
282
|
overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
|
|
275
283
|
overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
|
|
@@ -357,12 +365,15 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
357
365
|
textTransform?: import("csstype").Property.TextTransform | undefined;
|
|
358
366
|
textUnderlineOffset?: import("csstype").Property.TextUnderlineOffset<string | number> | undefined;
|
|
359
367
|
textUnderlinePosition?: import("csstype").Property.TextUnderlinePosition | undefined;
|
|
368
|
+
textWrap?: import("csstype").Property.TextWrap | undefined;
|
|
369
|
+
timelineScope?: import("csstype").Property.TimelineScope | undefined;
|
|
360
370
|
top?: import("csstype").Property.Top<string | number> | undefined;
|
|
361
371
|
touchAction?: import("csstype").Property.TouchAction | undefined;
|
|
362
372
|
transform?: string | undefined;
|
|
363
373
|
transformBox?: import("csstype").Property.TransformBox | undefined;
|
|
364
374
|
transformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
365
375
|
transformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
376
|
+
transitionBehavior?: import("csstype").Property.TransitionBehavior | undefined;
|
|
366
377
|
transitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
367
378
|
transitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
368
379
|
transitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
@@ -371,9 +382,14 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
371
382
|
unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
|
|
372
383
|
userSelect?: import("csstype").Property.UserSelect | undefined;
|
|
373
384
|
verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
|
|
385
|
+
viewTimelineAxis?: import("csstype").Property.ViewTimelineAxis | undefined;
|
|
386
|
+
viewTimelineInset?: import("csstype").Property.ViewTimelineInset<string | number> | undefined;
|
|
387
|
+
viewTimelineName?: import("csstype").Property.ViewTimelineName | undefined;
|
|
374
388
|
viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
|
|
375
389
|
visibility?: import("csstype").Property.Visibility | undefined;
|
|
376
390
|
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
391
|
+
whiteSpaceCollapse?: import("csstype").Property.WhiteSpaceCollapse | undefined;
|
|
392
|
+
whiteSpaceTrim?: import("csstype").Property.WhiteSpaceTrim | undefined;
|
|
377
393
|
widows?: import("csstype").Property.Widows | undefined;
|
|
378
394
|
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
379
395
|
willChange?: import("csstype").Property.WillChange | undefined;
|
|
@@ -385,6 +401,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
385
401
|
zoom?: import("csstype").Property.Zoom | undefined;
|
|
386
402
|
all?: import("csstype").Globals | undefined;
|
|
387
403
|
animation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
404
|
+
animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
|
|
388
405
|
background?: import("csstype").Property.Background<string | number> | undefined;
|
|
389
406
|
backgroundPosition?: import("csstype").Property.BackgroundPosition<string | number> | undefined;
|
|
390
407
|
border?: import("csstype").Property.Border<string | number> | undefined;
|
|
@@ -449,6 +466,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
449
466
|
textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
450
467
|
textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
|
|
451
468
|
transition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
469
|
+
viewTimeline?: import("csstype").Property.ViewTimeline | undefined;
|
|
452
470
|
MozAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
|
|
453
471
|
MozAnimationDirection?: import("csstype").Property.AnimationDirection | undefined;
|
|
454
472
|
MozAnimationDuration?: import("csstype").Property.AnimationDuration<string & {}> | undefined;
|
|
@@ -458,7 +476,6 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
458
476
|
MozAnimationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
|
|
459
477
|
MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
460
478
|
MozAppearance?: import("csstype").Property.MozAppearance | undefined;
|
|
461
|
-
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
462
479
|
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
463
480
|
MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
|
|
464
481
|
MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
|
|
@@ -485,20 +502,16 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
485
502
|
MozMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
|
|
486
503
|
MozOrient?: import("csstype").Property.MozOrient | undefined;
|
|
487
504
|
MozOsxFontSmoothing?: import("csstype").Property.FontSmooth<string | number> | undefined;
|
|
505
|
+
MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
|
|
506
|
+
MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
|
|
507
|
+
MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
|
|
508
|
+
MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
|
|
488
509
|
MozPaddingEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
|
|
489
510
|
MozPaddingStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
|
|
490
|
-
MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
491
|
-
MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
492
511
|
MozStackSizing?: import("csstype").Property.MozStackSizing | undefined;
|
|
493
512
|
MozTabSize?: import("csstype").Property.TabSize<string | number> | undefined;
|
|
494
513
|
MozTextBlink?: import("csstype").Property.MozTextBlink | undefined;
|
|
495
514
|
MozTextSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
|
|
496
|
-
MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
497
|
-
MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
498
|
-
MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
499
|
-
MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
500
|
-
MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
501
|
-
MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
|
|
502
515
|
MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
|
|
503
516
|
MozUserModify?: import("csstype").Property.MozUserModify | undefined;
|
|
504
517
|
MozUserSelect?: import("csstype").Property.UserSelect | undefined;
|
|
@@ -678,7 +691,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
678
691
|
MozBorderImage?: import("csstype").Property.BorderImage | undefined;
|
|
679
692
|
MozColumnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
|
|
680
693
|
MozColumns?: import("csstype").Property.Columns<string | number> | undefined;
|
|
681
|
-
|
|
694
|
+
MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
|
|
682
695
|
msContentZoomLimit?: import("csstype").Property.MsContentZoomLimit | undefined;
|
|
683
696
|
msContentZoomSnap?: import("csstype").Property.MsContentZoomSnap | undefined;
|
|
684
697
|
msFlex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
@@ -736,6 +749,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
736
749
|
KhtmlLineBreak?: import("csstype").Property.LineBreak | undefined;
|
|
737
750
|
KhtmlOpacity?: import("csstype").Property.Opacity | undefined;
|
|
738
751
|
KhtmlUserSelect?: import("csstype").Property.UserSelect | undefined;
|
|
752
|
+
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
739
753
|
MozBackgroundClip?: import("csstype").Property.BackgroundClip | undefined;
|
|
740
754
|
MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
|
|
741
755
|
MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
|
|
@@ -757,17 +771,22 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
757
771
|
MozOpacity?: import("csstype").Property.Opacity | undefined;
|
|
758
772
|
MozOutline?: import("csstype").Property.Outline<string | number> | undefined;
|
|
759
773
|
MozOutlineColor?: import("csstype").Property.OutlineColor | undefined;
|
|
760
|
-
MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
|
|
761
|
-
MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
|
|
762
|
-
MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
|
|
763
|
-
MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
|
|
764
|
-
MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
|
|
765
774
|
MozOutlineStyle?: import("csstype").Property.OutlineStyle | undefined;
|
|
766
775
|
MozOutlineWidth?: import("csstype").Property.OutlineWidth<string | number> | undefined;
|
|
776
|
+
MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
777
|
+
MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
767
778
|
MozTextAlignLast?: import("csstype").Property.TextAlignLast | undefined;
|
|
768
779
|
MozTextDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
|
|
769
780
|
MozTextDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
|
|
770
781
|
MozTextDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
|
|
782
|
+
MozTransform?: import("csstype").Property.Transform | undefined;
|
|
783
|
+
MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
784
|
+
MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
785
|
+
MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
786
|
+
MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
787
|
+
MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
788
|
+
MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
789
|
+
MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
|
|
771
790
|
MozUserInput?: import("csstype").Property.MozUserInput | undefined;
|
|
772
791
|
msImeMode?: import("csstype").Property.ImeMode | undefined;
|
|
773
792
|
OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
@@ -800,8 +819,6 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
800
819
|
WebkitBoxOrdinalGroup?: import("csstype").Property.BoxOrdinalGroup | undefined;
|
|
801
820
|
WebkitBoxOrient?: import("csstype").Property.BoxOrient | undefined;
|
|
802
821
|
WebkitBoxPack?: import("csstype").Property.BoxPack | undefined;
|
|
803
|
-
WebkitScrollSnapPointsX?: import("csstype").Property.ScrollSnapPointsX | undefined;
|
|
804
|
-
WebkitScrollSnapPointsY?: import("csstype").Property.ScrollSnapPointsY | undefined;
|
|
805
822
|
alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
|
|
806
823
|
baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
|
|
807
824
|
clipRule?: import("csstype").Property.ClipRule | undefined;
|
|
@@ -932,6 +949,8 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
932
949
|
method?: string | undefined;
|
|
933
950
|
min?: string | number | undefined;
|
|
934
951
|
name?: string | undefined;
|
|
952
|
+
target?: string | undefined;
|
|
953
|
+
type?: string | undefined;
|
|
935
954
|
suppressHydrationWarning?: boolean | undefined;
|
|
936
955
|
className?: string | undefined;
|
|
937
956
|
id?: string | undefined;
|
|
@@ -991,8 +1010,6 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
991
1010
|
"aria-valuemin"?: number | undefined;
|
|
992
1011
|
"aria-valuenow"?: number | undefined;
|
|
993
1012
|
"aria-valuetext"?: string | undefined;
|
|
994
|
-
target?: string | undefined;
|
|
995
|
-
type?: string | undefined;
|
|
996
1013
|
accentHeight?: string | number | undefined;
|
|
997
1014
|
allowReorder?: "yes" | "no" | undefined;
|
|
998
1015
|
amplitude?: string | number | undefined;
|
|
@@ -1331,7 +1348,7 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
|
|
|
1331
1348
|
scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1332
1349
|
scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1333
1350
|
viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
|
|
1334
|
-
}, "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" | "key" | "crossOrigin" | "href" | "max" | "media" | "method" | "min" | "name" | "suppressHydrationWarning" | "className" | "id" | "lang" | "tabIndex" | "role" | "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" | "
|
|
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" | "key" | "crossOrigin" | "href" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "suppressHydrationWarning" | "className" | "id" | "lang" | "tabIndex" | "role" | "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" | "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" | "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" | "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" | "scrollTop" | "scrollLeft"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
1335
1352
|
ownerState: BarElementOwnerState;
|
|
1336
1353
|
}, {}, {}>;
|
|
1337
1354
|
export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted'> & React.ComponentPropsWithoutRef<'path'> & {
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -77,18 +77,18 @@ const useCompletedData = () => {
|
|
|
77
77
|
let baseScaleConfig;
|
|
78
78
|
if (verticalLayout) {
|
|
79
79
|
if (!(0, _axis.isBandScaleConfig)(xAxisConfig)) {
|
|
80
|
-
throw new Error(`MUI
|
|
80
|
+
throw new Error(`MUI X Charts: ${xAxisKey === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisKey}"`} shoud be of type "band" to display the bar series of id "${seriesId}".`);
|
|
81
81
|
}
|
|
82
82
|
if (xAxis[xAxisKey].data === undefined) {
|
|
83
|
-
throw new Error(`MUI
|
|
83
|
+
throw new Error(`MUI X Charts: ${xAxisKey === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisKey}"`} shoud have data property.`);
|
|
84
84
|
}
|
|
85
85
|
baseScaleConfig = xAxisConfig;
|
|
86
86
|
} else {
|
|
87
87
|
if (!(0, _axis.isBandScaleConfig)(yAxisConfig)) {
|
|
88
|
-
throw new Error(`MUI
|
|
88
|
+
throw new Error(`MUI X Charts: ${yAxisKey === _constants.DEFAULT_Y_AXIS_KEY ? 'The first `yAxis`' : `The y-axis with id "${yAxisKey}"`} shoud be of type "band" to display the bar series of id "${seriesId}".`);
|
|
89
89
|
}
|
|
90
90
|
if (yAxis[yAxisKey].data === undefined) {
|
|
91
|
-
throw new Error(`MUI
|
|
91
|
+
throw new Error(`MUI X Charts: ${yAxisKey === _constants.DEFAULT_Y_AXIS_KEY ? 'The first `yAxis`' : `The y-axis with id "${yAxisKey}"`} shoud have data property.`);
|
|
92
92
|
}
|
|
93
93
|
baseScaleConfig = yAxisConfig;
|
|
94
94
|
}
|
package/BarChart/formatter.js
CHANGED
|
@@ -32,7 +32,7 @@ const formatter = (params, dataset) => {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
} else if (dataset === undefined) {
|
|
35
|
-
throw new Error([`MUI
|
|
35
|
+
throw new Error([`MUI X Charts: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
const completedSeries = {};
|