@mui/x-charts 9.0.0 → 9.0.2

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.
Files changed (124) hide show
  1. package/BarChart/BarChart.js +27 -9
  2. package/BarChart/BarChart.mjs +27 -9
  3. package/BarChart/BarElement.js +1 -5
  4. package/BarChart/BarElement.mjs +1 -5
  5. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +1 -0
  6. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +1 -0
  7. package/BarChart/seriesConfig/bar/seriesProcessor.js +37 -13
  8. package/BarChart/seriesConfig/bar/seriesProcessor.mjs +37 -13
  9. package/CHANGELOG.md +215 -6891
  10. package/ChartsContainer/ChartsContainer.js +59 -30
  11. package/ChartsContainer/ChartsContainer.mjs +59 -30
  12. package/ChartsDataProvider/useChartsDataProviderProps.js +1 -6
  13. package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -6
  14. package/ChartsGrid/styledComponents.js +2 -2
  15. package/ChartsGrid/styledComponents.mjs +2 -2
  16. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +38 -0
  17. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +38 -0
  18. package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +115 -0
  19. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +109 -0
  20. package/ChartsRadialDataProvider/ChartsRadialDataProvider.plugins.d.mts +9 -0
  21. package/ChartsRadialDataProvider/ChartsRadialDataProvider.plugins.d.ts +9 -0
  22. package/ChartsRadialDataProvider/ChartsRadialDataProvider.plugins.js +13 -0
  23. package/ChartsRadialDataProvider/ChartsRadialDataProvider.plugins.mjs +7 -0
  24. package/ChartsRadialDataProvider/index.d.mts +2 -0
  25. package/ChartsRadialDataProvider/index.d.ts +2 -0
  26. package/ChartsRadialDataProvider/index.js +27 -0
  27. package/ChartsRadialDataProvider/index.mjs +2 -0
  28. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +13 -0
  29. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +13 -0
  30. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.js +46 -0
  31. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs +39 -0
  32. package/ChartsRadialGrid/ChartsRadialGrid.d.mts +33 -0
  33. package/ChartsRadialGrid/ChartsRadialGrid.d.ts +33 -0
  34. package/ChartsRadialGrid/ChartsRadialGrid.js +99 -0
  35. package/ChartsRadialGrid/ChartsRadialGrid.mjs +94 -0
  36. package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +13 -0
  37. package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +13 -0
  38. package/ChartsRadialGrid/ChartsRadiusGrid.js +73 -0
  39. package/ChartsRadialGrid/ChartsRadiusGrid.mjs +66 -0
  40. package/ChartsRadialGrid/ChartsRotationGrid.d.mts +13 -0
  41. package/ChartsRadialGrid/ChartsRotationGrid.d.ts +13 -0
  42. package/ChartsRadialGrid/ChartsRotationGrid.js +65 -0
  43. package/ChartsRadialGrid/ChartsRotationGrid.mjs +58 -0
  44. package/ChartsRadialGrid/chartsRadialGridClasses.d.mts +13 -0
  45. package/ChartsRadialGrid/chartsRadialGridClasses.d.ts +13 -0
  46. package/ChartsRadialGrid/chartsRadialGridClasses.js +14 -0
  47. package/ChartsRadialGrid/chartsRadialGridClasses.mjs +6 -0
  48. package/ChartsRadialGrid/index.d.mts +3 -0
  49. package/ChartsRadialGrid/index.d.ts +3 -0
  50. package/ChartsRadialGrid/index.js +19 -0
  51. package/ChartsRadialGrid/index.mjs +2 -0
  52. package/ChartsRadialGrid/styledComponents.d.mts +4 -0
  53. package/ChartsRadialGrid/styledComponents.d.ts +4 -0
  54. package/ChartsRadialGrid/styledComponents.js +50 -0
  55. package/ChartsRadialGrid/styledComponents.mjs +44 -0
  56. package/ChartsXAxis/useAxisTicksProps.d.mts +407 -326
  57. package/ChartsXAxis/useAxisTicksProps.d.ts +407 -326
  58. package/ChartsYAxis/useAxisTicksProps.d.mts +407 -326
  59. package/ChartsYAxis/useAxisTicksProps.d.ts +407 -326
  60. package/LineChart/LineChart.d.mts +1 -2
  61. package/LineChart/LineChart.d.ts +1 -2
  62. package/LineChart/LineChart.js +27 -9
  63. package/LineChart/LineChart.mjs +27 -9
  64. package/LineChart/seriesConfig/seriesProcessor.js +37 -13
  65. package/LineChart/seriesConfig/seriesProcessor.mjs +37 -13
  66. package/RadarChart/RadarAxis/useRadarAxis.d.mts +1 -1
  67. package/RadarChart/RadarAxis/useRadarAxis.d.ts +1 -1
  68. package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
  69. package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
  70. package/ScatterChart/Scatter.d.mts +11 -0
  71. package/ScatterChart/Scatter.d.ts +11 -0
  72. package/ScatterChart/Scatter.js +11 -0
  73. package/ScatterChart/Scatter.mjs +14 -0
  74. package/ScatterChart/ScatterChart.js +29 -10
  75. package/ScatterChart/ScatterChart.mjs +29 -10
  76. package/ScatterChart/seriesConfig/seriesProcessor.js +9 -4
  77. package/ScatterChart/seriesConfig/seriesProcessor.mjs +9 -4
  78. package/SparkLineChart/SparkLineChart.js +27 -9
  79. package/SparkLineChart/SparkLineChart.mjs +27 -9
  80. package/hooks/useTicks.d.mts +1 -1
  81. package/hooks/useTicks.d.ts +1 -1
  82. package/hooks/useTicks.js +21 -3
  83. package/hooks/useTicks.mjs +21 -3
  84. package/index.d.mts +2 -0
  85. package/index.d.ts +2 -0
  86. package/index.js +25 -1
  87. package/index.mjs +3 -1
  88. package/internals/material/index.js +6 -1
  89. package/internals/material/index.mjs +6 -1
  90. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +8 -12
  91. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +8 -12
  92. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +1 -0
  93. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1 -0
  94. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +7 -4
  95. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +8 -5
  96. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +3 -3
  97. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.mjs +3 -3
  98. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +3 -3
  99. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +3 -3
  100. package/models/axis.d.mts +11 -2
  101. package/models/axis.d.ts +11 -2
  102. package/models/seriesType/bar.d.mts +9 -0
  103. package/models/seriesType/bar.d.ts +9 -0
  104. package/models/seriesType/line.d.mts +9 -0
  105. package/models/seriesType/line.d.ts +9 -0
  106. package/models/seriesType/scatter.d.mts +9 -0
  107. package/models/seriesType/scatter.d.ts +9 -0
  108. package/models/slots/chartsBaseSlotProps.d.mts +17 -0
  109. package/models/slots/chartsBaseSlotProps.d.ts +17 -0
  110. package/models/slots/chartsBaseSlots.d.mts +7 -1
  111. package/models/slots/chartsBaseSlots.d.ts +7 -1
  112. package/models/z-axis.d.mts +9 -0
  113. package/models/z-axis.d.ts +9 -0
  114. package/package.json +31 -3
  115. package/themeAugmentation/components.d.mts +4 -0
  116. package/themeAugmentation/components.d.ts +4 -0
  117. package/themeAugmentation/overrides.d.mts +2 -0
  118. package/themeAugmentation/overrides.d.ts +2 -0
  119. package/themeAugmentation/props.d.mts +2 -0
  120. package/themeAugmentation/props.d.ts +2 -0
  121. package/utils/epsilon.d.mts +1 -0
  122. package/utils/epsilon.d.ts +1 -0
  123. package/utils/epsilon.js +7 -0
  124. package/utils/epsilon.mjs +1 -0
@@ -284,7 +284,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
284
284
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
285
285
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
286
286
  hideTooltip: PropTypes.bool,
287
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
287
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
288
288
  ignoreTooltip: PropTypes.bool,
289
289
  label: PropTypes.string,
290
290
  labelStyle: PropTypes.object,
@@ -309,7 +309,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
309
309
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
310
310
  tickSize: PropTypes.number,
311
311
  tickSpacing: PropTypes.number,
312
- valueFormatter: PropTypes.func
312
+ valueFormatter: PropTypes.func,
313
+ valueGetter: PropTypes.func
313
314
  })),
314
315
  /**
315
316
  * The configuration of the rotation-axes.
@@ -349,7 +350,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
349
350
  })),
350
351
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
351
352
  hideTooltip: PropTypes.bool,
352
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
353
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
353
354
  ignoreTooltip: PropTypes.bool,
354
355
  label: PropTypes.string,
355
356
  labelGap: PropTypes.number,
@@ -377,7 +378,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
377
378
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
378
379
  tickSize: PropTypes.number,
379
380
  tickSpacing: PropTypes.number,
380
- valueFormatter: PropTypes.func
381
+ valueFormatter: PropTypes.func,
382
+ valueGetter: PropTypes.func
381
383
  }), PropTypes.shape({
382
384
  classes: PropTypes.object,
383
385
  className: PropTypes.string,
@@ -409,7 +411,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
409
411
  })),
410
412
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
411
413
  hideTooltip: PropTypes.bool,
412
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
414
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
413
415
  ignoreTooltip: PropTypes.bool,
414
416
  label: PropTypes.string,
415
417
  labelGap: PropTypes.number,
@@ -437,7 +439,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
437
439
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
438
440
  tickSize: PropTypes.number,
439
441
  tickSpacing: PropTypes.number,
440
- valueFormatter: PropTypes.func
442
+ valueFormatter: PropTypes.func,
443
+ valueGetter: PropTypes.func
441
444
  }), PropTypes.shape({
442
445
  classes: PropTypes.object,
443
446
  className: PropTypes.string,
@@ -459,7 +462,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
459
462
  endAngle: PropTypes.number,
460
463
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
461
464
  hideTooltip: PropTypes.bool,
462
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
465
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
463
466
  ignoreTooltip: PropTypes.bool,
464
467
  label: PropTypes.string,
465
468
  labelGap: PropTypes.number,
@@ -484,7 +487,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
484
487
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
485
488
  tickSize: PropTypes.number,
486
489
  tickSpacing: PropTypes.number,
487
- valueFormatter: PropTypes.func
490
+ valueFormatter: PropTypes.func,
491
+ valueGetter: PropTypes.func
488
492
  }), PropTypes.shape({
489
493
  classes: PropTypes.object,
490
494
  className: PropTypes.string,
@@ -507,7 +511,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
507
511
  endAngle: PropTypes.number,
508
512
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
509
513
  hideTooltip: PropTypes.bool,
510
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
514
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
511
515
  ignoreTooltip: PropTypes.bool,
512
516
  label: PropTypes.string,
513
517
  labelGap: PropTypes.number,
@@ -532,7 +536,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
532
536
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
533
537
  tickSize: PropTypes.number,
534
538
  tickSpacing: PropTypes.number,
535
- valueFormatter: PropTypes.func
539
+ valueFormatter: PropTypes.func,
540
+ valueGetter: PropTypes.func
536
541
  }), PropTypes.shape({
537
542
  classes: PropTypes.object,
538
543
  className: PropTypes.string,
@@ -554,7 +559,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
554
559
  endAngle: PropTypes.number,
555
560
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
556
561
  hideTooltip: PropTypes.bool,
557
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
562
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
558
563
  ignoreTooltip: PropTypes.bool,
559
564
  label: PropTypes.string,
560
565
  labelGap: PropTypes.number,
@@ -579,7 +584,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
579
584
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
580
585
  tickSize: PropTypes.number,
581
586
  tickSpacing: PropTypes.number,
582
- valueFormatter: PropTypes.func
587
+ valueFormatter: PropTypes.func,
588
+ valueGetter: PropTypes.func
583
589
  }), PropTypes.shape({
584
590
  classes: PropTypes.object,
585
591
  className: PropTypes.string,
@@ -601,7 +607,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
601
607
  endAngle: PropTypes.number,
602
608
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
603
609
  hideTooltip: PropTypes.bool,
604
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
610
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
605
611
  ignoreTooltip: PropTypes.bool,
606
612
  label: PropTypes.string,
607
613
  labelGap: PropTypes.number,
@@ -626,7 +632,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
626
632
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
627
633
  tickSize: PropTypes.number,
628
634
  tickSpacing: PropTypes.number,
629
- valueFormatter: PropTypes.func
635
+ valueFormatter: PropTypes.func,
636
+ valueGetter: PropTypes.func
630
637
  }), PropTypes.shape({
631
638
  classes: PropTypes.object,
632
639
  className: PropTypes.string,
@@ -648,7 +655,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
648
655
  endAngle: PropTypes.number,
649
656
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
650
657
  hideTooltip: PropTypes.bool,
651
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
658
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
652
659
  ignoreTooltip: PropTypes.bool,
653
660
  label: PropTypes.string,
654
661
  labelGap: PropTypes.number,
@@ -677,7 +684,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
677
684
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
678
685
  tickSize: PropTypes.number,
679
686
  tickSpacing: PropTypes.number,
680
- valueFormatter: PropTypes.func
687
+ valueFormatter: PropTypes.func,
688
+ valueGetter: PropTypes.func
681
689
  }), PropTypes.shape({
682
690
  classes: PropTypes.object,
683
691
  className: PropTypes.string,
@@ -699,7 +707,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
699
707
  endAngle: PropTypes.number,
700
708
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
701
709
  hideTooltip: PropTypes.bool,
702
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
710
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
703
711
  ignoreTooltip: PropTypes.bool,
704
712
  label: PropTypes.string,
705
713
  labelGap: PropTypes.number,
@@ -728,7 +736,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
728
736
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
729
737
  tickSize: PropTypes.number,
730
738
  tickSpacing: PropTypes.number,
731
- valueFormatter: PropTypes.func
739
+ valueFormatter: PropTypes.func,
740
+ valueGetter: PropTypes.func
732
741
  }), PropTypes.shape({
733
742
  classes: PropTypes.object,
734
743
  className: PropTypes.string,
@@ -750,7 +759,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
750
759
  endAngle: PropTypes.number,
751
760
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
752
761
  hideTooltip: PropTypes.bool,
753
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
762
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
754
763
  ignoreTooltip: PropTypes.bool,
755
764
  label: PropTypes.string,
756
765
  labelGap: PropTypes.number,
@@ -775,7 +784,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
775
784
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
776
785
  tickSize: PropTypes.number,
777
786
  tickSpacing: PropTypes.number,
778
- valueFormatter: PropTypes.func
787
+ valueFormatter: PropTypes.func,
788
+ valueGetter: PropTypes.func
779
789
  })]).isRequired),
780
790
  /**
781
791
  * The array of series to display.
@@ -892,7 +902,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
892
902
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
893
903
  tickSize: PropTypes.number,
894
904
  tickSpacing: PropTypes.number,
895
- valueFormatter: PropTypes.func
905
+ valueFormatter: PropTypes.func,
906
+ valueGetter: PropTypes.func
896
907
  }), PropTypes.shape({
897
908
  axis: PropTypes.oneOf(['x']),
898
909
  classes: PropTypes.object,
@@ -951,7 +962,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
951
962
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
952
963
  tickSize: PropTypes.number,
953
964
  tickSpacing: PropTypes.number,
954
- valueFormatter: PropTypes.func
965
+ valueFormatter: PropTypes.func,
966
+ valueGetter: PropTypes.func
955
967
  }), PropTypes.shape({
956
968
  axis: PropTypes.oneOf(['x']),
957
969
  classes: PropTypes.object,
@@ -997,7 +1009,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
997
1009
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
998
1010
  tickSize: PropTypes.number,
999
1011
  tickSpacing: PropTypes.number,
1000
- valueFormatter: PropTypes.func
1012
+ valueFormatter: PropTypes.func,
1013
+ valueGetter: PropTypes.func
1001
1014
  }), PropTypes.shape({
1002
1015
  axis: PropTypes.oneOf(['x']),
1003
1016
  classes: PropTypes.object,
@@ -1044,7 +1057,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1044
1057
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1045
1058
  tickSize: PropTypes.number,
1046
1059
  tickSpacing: PropTypes.number,
1047
- valueFormatter: PropTypes.func
1060
+ valueFormatter: PropTypes.func,
1061
+ valueGetter: PropTypes.func
1048
1062
  }), PropTypes.shape({
1049
1063
  axis: PropTypes.oneOf(['x']),
1050
1064
  classes: PropTypes.object,
@@ -1090,7 +1104,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1090
1104
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1091
1105
  tickSize: PropTypes.number,
1092
1106
  tickSpacing: PropTypes.number,
1093
- valueFormatter: PropTypes.func
1107
+ valueFormatter: PropTypes.func,
1108
+ valueGetter: PropTypes.func
1094
1109
  }), PropTypes.shape({
1095
1110
  axis: PropTypes.oneOf(['x']),
1096
1111
  classes: PropTypes.object,
@@ -1136,7 +1151,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1136
1151
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1137
1152
  tickSize: PropTypes.number,
1138
1153
  tickSpacing: PropTypes.number,
1139
- valueFormatter: PropTypes.func
1154
+ valueFormatter: PropTypes.func,
1155
+ valueGetter: PropTypes.func
1140
1156
  }), PropTypes.shape({
1141
1157
  axis: PropTypes.oneOf(['x']),
1142
1158
  classes: PropTypes.object,
@@ -1186,7 +1202,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1186
1202
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1187
1203
  tickSize: PropTypes.number,
1188
1204
  tickSpacing: PropTypes.number,
1189
- valueFormatter: PropTypes.func
1205
+ valueFormatter: PropTypes.func,
1206
+ valueGetter: PropTypes.func
1190
1207
  }), PropTypes.shape({
1191
1208
  axis: PropTypes.oneOf(['x']),
1192
1209
  classes: PropTypes.object,
@@ -1236,7 +1253,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1236
1253
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1237
1254
  tickSize: PropTypes.number,
1238
1255
  tickSpacing: PropTypes.number,
1239
- valueFormatter: PropTypes.func
1256
+ valueFormatter: PropTypes.func,
1257
+ valueGetter: PropTypes.func
1240
1258
  }), PropTypes.shape({
1241
1259
  axis: PropTypes.oneOf(['x']),
1242
1260
  classes: PropTypes.object,
@@ -1282,7 +1300,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1282
1300
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
1283
1301
  tickSize: PropTypes.number,
1284
1302
  tickSpacing: PropTypes.number,
1285
- valueFormatter: PropTypes.func
1303
+ valueFormatter: PropTypes.func,
1304
+ valueGetter: PropTypes.func
1286
1305
  })]).isRequired),
1287
1306
  /**
1288
1307
  * The configuration of the y-axes.
@@ -1348,6 +1367,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1348
1367
  tickSize: PropTypes.number,
1349
1368
  tickSpacing: PropTypes.number,
1350
1369
  valueFormatter: PropTypes.func,
1370
+ valueGetter: PropTypes.func,
1351
1371
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1352
1372
  }), PropTypes.shape({
1353
1373
  axis: PropTypes.oneOf(['y']),
@@ -1406,6 +1426,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1406
1426
  tickSize: PropTypes.number,
1407
1427
  tickSpacing: PropTypes.number,
1408
1428
  valueFormatter: PropTypes.func,
1429
+ valueGetter: PropTypes.func,
1409
1430
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1410
1431
  }), PropTypes.shape({
1411
1432
  axis: PropTypes.oneOf(['y']),
@@ -1451,6 +1472,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1451
1472
  tickSize: PropTypes.number,
1452
1473
  tickSpacing: PropTypes.number,
1453
1474
  valueFormatter: PropTypes.func,
1475
+ valueGetter: PropTypes.func,
1454
1476
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1455
1477
  }), PropTypes.shape({
1456
1478
  axis: PropTypes.oneOf(['y']),
@@ -1497,6 +1519,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1497
1519
  tickSize: PropTypes.number,
1498
1520
  tickSpacing: PropTypes.number,
1499
1521
  valueFormatter: PropTypes.func,
1522
+ valueGetter: PropTypes.func,
1500
1523
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1501
1524
  }), PropTypes.shape({
1502
1525
  axis: PropTypes.oneOf(['y']),
@@ -1542,6 +1565,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1542
1565
  tickSize: PropTypes.number,
1543
1566
  tickSpacing: PropTypes.number,
1544
1567
  valueFormatter: PropTypes.func,
1568
+ valueGetter: PropTypes.func,
1545
1569
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1546
1570
  }), PropTypes.shape({
1547
1571
  axis: PropTypes.oneOf(['y']),
@@ -1587,6 +1611,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1587
1611
  tickSize: PropTypes.number,
1588
1612
  tickSpacing: PropTypes.number,
1589
1613
  valueFormatter: PropTypes.func,
1614
+ valueGetter: PropTypes.func,
1590
1615
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1591
1616
  }), PropTypes.shape({
1592
1617
  axis: PropTypes.oneOf(['y']),
@@ -1636,6 +1661,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1636
1661
  tickSize: PropTypes.number,
1637
1662
  tickSpacing: PropTypes.number,
1638
1663
  valueFormatter: PropTypes.func,
1664
+ valueGetter: PropTypes.func,
1639
1665
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1640
1666
  }), PropTypes.shape({
1641
1667
  axis: PropTypes.oneOf(['y']),
@@ -1685,6 +1711,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1685
1711
  tickSize: PropTypes.number,
1686
1712
  tickSpacing: PropTypes.number,
1687
1713
  valueFormatter: PropTypes.func,
1714
+ valueGetter: PropTypes.func,
1688
1715
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1689
1716
  }), PropTypes.shape({
1690
1717
  axis: PropTypes.oneOf(['y']),
@@ -1730,6 +1757,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1730
1757
  tickSize: PropTypes.number,
1731
1758
  tickSpacing: PropTypes.number,
1732
1759
  valueFormatter: PropTypes.func,
1760
+ valueGetter: PropTypes.func,
1733
1761
  width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1734
1762
  })]).isRequired),
1735
1763
  /**
@@ -1755,7 +1783,8 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
1755
1783
  dataKey: PropTypes.string,
1756
1784
  id: PropTypes.string,
1757
1785
  max: PropTypes.number,
1758
- min: PropTypes.number
1786
+ min: PropTypes.number,
1787
+ valueGetter: PropTypes.func
1759
1788
  }))
1760
1789
  } : void 0;
1761
1790
  export { ChartsContainer };
@@ -13,14 +13,9 @@ var _defaultSeriesConfig = require("../internals/plugins/utils/defaultSeriesConf
13
13
  var _allPlugins = require("../internals/plugins/allPlugins");
14
14
  const _excluded = ["children", "localeText", "plugins", "slots", "slotProps", "seriesConfig"];
15
15
  const useChartsDataProviderProps = inProps => {
16
- // eslint-disable-next-line mui/material-ui-name-matches-component-name
17
- const themedProps = (0, _styles.useThemeProps)({
18
- props: inProps,
19
- name: 'MuiChartsDataProvider'
20
- });
21
16
  // eslint-disable-next-line mui/material-ui-name-matches-component-name
22
17
  const props = (0, _styles.useThemeProps)({
23
- props: themedProps,
18
+ props: inProps,
24
19
  name: 'MuiChartsDataProvider'
25
20
  });
26
21
  const {
@@ -7,14 +7,9 @@ import { useTheme, useThemeProps } from '@mui/material/styles';
7
7
  import { defaultSeriesConfig } from "../internals/plugins/utils/defaultSeriesConfig.mjs";
8
8
  import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.mjs";
9
9
  export const useChartsDataProviderProps = inProps => {
10
- // eslint-disable-next-line mui/material-ui-name-matches-component-name
11
- const themedProps = useThemeProps({
12
- props: inProps,
13
- name: 'MuiChartsDataProvider'
14
- });
15
10
  // eslint-disable-next-line mui/material-ui-name-matches-component-name
16
11
  const props = useThemeProps({
17
- props: themedProps,
12
+ props: inProps,
18
13
  name: 'MuiChartsDataProvider'
19
14
  });
20
15
  const {
@@ -10,9 +10,9 @@ const GridRoot = exports.GridRoot = (0, _styles.styled)('g', {
10
10
  name: 'MuiChartsGrid',
11
11
  slot: 'Root',
12
12
  overridesResolver: (props, styles) => [{
13
- [`&.${_chartsGridClasses.chartsGridClasses.verticalLine}`]: styles.verticalLine
13
+ [`& .${_chartsGridClasses.chartsGridClasses.verticalLine}`]: styles.verticalLine
14
14
  }, {
15
- [`&.${_chartsGridClasses.chartsGridClasses.horizontalLine}`]: styles.horizontalLine
15
+ [`& .${_chartsGridClasses.chartsGridClasses.horizontalLine}`]: styles.horizontalLine
16
16
  }, styles.root]
17
17
  })({});
18
18
  const GridLine = exports.GridLine = (0, _styles.styled)('line', {
@@ -4,9 +4,9 @@ export const GridRoot = styled('g', {
4
4
  name: 'MuiChartsGrid',
5
5
  slot: 'Root',
6
6
  overridesResolver: (props, styles) => [{
7
- [`&.${chartsGridClasses.verticalLine}`]: styles.verticalLine
7
+ [`& .${chartsGridClasses.verticalLine}`]: styles.verticalLine
8
8
  }, {
9
- [`&.${chartsGridClasses.horizontalLine}`]: styles.horizontalLine
9
+ [`& .${chartsGridClasses.horizontalLine}`]: styles.horizontalLine
10
10
  }, styles.root]
11
11
  })({});
12
12
  export const GridLine = styled('line', {
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.mjs";
3
+ import { type ChartsProviderProps } from "../context/ChartsProvider/index.mjs";
4
+ import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.mjs";
5
+ import { type ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.mjs";
6
+ import { type RadialPluginSignatures } from "./ChartsRadialDataProvider.plugins.mjs";
7
+ import { type PolarChartSeriesType } from "../models/seriesType/config.mjs";
8
+ export interface ChartsRadialDataProviderSlots extends ChartsSlots {}
9
+ export interface ChartsRadialDataProviderSlotProps extends ChartsSlotProps {}
10
+ export type ChartsRadialDataProviderProps<SeriesType extends PolarChartSeriesType = PolarChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>> = React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>['pluginParams'] & Pick<ChartsProviderProps<SeriesType, TSignatures>, 'plugins'>> & ChartsLocalizationProviderProps & {
11
+ /**
12
+ * Slots to customize charts' components.
13
+ */
14
+ slots?: Partial<ChartsRadialDataProviderSlots>;
15
+ /**
16
+ * The props for the slots.
17
+ */
18
+ slotProps?: Partial<ChartsRadialDataProviderSlotProps>;
19
+ };
20
+ /**
21
+ * Orchestrates the data providers for radial chart components and hooks.
22
+ *
23
+ * Similar to `ChartsDataProvider`, but uses the radial axis plugin instead of the cartesian one,
24
+ * and only supports the line series config.
25
+ *
26
+ * Demos:
27
+ *
28
+ * - [Composition](https://mui.com/x/react-charts/composition/)
29
+ *
30
+ * API:
31
+ *
32
+ * - [ChartsRadialDataProvider API](https://mui.com/x/api/charts/charts-radial-data-provider/)
33
+ */
34
+ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesType = PolarChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>>(props: ChartsRadialDataProviderProps<SeriesType, TSignatures>): import("react/jsx-runtime").JSX.Element;
35
+ declare namespace ChartsRadialDataProvider {
36
+ var propTypes: any;
37
+ }
38
+ export { ChartsRadialDataProvider as Unstable_ChartsRadialDataProvider };
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.js";
3
+ import { type ChartsProviderProps } from "../context/ChartsProvider/index.js";
4
+ import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
5
+ import { type ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
6
+ import { type RadialPluginSignatures } from "./ChartsRadialDataProvider.plugins.js";
7
+ import { type PolarChartSeriesType } from "../models/seriesType/config.js";
8
+ export interface ChartsRadialDataProviderSlots extends ChartsSlots {}
9
+ export interface ChartsRadialDataProviderSlotProps extends ChartsSlotProps {}
10
+ export type ChartsRadialDataProviderProps<SeriesType extends PolarChartSeriesType = PolarChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>> = React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>['pluginParams'] & Pick<ChartsProviderProps<SeriesType, TSignatures>, 'plugins'>> & ChartsLocalizationProviderProps & {
11
+ /**
12
+ * Slots to customize charts' components.
13
+ */
14
+ slots?: Partial<ChartsRadialDataProviderSlots>;
15
+ /**
16
+ * The props for the slots.
17
+ */
18
+ slotProps?: Partial<ChartsRadialDataProviderSlotProps>;
19
+ };
20
+ /**
21
+ * Orchestrates the data providers for radial chart components and hooks.
22
+ *
23
+ * Similar to `ChartsDataProvider`, but uses the radial axis plugin instead of the cartesian one,
24
+ * and only supports the line series config.
25
+ *
26
+ * Demos:
27
+ *
28
+ * - [Composition](https://mui.com/x/react-charts/composition/)
29
+ *
30
+ * API:
31
+ *
32
+ * - [ChartsRadialDataProvider API](https://mui.com/x/api/charts/charts-radial-data-provider/)
33
+ */
34
+ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesType = PolarChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>>(props: ChartsRadialDataProviderProps<SeriesType, TSignatures>): import("react/jsx-runtime").JSX.Element;
35
+ declare namespace ChartsRadialDataProvider {
36
+ var propTypes: any;
37
+ }
38
+ export { ChartsRadialDataProvider as Unstable_ChartsRadialDataProvider };
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.Unstable_ChartsRadialDataProvider = ChartsRadialDataProvider;
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _material = require("../internals/material");
14
+ var _ChartsSlotsContext = require("../context/ChartsSlotsContext");
15
+ var _ChartsProvider = require("../context/ChartsProvider");
16
+ var _ChartsLocalizationProvider = require("../ChartsLocalizationProvider");
17
+ var _useChartsRadialDataProviderProps = require("./useChartsRadialDataProviderProps");
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+ /**
20
+ * Orchestrates the data providers for radial chart components and hooks.
21
+ *
22
+ * Similar to `ChartsDataProvider`, but uses the radial axis plugin instead of the cartesian one,
23
+ * and only supports the line series config.
24
+ *
25
+ * Demos:
26
+ *
27
+ * - [Composition](https://mui.com/x/react-charts/composition/)
28
+ *
29
+ * API:
30
+ *
31
+ * - [ChartsRadialDataProvider API](https://mui.com/x/api/charts/charts-radial-data-provider/)
32
+ */
33
+ function ChartsRadialDataProvider(props) {
34
+ const {
35
+ children,
36
+ localeText,
37
+ chartProviderProps,
38
+ slots,
39
+ slotProps
40
+ } = (0, _useChartsRadialDataProviderProps.useChartsRadialDataProviderProps)(props);
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsProvider.ChartsProvider, (0, _extends2.default)({}, chartProviderProps, {
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLocalizationProvider.ChartsLocalizationProvider, {
43
+ localeText: localeText,
44
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsSlotsContext.ChartsSlotsProvider, {
45
+ slots: slots,
46
+ slotProps: slotProps,
47
+ defaultSlots: _material.defaultSlotsMaterial,
48
+ children: children
49
+ })
50
+ })
51
+ }));
52
+ }
53
+ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
54
+ // ----------------------------- Warning --------------------------------
55
+ // | These PropTypes are generated from the TypeScript type definitions |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
+ // ----------------------------------------------------------------------
58
+ apiRef: _propTypes.default.shape({
59
+ current: _propTypes.default.any
60
+ }),
61
+ /**
62
+ * Color palette used to colorize multiple series.
63
+ * @default rainbowSurgePalette
64
+ */
65
+ colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
66
+ /**
67
+ * The height of the chart in px. If not defined, it takes the height of the parent element.
68
+ */
69
+ height: _propTypes.default.number,
70
+ /**
71
+ * This prop is used to help implement the accessibility logic.
72
+ * If you don't provide this prop. It falls back to a randomly generated id.
73
+ */
74
+ id: _propTypes.default.string,
75
+ /**
76
+ * Localized text for chart components.
77
+ */
78
+ localeText: _propTypes.default.object,
79
+ /**
80
+ * The margin between the SVG and the drawing area.
81
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
82
+ *
83
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
84
+ */
85
+ margin: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
86
+ bottom: _propTypes.default.number,
87
+ left: _propTypes.default.number,
88
+ right: _propTypes.default.number,
89
+ top: _propTypes.default.number
90
+ })]),
91
+ /**
92
+ * The array of series to display.
93
+ * Each type of series has its own specificity.
94
+ * Please refer to the appropriate docs page to learn more about it.
95
+ */
96
+ series: _propTypes.default.arrayOf(_propTypes.default.object),
97
+ /**
98
+ * If `true`, animations are skipped.
99
+ * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
100
+ */
101
+ skipAnimation: _propTypes.default.bool,
102
+ /**
103
+ * The props for the slots.
104
+ */
105
+ slotProps: _propTypes.default.object,
106
+ /**
107
+ * Slots to customize charts' components.
108
+ */
109
+ slots: _propTypes.default.object,
110
+ theme: _propTypes.default.oneOf(['dark', 'light']),
111
+ /**
112
+ * The width of the chart in px. If not defined, it takes the width of the parent element.
113
+ */
114
+ width: _propTypes.default.number
115
+ } : void 0;