@mui/x-charts 8.1.0 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  3. package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  4. package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  5. package/BarChart/BarLabel/index.d.ts +4 -4
  6. package/BarChart/checkScaleErrors.d.ts +3 -3
  7. package/BarChart/checkScaleErrors.js +4 -4
  8. package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  9. package/BarChart/seriesConfig/seriesProcessor.js +2 -2
  10. package/BarChart/seriesConfig/tooltip.d.ts +1 -1
  11. package/BarChart/types.d.ts +2 -2
  12. package/BarChart/useBarChartProps.d.ts +2 -2
  13. package/BarChart/useBarChartProps.js +20 -2
  14. package/CHANGELOG.md +126 -7
  15. package/ChartContainer/ChartContainer.js +1 -1
  16. package/ChartContainer/useChartContainerProps.d.ts +1 -1
  17. package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  18. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  19. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  20. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  21. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  22. package/ChartsLabel/ChartsLabelMark.js +8 -4
  23. package/ChartsLabel/index.d.ts +4 -4
  24. package/ChartsLabel/labelClasses.d.ts +1 -1
  25. package/ChartsLabel/labelGradientClasses.d.ts +1 -1
  26. package/ChartsLabel/labelMarkClasses.d.ts +1 -1
  27. package/ChartsLegend/ChartsLegend.d.ts +2 -2
  28. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  29. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  30. package/ChartsLegend/chartsLegend.types.d.ts +1 -1
  31. package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  32. package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  33. package/ChartsLegend/index.d.ts +4 -4
  34. package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  35. package/ChartsLegend/useAxis.d.ts +2 -2
  36. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  37. package/ChartsLocalizationProvider/index.d.ts +1 -1
  38. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  39. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  40. package/ChartsOverlay/index.d.ts +1 -1
  41. package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  42. package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  43. package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  44. package/ChartsText/index.d.ts +2 -2
  45. package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  46. package/ChartsTooltip/index.d.ts +3 -3
  47. package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  48. package/LineChart/AnimatedArea.d.ts +1 -1
  49. package/LineChart/AnimatedLine.d.ts +1 -1
  50. package/LineChart/AreaPlot.js +2 -2
  51. package/LineChart/LineChart.js +1 -1
  52. package/LineChart/LineHighlightPlot.js +1 -1
  53. package/LineChart/LinePlot.js +2 -2
  54. package/LineChart/MarkPlot.js +1 -1
  55. package/LineChart/index.d.ts +1 -1
  56. package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  57. package/LineChart/seriesConfig/seriesProcessor.js +2 -2
  58. package/LineChart/seriesConfig/tooltip.d.ts +1 -1
  59. package/LineChart/useLineChartProps.d.ts +2 -2
  60. package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  61. package/PieChart/seriesConfig/tooltip.d.ts +1 -1
  62. package/RadarChart/RadarGrid/index.d.ts +1 -1
  63. package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  64. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  65. package/RadarChart/index.d.ts +2 -2
  66. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  67. package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  68. package/RadarChart/useRadarChartProps.d.ts +2 -2
  69. package/ScatterChart/ScatterChart.js +1 -1
  70. package/ScatterChart/ScatterMarker.types.d.ts +1 -1
  71. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  72. package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  73. package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  74. package/ScatterChart/useScatterChartProps.d.ts +3 -3
  75. package/SparkLineChart/SparkLineChart.js +1 -1
  76. package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  77. package/colorPalettes/categorical/blueberryTwilight.js +10 -0
  78. package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  79. package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
  80. package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  81. package/colorPalettes/categorical/mangoFusion.js +10 -0
  82. package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  83. package/colorPalettes/categorical/rainbowSurge.js +10 -0
  84. package/colorPalettes/index.d.ts +14 -1
  85. package/colorPalettes/index.js +147 -4
  86. package/colorPalettes/sequential/blue.d.ts +4 -0
  87. package/colorPalettes/sequential/blue.js +12 -0
  88. package/colorPalettes/sequential/cyan.d.ts +4 -0
  89. package/colorPalettes/sequential/cyan.js +12 -0
  90. package/colorPalettes/sequential/green.d.ts +4 -0
  91. package/colorPalettes/sequential/green.js +12 -0
  92. package/colorPalettes/sequential/orange.d.ts +4 -0
  93. package/colorPalettes/sequential/orange.js +12 -0
  94. package/colorPalettes/sequential/pink.d.ts +4 -0
  95. package/colorPalettes/sequential/pink.js +12 -0
  96. package/colorPalettes/sequential/purple.d.ts +4 -0
  97. package/colorPalettes/sequential/purple.js +12 -0
  98. package/colorPalettes/sequential/red.d.ts +4 -0
  99. package/colorPalettes/sequential/red.js +12 -0
  100. package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  101. package/colorPalettes/sequential/strawberrySky.js +10 -0
  102. package/colorPalettes/sequential/yellow.d.ts +4 -0
  103. package/colorPalettes/sequential/yellow.js +12 -0
  104. package/colorPalettes/types.d.ts +4 -0
  105. package/colorPalettes/types.js +5 -0
  106. package/context/ChartProvider/ChartContext.d.ts +1 -1
  107. package/context/ChartProvider/ChartProvider.d.ts +1 -1
  108. package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  109. package/context/ChartProvider/useChartContext.js +1 -1
  110. package/context/index.d.ts +1 -1
  111. package/esm/BarChart/BarChart.js +1 -1
  112. package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  113. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  114. package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  115. package/esm/BarChart/BarLabel/index.d.ts +4 -4
  116. package/esm/BarChart/checkScaleErrors.d.ts +3 -3
  117. package/esm/BarChart/checkScaleErrors.js +4 -4
  118. package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  119. package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
  120. package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
  121. package/esm/BarChart/types.d.ts +2 -2
  122. package/esm/BarChart/useBarChartProps.d.ts +2 -2
  123. package/esm/BarChart/useBarChartProps.js +20 -2
  124. package/esm/ChartContainer/ChartContainer.js +1 -1
  125. package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
  126. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  127. package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  128. package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  129. package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  130. package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  131. package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
  132. package/esm/ChartsLabel/index.d.ts +4 -4
  133. package/esm/ChartsLabel/labelClasses.d.ts +1 -1
  134. package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
  135. package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
  136. package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
  137. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  138. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  139. package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
  140. package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  141. package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  142. package/esm/ChartsLegend/index.d.ts +4 -4
  143. package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  144. package/esm/ChartsLegend/useAxis.d.ts +2 -2
  145. package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  146. package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
  147. package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  148. package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  149. package/esm/ChartsOverlay/index.d.ts +1 -1
  150. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  151. package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  152. package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  153. package/esm/ChartsText/index.d.ts +2 -2
  154. package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  155. package/esm/ChartsTooltip/index.d.ts +3 -3
  156. package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  157. package/esm/LineChart/AnimatedArea.d.ts +1 -1
  158. package/esm/LineChart/AnimatedLine.d.ts +1 -1
  159. package/esm/LineChart/AreaPlot.js +2 -2
  160. package/esm/LineChart/LineChart.js +1 -1
  161. package/esm/LineChart/LineHighlightPlot.js +1 -1
  162. package/esm/LineChart/LinePlot.js +2 -2
  163. package/esm/LineChart/MarkPlot.js +1 -1
  164. package/esm/LineChart/index.d.ts +1 -1
  165. package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  166. package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
  167. package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
  168. package/esm/LineChart/useLineChartProps.d.ts +2 -2
  169. package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  170. package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
  171. package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
  172. package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  173. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  174. package/esm/RadarChart/index.d.ts +2 -2
  175. package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  176. package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  177. package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
  178. package/esm/ScatterChart/ScatterChart.js +1 -1
  179. package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
  180. package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  181. package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  182. package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  183. package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
  184. package/esm/SparkLineChart/SparkLineChart.js +1 -1
  185. package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  186. package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
  187. package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  188. package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
  189. package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  190. package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
  191. package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  192. package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
  193. package/esm/colorPalettes/index.d.ts +14 -1
  194. package/esm/colorPalettes/index.js +20 -1
  195. package/esm/colorPalettes/sequential/blue.d.ts +4 -0
  196. package/esm/colorPalettes/sequential/blue.js +5 -0
  197. package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
  198. package/esm/colorPalettes/sequential/cyan.js +5 -0
  199. package/esm/colorPalettes/sequential/green.d.ts +4 -0
  200. package/esm/colorPalettes/sequential/green.js +5 -0
  201. package/esm/colorPalettes/sequential/orange.d.ts +4 -0
  202. package/esm/colorPalettes/sequential/orange.js +5 -0
  203. package/esm/colorPalettes/sequential/pink.d.ts +4 -0
  204. package/esm/colorPalettes/sequential/pink.js +5 -0
  205. package/esm/colorPalettes/sequential/purple.d.ts +4 -0
  206. package/esm/colorPalettes/sequential/purple.js +5 -0
  207. package/esm/colorPalettes/sequential/red.d.ts +4 -0
  208. package/esm/colorPalettes/sequential/red.js +5 -0
  209. package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  210. package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
  211. package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
  212. package/esm/colorPalettes/sequential/yellow.js +5 -0
  213. package/esm/colorPalettes/types.d.ts +4 -0
  214. package/esm/colorPalettes/types.js +1 -0
  215. package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
  216. package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
  217. package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  218. package/esm/context/ChartProvider/useChartContext.js +1 -1
  219. package/esm/context/index.d.ts +1 -1
  220. package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
  221. package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
  222. package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  223. package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
  224. package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
  225. package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
  226. package/esm/hooks/useAxis.d.ts +6 -6
  227. package/esm/hooks/useChartsLocalization.d.ts +1 -1
  228. package/esm/hooks/useChartsLocalization.js +1 -1
  229. package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
  230. package/esm/hooks/useLegend.d.ts +1 -1
  231. package/esm/hooks/useSeries.d.ts +1 -1
  232. package/esm/hooks/useSvgRef.js +1 -1
  233. package/esm/hooks/useZAxis.d.ts +3 -3
  234. package/esm/index.js +1 -1
  235. package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
  236. package/esm/internals/createSeriesSelectorOfType.js +1 -1
  237. package/esm/internals/defaultizeMargin.d.ts +1 -1
  238. package/esm/internals/geometry.js +1 -1
  239. package/esm/internals/getPercentageValue.js +1 -1
  240. package/esm/internals/plugins/allPlugins.d.ts +1 -1
  241. package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
  242. package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
  243. package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  244. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  245. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  246. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  247. package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  248. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  249. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  250. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
  251. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  252. package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  253. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  254. package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  255. package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  256. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  257. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
  258. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
  259. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
  260. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  261. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  262. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  263. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  264. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
  265. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  266. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
  267. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  268. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
  269. package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  270. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  271. package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  272. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  273. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  274. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  275. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  276. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  277. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  278. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  279. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  280. package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  281. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  282. package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  283. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  284. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  285. package/esm/internals/plugins/models/chart.d.ts +3 -3
  286. package/esm/internals/plugins/models/helpers.d.ts +1 -1
  287. package/esm/internals/plugins/models/plugin.d.ts +2 -2
  288. package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  289. package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  290. package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  291. package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  292. package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  293. package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  294. package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  295. package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  296. package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
  297. package/esm/internals/stackSeries.d.ts +1 -1
  298. package/esm/internals/store/useChartModels.js +2 -2
  299. package/esm/internals/store/useCharts.d.ts +1 -1
  300. package/esm/internals/store/useStore.js +1 -1
  301. package/esm/locales/index.d.ts +1 -1
  302. package/esm/models/axis.d.ts +15 -3
  303. package/esm/models/axis.js +8 -0
  304. package/esm/models/index.d.ts +3 -3
  305. package/esm/models/seriesType/bar.d.ts +1 -1
  306. package/esm/models/seriesType/common.d.ts +2 -2
  307. package/esm/models/seriesType/line.d.ts +1 -1
  308. package/esm/models/seriesType/pie.d.ts +1 -1
  309. package/esm/themeAugmentation/components.js +1 -0
  310. package/esm/themeAugmentation/index.d.ts +3 -3
  311. package/esm/themeAugmentation/overrides.d.ts +3 -12
  312. package/esm/themeAugmentation/overrides.js +2 -0
  313. package/esm/themeAugmentation/props.d.ts +0 -7
  314. package/esm/themeAugmentation/props.js +2 -0
  315. package/hooks/animation/useAnimateArea.d.ts +1 -1
  316. package/hooks/animation/useAnimateBar.d.ts +1 -1
  317. package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  318. package/hooks/animation/useAnimateLine.d.ts +1 -1
  319. package/hooks/animation/useAnimatePieArc.d.ts +1 -1
  320. package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
  321. package/hooks/useAxis.d.ts +6 -6
  322. package/hooks/useChartsLocalization.d.ts +1 -1
  323. package/hooks/useChartsLocalization.js +1 -1
  324. package/hooks/useItemHighlightedGetter.d.ts +2 -2
  325. package/hooks/useLegend.d.ts +1 -1
  326. package/hooks/useSeries.d.ts +1 -1
  327. package/hooks/useSvgRef.js +1 -1
  328. package/hooks/useZAxis.d.ts +3 -3
  329. package/index.js +1 -1
  330. package/internals/createSeriesSelectorOfType.d.ts +1 -1
  331. package/internals/createSeriesSelectorOfType.js +1 -1
  332. package/internals/defaultizeMargin.d.ts +1 -1
  333. package/internals/geometry.js +1 -1
  334. package/internals/getPercentageValue.js +1 -1
  335. package/internals/plugins/allPlugins.d.ts +1 -1
  336. package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
  337. package/internals/plugins/corePlugins/index.d.ts +1 -1
  338. package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  339. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  340. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  341. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  342. package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  343. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  344. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  345. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
  346. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  347. package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  348. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  349. package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  350. package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  351. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  352. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
  353. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
  354. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
  355. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  356. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  357. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  358. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  359. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
  360. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  361. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
  362. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  363. package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
  364. package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  365. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  366. package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  367. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  368. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  369. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  370. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  371. package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  372. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  373. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  374. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  375. package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  376. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  377. package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  378. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  379. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  380. package/internals/plugins/models/chart.d.ts +3 -3
  381. package/internals/plugins/models/helpers.d.ts +1 -1
  382. package/internals/plugins/models/plugin.d.ts +2 -2
  383. package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  384. package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  385. package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  386. package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  387. package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  388. package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  389. package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  390. package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  391. package/internals/plugins/utils/ChartStore.d.ts +2 -2
  392. package/internals/stackSeries.d.ts +1 -1
  393. package/internals/store/useChartModels.js +2 -2
  394. package/internals/store/useCharts.d.ts +1 -1
  395. package/internals/store/useStore.js +1 -1
  396. package/locales/index.d.ts +1 -1
  397. package/models/axis.d.ts +15 -3
  398. package/models/axis.js +8 -0
  399. package/models/index.d.ts +3 -3
  400. package/models/seriesType/bar.d.ts +1 -1
  401. package/models/seriesType/common.d.ts +2 -2
  402. package/models/seriesType/line.d.ts +1 -1
  403. package/models/seriesType/pie.d.ts +1 -1
  404. package/package.json +2 -2
  405. package/themeAugmentation/components.js +5 -0
  406. package/themeAugmentation/index.d.ts +3 -3
  407. package/themeAugmentation/overrides.d.ts +3 -12
  408. package/themeAugmentation/overrides.js +5 -0
  409. package/themeAugmentation/props.d.ts +0 -7
  410. package/themeAugmentation/props.js +5 -0
  411. package/colorPalettes/colorPalettes.d.ts +0 -16
  412. package/colorPalettes/colorPalettes.js +0 -22
  413. package/esm/colorPalettes/colorPalettes.d.ts +0 -16
  414. package/esm/colorPalettes/colorPalettes.js +0 -12
@@ -175,7 +175,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
175
175
  * The function called for onClick events.
176
176
  * The second argument contains information about all line/bar elements at the current mouse position.
177
177
  * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
178
- * @param {null | AxisData} data The data about the clicked axis and items associated with it.
178
+ * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
179
179
  */
180
180
  onAxisClick: _propTypes.default.func,
181
181
  /**
@@ -1,5 +1,5 @@
1
1
  import { SeriesId } from "../../models/seriesType/common.js";
2
- import type { BarLabelClasses } from './barLabelClasses';
2
+ import type { BarLabelClasses } from "./barLabelClasses.js";
3
3
  export interface BarLabelOwnerState {
4
4
  seriesId: SeriesId;
5
5
  dataIndex: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { CompletedBarData } from '../types';
2
+ import type { CompletedBarData } from "../types.js";
3
3
  import { BarLabelItemProps } from "./BarLabelItem.js";
4
4
  type BarLabelPlotProps = {
5
5
  bars: CompletedBarData[];
@@ -1,4 +1,4 @@
1
- import type { BarLabelOwnerState } from './BarLabel.types';
1
+ import type { BarLabelOwnerState } from "./BarLabel.types.js";
2
2
  export interface BarLabelClasses {
3
3
  /** Styles applied to the root element. */
4
4
  root: string;
@@ -1,6 +1,6 @@
1
1
  export { BarLabel } from "./BarLabel.js";
2
- export type { BarLabelProps } from './BarLabel';
2
+ export type { BarLabelProps } from "./BarLabel.js";
3
3
  export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
4
- export type { BarLabelSlotProps, BarLabelSlots } from './BarLabelItem';
5
- export type { BarLabelOwnerState, BarItem, BarLabelContext } from './BarLabel.types';
6
- export type { BarLabelClasses, BarLabelClassKey } from './barLabelClasses';
4
+ export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.js";
5
+ export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
6
+ export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.js";
@@ -1,10 +1,10 @@
1
- import { AxisDefaultized, AxisId } from "../models/axis.js";
1
+ import { AxisId, ComputedXAxis, ComputedYAxis } from "../models/axis.js";
2
2
  import { DefaultizedBarSeriesType } from "../models/seriesType/bar.js";
3
3
  import { SeriesId } from "../models/seriesType/common.js";
4
4
  export declare function checkScaleErrors(verticalLayout: boolean, seriesId: SeriesId, series: DefaultizedBarSeriesType & {
5
5
  stackedData: [number, number][];
6
6
  }, xAxisId: AxisId, xAxis: {
7
- [axisId: AxisId]: AxisDefaultized;
7
+ [axisId: AxisId]: ComputedXAxis;
8
8
  }, yAxisId: AxisId, yAxis: {
9
- [axisId: AxisId]: AxisDefaultized;
9
+ [axisId: AxisId]: ComputedYAxis;
10
10
  }): void;
@@ -23,17 +23,17 @@ function checkScaleErrors(verticalLayout, seriesId, series, xAxisId, xAxis, yAxi
23
23
  const discreteAxisDirection = verticalLayout ? 'x' : 'y';
24
24
  const continuousAxisDirection = verticalLayout ? 'y' : 'x';
25
25
  if (!(0, _axis.isBandScaleConfig)(discreteAxisConfig)) {
26
- throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
26
+ throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
27
27
  }
28
28
  if (discreteAxisConfig.data === undefined) {
29
- throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
29
+ throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
30
30
  }
31
31
  if ((0, _axis.isBandScaleConfig)(continuousAxisConfig) || (0, _axis.isPointScaleConfig)(continuousAxisConfig)) {
32
- throw new Error(`MUI X: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
32
+ throw new Error(`MUI X Charts: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
33
33
  }
34
34
  if (process.env.NODE_ENV !== 'production') {
35
35
  if (discreteAxisConfig.data.length < series.stackedData.length) {
36
- (0, _warning.warnOnce)([`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} has less data (${discreteAxisConfig.data.length} values) than the bar series of id "${seriesId}" (${series.stackedData.length} values).`, 'The axis data should have at least the same length than the series using it.'], 'error');
36
+ (0, _warning.warnOnce)([`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} has less data (${discreteAxisConfig.data.length} values) than the bar series of id "${seriesId}" (${series.stackedData.length} values).`, 'The axis data should have at least the same length than the series using it.'], 'error');
37
37
  }
38
38
  }
39
39
  }
@@ -1,3 +1,3 @@
1
- import type { GetSeriesWithDefaultValues } from '../../internals/plugins/models/seriesConfig';
1
+ import type { GetSeriesWithDefaultValues } from "../../internals/plugins/models/seriesConfig/index.js";
2
2
  declare const getSeriesWithDefaultValues: GetSeriesWithDefaultValues<'bar'>;
3
3
  export default getSeriesWithDefaultValues;
@@ -32,7 +32,7 @@ const seriesProcessor = (params, dataset) => {
32
32
  }
33
33
  });
34
34
  } else if (dataset === undefined) {
35
- throw new Error([`MUI X: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
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 = {};
@@ -60,7 +60,7 @@ const seriesProcessor = (params, dataset) => {
60
60
  if (typeof value !== 'number') {
61
61
  if (process.env.NODE_ENV !== 'production') {
62
62
  if (value !== null) {
63
- (0, _warning.warnOnce)([`MUI X: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
63
+ (0, _warning.warnOnce)([`MUI X Charts: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
64
64
  }
65
65
  }
66
66
  return 0;
@@ -1,4 +1,4 @@
1
- import type { AxisTooltipGetter, TooltipGetter } from '../../internals/plugins/models';
1
+ import type { AxisTooltipGetter, TooltipGetter } from "../../internals/plugins/models/index.js";
2
2
  declare const tooltipGetter: TooltipGetter<'bar'>;
3
3
  export declare const axisTooltipGetter: AxisTooltipGetter<'bar', 'x' | 'y'>;
4
4
  export default tooltipGetter;
@@ -1,5 +1,5 @@
1
- import type { BarSeriesType } from '../models';
2
- import type { SeriesId } from '../models/seriesType/common';
1
+ import type { BarSeriesType } from "../models/index.js";
2
+ import type { SeriesId } from "../models/seriesType/common.js";
3
3
  export type AnimationData = {
4
4
  x: number;
5
5
  y: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { BarChartProps } from './BarChart';
2
+ import type { BarChartProps } from "./BarChart.js";
3
3
  import { ChartContainerProps } from "../ChartContainer/index.js";
4
4
  import { BarPlotProps } from "./BarPlot.js";
5
5
  import { ChartsGridProps } from "../ChartsGrid/index.js";
@@ -8,7 +8,7 @@ import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
8
8
  import { ChartsAxisProps } from "../ChartsAxis/index.js";
9
9
  import { ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
10
10
  import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
11
- import type { ChartsWrapperProps } from '../internals/components/ChartsWrapper';
11
+ import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
12
12
  import { BarChartPluginsSignatures } from "./BarChart.plugins.js";
13
13
  /**
14
14
  * A helper function that extracts BarChartProps from the input props
@@ -70,6 +70,24 @@ const useBarChartProps = props => {
70
70
  }, s, {
71
71
  layout: hasHorizontalSeries ? 'horizontal' : 'vertical'
72
72
  })), [hasHorizontalSeries, series]);
73
+ const defaultXAxis = hasHorizontalSeries ? undefined : defaultBandXAxis;
74
+ const processedXAxis = React.useMemo(() => {
75
+ if (!xAxis) {
76
+ return defaultXAxis;
77
+ }
78
+ return hasHorizontalSeries ? xAxis : xAxis.map(axis => (0, _extends2.default)({
79
+ scaleType: 'band'
80
+ }, axis));
81
+ }, [defaultXAxis, hasHorizontalSeries, xAxis]);
82
+ const defaultYAxis = hasHorizontalSeries ? defaultBandYAxis : undefined;
83
+ const processedYAxis = React.useMemo(() => {
84
+ if (!yAxis) {
85
+ return defaultYAxis;
86
+ }
87
+ return hasHorizontalSeries ? yAxis.map(axis => (0, _extends2.default)({
88
+ scaleType: 'band'
89
+ }, axis)) : yAxis;
90
+ }, [defaultYAxis, hasHorizontalSeries, yAxis]);
73
91
  const chartContainerProps = (0, _extends2.default)({}, rest, {
74
92
  series: seriesWithDefault,
75
93
  width,
@@ -77,8 +95,8 @@ const useBarChartProps = props => {
77
95
  margin,
78
96
  colors,
79
97
  dataset,
80
- xAxis: xAxis ?? (hasHorizontalSeries ? undefined : defaultBandXAxis),
81
- yAxis: yAxis ?? (hasHorizontalSeries ? defaultBandYAxis : undefined),
98
+ xAxis: processedXAxis,
99
+ yAxis: processedYAxis,
82
100
  highlightedItem,
83
101
  onHighlightChange,
84
102
  disableAxisListener: slotProps?.tooltip?.trigger !== 'axis' && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
package/CHANGELOG.md CHANGED
@@ -5,13 +5,128 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.2.0
9
+
10
+ _May 1, 2025_
11
+
12
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 `<FunnelChart/>` now uses the `strawberrySky` sequential color palette by default.
15
+ <img width="481" alt="Screenshot 2025-04-29 at 13 55 21" src="https://github.com/user-attachments/assets/182085d1-a7ce-4e4d-9d8d-a4fe87f27167" />
16
+ - 📊 Add API to export a chart as an image: `apiRef.exportAsImage` — [Learn more](https://mui.com/x/react-charts/export/#export-as-image).
17
+
18
+ Special thanks go out to the community members for their valuable contributions:
19
+ @federico-ntr, @nusr.
20
+ Following are all team members who have contributed to this release:
21
+ @alexfauquette, @arminmeh, @bernardobelchior, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk.
22
+
23
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
24
+
25
+ ### Data Grid
26
+
27
+ #### `@mui/x-data-grid@8.2.0`
28
+
29
+ - [DataGrid] Fix panel alignment (#17625) @KenanYusuf
30
+ - [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17490) @KenanYusuf
31
+ - [DataGrid] Fix circular reference error (#17591) @romgrk
32
+ - [DataGrid] Fix `<GridEditInputCell />` break input (#16773) @nusr
33
+
34
+ #### `@mui/x-data-grid-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
35
+
36
+ Same changes as in `@mui/x-data-grid@8.2.0`, plus:
37
+
38
+ - [DataGridPro] Use intersection observer to trigger server-side infinite loading (#17369) @arminmeh
39
+
40
+ #### `@mui/x-data-grid-premium@8.2.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@8.2.0`.
43
+
44
+ ### Date and Time Pickers
45
+
46
+ #### `@mui/x-date-pickers@8.2.0`
47
+
48
+ - [l10n] Improve Italian (it-IT) locale (#17600) @federico-ntr
49
+ - [pickers] Refactor owner state typing (#17517) @LukasTy
50
+
51
+ #### `@mui/x-date-pickers-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
52
+
53
+ Same changes as in `@mui/x-date-pickers@8.2.0`.
54
+
55
+ ### Charts
56
+
57
+ #### `@mui/x-charts@8.2.0`
58
+
59
+ - [charts] Add library name to errors (#17547) @bernardobelchior
60
+ - [charts] Add monochrome palettes (#17610) @JCQuintas
61
+ - [charts] Add screenshot of the tooltip (#17395) @alexfauquette
62
+ - [charts] Default bar chart x-axis scale type to band (#17519) @bernardobelchior
63
+ - [charts] Document axis ID uniqueness constraints (#17630) @bernardobelchior
64
+ - [charts] Refactor axis types (#17632) @bernardobelchior
65
+ - [charts] Use `<circle />` for circular legend mark (#17590) @alexfauquette
66
+
67
+ #### `@mui/x-charts-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
68
+
69
+ Same changes as in `@mui/x-charts@8.2.0`, plus:
70
+
71
+ - [charts-pro] Add `gap` option to `<FunnelChart />` (#17642) @JCQuintas
72
+ - [charts-pro] Export charts as image (#17353) @bernardobelchior
73
+ - [charts-pro] Simplify zoom testing (#17525) @JCQuintas
74
+ - [charts-pro] Use new sequential color palette in `<FunnelChart />` (#17606) @JCQuintas
75
+
76
+ ### Tree View
77
+
78
+ #### `@mui/x-tree-view@8.2.0`
79
+
80
+ Internal changes.
81
+
82
+ #### `@mui/x-tree-view-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
83
+
84
+ Same changes as in `@mui/x-tree-view@8.2.0`.
85
+
86
+ ### Docs
87
+
88
+ - [docs][charts] Add composition sections (#17377) @alexfauquette
89
+ - [docs][charts] Add docs on tooltip style (#17601) @bernardobelchior
90
+ - [docs][charts] Fix highlighting heading structure (#17581) @oliviertassinari
91
+ - [docs][charts] Improve export docs (#17538) @oliviertassinari
92
+ - [docs][charts] Similar introduction on most charts pages (#17374) @alexfauquette
93
+ - [docs][DataGrid] Clear component docs (#17540) @oliviertassinari
94
+ - [docs] Explicitly state that `groupingColDef` reference needs to be stable (#17544) @arminmeh
95
+ - [docs] Fix <kbd> a11y (#17536) @oliviertassinari
96
+ - [docs] Fix CodeSandbox spelling @oliviertassinari
97
+ - [docs] Fix coding style function @oliviertassinari
98
+ - [docs] Fix migration guide format (#17450) @oliviertassinari
99
+ - [docs] Improve data grid export docs (#17551) @MBilalShafi
100
+ - [docs] Remove leftover `@next` usages (#17542) @LukasTy
101
+
102
+ ### Core
103
+
104
+ - [core] Add security label to dependabot PRs @oliviertassinari
105
+ - [core] Allow post-install vale @oliviertassinari
106
+ - [core] Component consistency @oliviertassinari
107
+ - [core] Fix all Vale errors @oliviertassinari
108
+ - [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
109
+ - [core] Remove empty version (#17582) @oliviertassinari
110
+ - [core] Remove eslint from codemod spec files (#17443) @alexfauquette
111
+ - [core] Remove unnecessary versions (#17597) @oliviertassinari
112
+ - [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
113
+ - [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
114
+ - [code-infra] Fix date-time sensitive tests (#17644) @JCQuintas
115
+ - [code-infra] Fix extension handling for type imports (#17636) @Janpot
116
+ - [code-infra] Further remove `clock=fake` and add `async act` for datagrid (#17563) @JCQuintas
117
+ - [code-infra] Latest vitest picker changes (#17577) @JCQuintas
118
+ - [docs-infra] Fix Vale no longer working (#17602) @alexfauquette
119
+ - [docs-infra] Uniformize Vale between repositories @oliviertassinari
120
+ - [infra] Updates to `branch switch comments` (#17589) @michelengelen
121
+ - [x-telemetry] Fix issue with get machineid hash (#17614) @hasdfa
122
+
8
123
  ## 8.1.0
9
124
 
10
125
  _Apr 24, 2025_
11
126
 
12
127
  We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
13
128
 
14
- - 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
129
+ - 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
15
130
  - 📚 Documentation improvements
16
131
  - 🐞 Bugfixes
17
132
 
@@ -56,7 +171,7 @@ Same changes as in `@mui/x-date-pickers@8.1.0`.
56
171
 
57
172
  ### Charts
58
173
 
59
- - Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
174
+ - Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
60
175
 
61
176
  #### `@mui/x-charts@8.1.0`
62
177
 
@@ -1821,7 +1936,7 @@ Same changes as in `@mui/x-tree-view@8.0.0-alpha.8`.
1821
1936
  - [docs] Add example for custom legend (#16169) @alexfauquette
1822
1937
  - [docs] Add full custom field creation example (#15194) @flaviendelangle
1823
1938
  - [docs] Copyedit the Data Grid cell selection page (#16099) @samuelsycamore
1824
- - [docs] Fix demo rendering issue on Codesandbox (#16118) @arminmeh
1939
+ - [docs] Fix demo rendering issue on CodeSandbox (#16118) @arminmeh
1825
1940
  - [docs] Remove broken links (#16167) @alexfauquette
1826
1941
  - [docs] Split the Data Grid editing page (#14931) @MBilalShafi
1827
1942
  - [docs] Fix wrong props warnings (#16119) @JCQuintas
@@ -2268,7 +2383,7 @@ Releasing to benefit from license package fix (#15814).
2268
2383
 
2269
2384
  - [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
2270
2385
  - [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
2271
- - [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15814) @arminmeh
2386
+ - [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15814) @arminmeh
2272
2387
 
2273
2388
  ## 8.0.0-alpha.3
2274
2389
 
@@ -2484,6 +2599,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
2484
2599
 
2485
2600
  ### Docs
2486
2601
 
2602
+ <!-- vale MUI.CorrectRererenceCased = NO -->
2603
+
2487
2604
  - [docs] Fix 404 links (#15575) @oliviertassinari
2488
2605
  - [docs] Fix bash comments (#15571) @oliviertassinari
2489
2606
  - [docs] Fix Pickers theme augmentation example (#15672) @LukasTy
@@ -2493,6 +2610,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
2493
2610
  - [docs] Fix `anchorEl` API page for charts (#15625) @oliviertassinari
2494
2611
  - [docs] Add documentation for the list view feature (#15344) @KenanYusuf
2495
2612
 
2613
+ <!-- vale MUI.CorrectRererenceCased = YES -->
2614
+
2496
2615
  ### Core
2497
2616
 
2498
2617
  - [core] Follow `()` function convention for docs @oliviertassinari
@@ -3401,7 +3520,7 @@ Same changes as in `@mui/x-tree-view@7.24.0`.
3401
3520
  ### Docs
3402
3521
 
3403
3522
  - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
3404
- - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
3523
+ - [docs] Fix demo rendering issue on CodeSandbox (#16129) @arminmeh
3405
3524
 
3406
3525
  ### Core
3407
3526
 
@@ -3679,7 +3798,7 @@ Releasing to benefit from license package fix (#15818).
3679
3798
  ### Core
3680
3799
 
3681
3800
  - [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
3682
- - [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15818) @arminmeh
3801
+ - [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15818) @arminmeh
3683
3802
 
3684
3803
  ## 7.23.1
3685
3804
 
@@ -7020,7 +7139,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
7020
7139
  />
7021
7140
  ```
7022
7141
 
7023
- - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
7142
+ - The headless field hooks (for example `useDateField()`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
7024
7143
  This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
7025
7144
  Learn more about this new accessible DOM structure in the [v8 migration guide](https://v7.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
7026
7145
 
@@ -120,7 +120,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
120
120
  * The function called for onClick events.
121
121
  * The second argument contains information about all line/bar elements at the current mouse position.
122
122
  * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
123
- * @param {null | AxisData} data The data about the clicked axis and items associated with it.
123
+ * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
124
124
  */
125
125
  onAxisClick: _propTypes.default.func,
126
126
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
3
3
  import { ChartDataProviderProps } from "../ChartDataProvider/index.js";
4
- import type { ChartContainerProps } from './ChartContainer';
4
+ import type { ChartContainerProps } from "./ChartContainer.js";
5
5
  import { ChartSeriesType } from "../models/seriesType/config.js";
6
6
  import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
7
7
  import { ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
@@ -1,4 +1,4 @@
1
- import type { ChartDataProviderProps } from './ChartDataProvider';
1
+ import type { ChartDataProviderProps } from "./ChartDataProvider.js";
2
2
  import { ChartProviderProps } from "../context/ChartProvider/index.js";
3
3
  import { ChartAnyPluginSignature } from "../internals/plugins/models/index.js";
4
4
  import { ChartSeriesType } from "../models/seriesType/config.js";
@@ -6,6 +6,6 @@ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
6
6
  import { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
7
7
  export declare const useChartDataProviderProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProps<TSeries, TSignatures> & ChartsLocalizationProviderProps) => {
8
8
  children: import("react").ReactNode;
9
- localeText: Partial<import("../locales").ChartsLocaleText> | undefined;
9
+ localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
10
10
  chartProviderProps: ChartProviderProps<TSeries, TSignatures>;
11
11
  };
@@ -34,7 +34,7 @@ var _jsxRuntime = require("react/jsx-runtime");
34
34
  if (process.env.NODE_ENV !== 'production') {
35
35
  const isError = isBandScaleX && xScale(axisXValue) === undefined;
36
36
  if (isError) {
37
- console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
37
+ console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
38
38
  }
39
39
  }
40
40
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
@@ -34,7 +34,7 @@ var _jsxRuntime = require("react/jsx-runtime");
34
34
  if (process.env.NODE_ENV !== 'production') {
35
35
  const isError = isBandScaleY && yScale(axisYValue) === undefined;
36
36
  if (isError) {
37
- console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
37
+ console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
38
38
  }
39
39
  }
40
40
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { AxisDefaultized, ChartsYAxisProps, ScaleName } from "../models/axis.js";
2
+ import { ComputedYAxis } from "../models/axis.js";
3
3
  import { ChartsGridClasses } from "./chartsGridClasses.js";
4
4
  interface ChartsGridHorizontalProps {
5
- axis: AxisDefaultized<ScaleName, any, ChartsYAxisProps>;
5
+ axis: ComputedYAxis;
6
6
  start: number;
7
7
  end: number;
8
8
  classes: Partial<ChartsGridClasses>;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { AxisDefaultized, ChartsXAxisProps, ScaleName } from "../models/axis.js";
2
+ import { ComputedXAxis } from "../models/axis.js";
3
3
  import { ChartsGridClasses } from "./chartsGridClasses.js";
4
4
  interface ChartsGridVerticalProps {
5
- axis: AxisDefaultized<ScaleName, any, ChartsXAxisProps>;
5
+ axis: ComputedXAxis;
6
6
  start: number;
7
7
  end: number;
8
8
  classes: Partial<ChartsGridClasses>;
@@ -44,9 +44,7 @@ const Root = (0, _styles.styled)('div', {
44
44
  },
45
45
  [`&.${_labelMarkClasses.labelMarkClasses.circle}`]: {
46
46
  height: 15,
47
- width: 15,
48
- borderRadius: '50%',
49
- overflow: 'hidden'
47
+ width: 15
50
48
  },
51
49
  svg: {
52
50
  display: 'block'
@@ -94,7 +92,13 @@ const ChartsLabelMark = exports.ChartsLabelMark = (0, _consumeThemeProps.consume
94
92
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
95
93
  viewBox: "0 0 24 24",
96
94
  preserveAspectRatio: type === 'line' ? 'none' : undefined,
97
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
95
+ children: type === 'circle' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
96
+ className: classes?.fill,
97
+ r: "12",
98
+ cx: "12",
99
+ cy: "12",
100
+ fill: color
101
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
98
102
  className: classes?.fill,
99
103
  width: "24",
100
104
  height: "24",
@@ -1,8 +1,8 @@
1
- export type { ChartsLabelMarkProps, ChartsLabelCustomMarkProps } from './ChartsLabelMark';
1
+ export type { ChartsLabelMarkProps, ChartsLabelCustomMarkProps } from "./ChartsLabelMark.js";
2
2
  export { ChartsLabelMark } from "./ChartsLabelMark.js";
3
3
  export { labelClasses } from "./labelClasses.js";
4
- export type { ChartsLabelClasses } from './labelClasses';
4
+ export type { ChartsLabelClasses } from "./labelClasses.js";
5
5
  export { labelMarkClasses } from "./labelMarkClasses.js";
6
- export type { ChartsLabelMarkClasses } from './labelMarkClasses';
6
+ export type { ChartsLabelMarkClasses } from "./labelMarkClasses.js";
7
7
  export { labelGradientClasses } from "./labelGradientClasses.js";
8
- export type { ChartsLabelGradientClasses } from './labelGradientClasses';
8
+ export type { ChartsLabelGradientClasses } from "./labelGradientClasses.js";
@@ -1,4 +1,4 @@
1
- import type { ChartsLabelProps } from './ChartsLabel';
1
+ import type { ChartsLabelProps } from "./ChartsLabel.js";
2
2
  export interface ChartsLabelClasses {
3
3
  /** Styles applied to the root element. */
4
4
  root: string;
@@ -1,4 +1,4 @@
1
- import type { ChartsLabelGradientProps } from './ChartsLabelGradient';
1
+ import type { ChartsLabelGradientProps } from "./ChartsLabelGradient.js";
2
2
  export interface ChartsLabelGradientClasses {
3
3
  /** Styles applied to the root element. */
4
4
  root: string;
@@ -1,4 +1,4 @@
1
- import type { ChartsLabelMarkProps } from './ChartsLabelMark';
1
+ import type { ChartsLabelMarkProps } from "./ChartsLabelMark.js";
2
2
  export interface ChartsLabelMarkClasses {
3
3
  /** Styles applied to the root element. */
4
4
  root: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps, Theme } from '@mui/material/styles';
3
- import type { Direction } from './direction';
3
+ import type { Direction } from "./direction.js";
4
4
  import { SeriesLegendItemContext } from "./legendContext.types.js";
5
5
  import { type ChartsLegendClasses } from "./chartsLegendClasses.js";
6
6
  export interface ChartsLegendProps {
@@ -23,5 +23,5 @@ export interface ChartsLegendProps {
23
23
  className?: string;
24
24
  sx?: SxProps<Theme>;
25
25
  }
26
- declare const ChartsLegend: React.ForwardRefExoticComponent<ChartsLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
26
+ declare const ChartsLegend: React.ForwardRefExoticComponent<ChartsLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
27
27
  export { ChartsLegend };
@@ -52,5 +52,5 @@ export interface ContinuousColorLegendProps extends ColorLegendSelector, AppendK
52
52
  className?: string;
53
53
  sx?: SxProps<Theme>;
54
54
  }
55
- declare const ContinuousColorLegend: React.ForwardRefExoticComponent<ContinuousColorLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
55
+ declare const ContinuousColorLegend: React.ForwardRefExoticComponent<ContinuousColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
56
56
  export { ContinuousColorLegend };
@@ -38,5 +38,5 @@ export interface PiecewiseColorLegendProps extends ColorLegendSelector, PrependK
38
38
  className?: string;
39
39
  sx?: SxProps<Theme>;
40
40
  }
41
- declare const PiecewiseColorLegend: React.ForwardRefExoticComponent<PiecewiseColorLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
41
+ declare const PiecewiseColorLegend: React.ForwardRefExoticComponent<PiecewiseColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
42
42
  export { PiecewiseColorLegend };
@@ -1,4 +1,4 @@
1
- import type { ChartsLegendProps } from './ChartsLegend';
1
+ import type { ChartsLegendProps } from "./ChartsLegend.js";
2
2
  import { ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
3
3
  import { ChartsLegendPosition } from "./legend.types.js";
4
4
  import { PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js";
@@ -1,5 +1,5 @@
1
- import type { ChartsLegendProps } from './ChartsLegend';
2
- import type { ChartsLegendSlotExtension } from './chartsLegend.types';
1
+ import type { ChartsLegendProps } from "./ChartsLegend.js";
2
+ import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
3
3
  export interface ChartsLegendClasses {
4
4
  /** Styles applied to the root element. */
5
5
  root: string;
@@ -1,5 +1,5 @@
1
- import type { ContinuousColorLegendProps } from './ContinuousColorLegend';
2
- import type { ChartsLegendSlotExtension } from './chartsLegend.types';
1
+ import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
2
+ import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
3
3
  export interface ContinuousColorLegendClasses {
4
4
  /** Styles applied to the root element. */
5
5
  root: string;
@@ -3,14 +3,14 @@ export * from "./chartsLegend.types.js";
3
3
  export * from "./direction.js";
4
4
  export * from "./legendContext.types.js";
5
5
  export { legendClasses } from "./chartsLegendClasses.js";
6
- export type { ChartsLegendClasses } from './chartsLegendClasses';
6
+ export type { ChartsLegendClasses } from "./chartsLegendClasses.js";
7
7
  export * from "./ContinuousColorLegend.js";
8
8
  export * from "./colorLegend.types.js";
9
9
  export { continuousColorLegendClasses } from "./continuousColorLegendClasses.js";
10
- export type { ContinuousColorLegendClasses } from './continuousColorLegendClasses';
10
+ export type { ContinuousColorLegendClasses } from "./continuousColorLegendClasses.js";
11
11
  export * from "./PiecewiseColorLegend.js";
12
12
  export { piecewiseColorLegendClasses } from "./piecewiseColorLegendClasses.js";
13
- export type { PiecewiseColorLegendClasses } from './piecewiseColorLegendClasses';
13
+ export type { PiecewiseColorLegendClasses } from "./piecewiseColorLegendClasses.js";
14
14
  export { piecewiseColorDefaultLabelFormatter } from "./piecewiseColorDefaultLabelFormatter.js";
15
- export type { PiecewiseLabelFormatterParams } from './piecewiseColorLegend.types';
15
+ export type { PiecewiseLabelFormatterParams } from "./piecewiseColorLegend.types.js";
16
16
  export * from "./legend.types.js";
@@ -1,5 +1,5 @@
1
- import type { PiecewiseColorLegendProps } from './PiecewiseColorLegend';
2
- import type { ChartsLegendSlotExtension } from './chartsLegend.types';
1
+ import type { PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js";
2
+ import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
3
3
  export interface PiecewiseColorLegendClasses {
4
4
  /** Styles applied to the root element. */
5
5
  root: string;
@@ -1,4 +1,4 @@
1
- import { AxisDefaultized } from "../models/axis.js";
1
+ import { ComputedAxis } from "../models/axis.js";
2
2
  import { ZAxisDefaultized } from "../models/z-axis.js";
3
3
  import { ColorLegendSelector } from "./colorLegend.types.js";
4
4
  /**
@@ -7,4 +7,4 @@ import { ColorLegendSelector } from "./colorLegend.types.js";
7
7
  export declare function useAxis({
8
8
  axisDirection,
9
9
  axisId
10
- }: ColorLegendSelector): ZAxisDefaultized | AxisDefaultized;
10
+ }: ColorLegendSelector): ZAxisDefaultized | ComputedAxis;