@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
@@ -1,5 +1,5 @@
1
1
  import { ChartPluginSignature } from "../../models/index.js";
2
- import type { UseChartCartesianAxisSignature } from '../../featurePlugins/useChartCartesianAxis';
2
+ import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
3
3
  export interface ChartMargin {
4
4
  /**
5
5
  * The gap between the left border of the SVG and the drawing area.
@@ -1,3 +1,3 @@
1
1
  export { useChartId } from "./useChartId.js";
2
- export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from './useChartId.types';
2
+ export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from "./useChartId.types.js";
3
3
  export * from "./useChartId.selectors.js";
@@ -5,8 +5,8 @@ import { UseChartIdSignature } from "./useChartId.types.js";
5
5
  * @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
6
6
  * @returns {string} The id attribute of the chart.
7
7
  */
8
- export declare const selectorChartId: ((state: import("./useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<{}> & {
9
- cacheKey: import("../../models").ChartStateCacheKey;
8
+ export declare const selectorChartId: ((state: import("./useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
9
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
10
10
  }) => string | undefined) & {
11
11
  clearCache: () => void;
12
12
  resultsCount: () => number;
@@ -1,3 +1,3 @@
1
1
  export { useChartSeries } from "./useChartSeries.js";
2
- export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from './useChartSeries.types';
2
+ export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from "./useChartSeries.types.js";
3
3
  export * from "./useChartSeries.selectors.js";
@@ -27,7 +27,7 @@ export const preprocessSeries = ({
27
27
  };
28
28
  }
29
29
  if (seriesGroups[seriesData.type]?.series[id] !== undefined) {
30
- throw new Error(`MUI X: series' id "${id}" is not unique.`);
30
+ throw new Error(`MUI X Charts: series' id "${id}" is not unique.`);
31
31
  }
32
32
  seriesGroups[seriesData.type].series[id] = seriesWithDefaultValues;
33
33
  seriesGroups[seriesData.type].seriesOrder.push(id);
@@ -1,26 +1,26 @@
1
1
  import { ChartRootSelector } from "../../utils/selectors.js";
2
2
  import { UseChartSeriesSignature } from "./useChartSeries.types.js";
3
3
  export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
4
- export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<{}> & {
5
- cacheKey: import("../../models").ChartStateCacheKey;
6
- }) => import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>) & {
4
+ export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
5
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
+ }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
7
7
  clearCache: () => void;
8
8
  resultsCount: () => number;
9
9
  resetResultsCount: () => void;
10
10
  } & {
11
11
  resultFunc: (resultFuncArgs_0: {
12
- processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
13
- seriesConfig: import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
14
- }) => import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
12
+ processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
13
+ seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
14
+ }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
15
15
  memoizedResultFunc: ((resultFuncArgs_0: {
16
- processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
17
- seriesConfig: import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
18
- }) => import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>) & {
16
+ processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
17
+ seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
18
+ }) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
19
19
  clearCache: () => void;
20
20
  resultsCount: () => number;
21
21
  resetResultsCount: () => void;
22
22
  };
23
- lastResult: () => import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
23
+ lastResult: () => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
24
24
  dependencies: [ChartRootSelector<UseChartSeriesSignature>];
25
25
  recomputations: () => number;
26
26
  resetRecomputations: () => void;
@@ -30,26 +30,26 @@ export declare const selectorChartSeriesProcessed: ((state: import("../useChartI
30
30
  memoize: typeof import("reselect").weakMapMemoize;
31
31
  argsMemoize: typeof import("reselect").weakMapMemoize;
32
32
  };
33
- export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<{}> & {
34
- cacheKey: import("../../models").ChartStateCacheKey;
35
- }) => import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>) & {
33
+ export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
34
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
35
+ }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
36
36
  clearCache: () => void;
37
37
  resultsCount: () => number;
38
38
  resetResultsCount: () => void;
39
39
  } & {
40
40
  resultFunc: (resultFuncArgs_0: {
41
- processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
42
- seriesConfig: import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
43
- }) => import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
41
+ processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
42
+ seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
43
+ }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
44
44
  memoizedResultFunc: ((resultFuncArgs_0: {
45
- processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("../../..").ChartsSeriesConfig>;
46
- seriesConfig: import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
47
- }) => import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>) & {
45
+ processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
46
+ seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
47
+ }) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
48
48
  clearCache: () => void;
49
49
  resultsCount: () => number;
50
50
  resetResultsCount: () => void;
51
51
  };
52
- lastResult: () => import("../../models").ChartSeriesConfig<keyof import("../../..").ChartsSeriesConfig>;
52
+ lastResult: () => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
53
53
  dependencies: [ChartRootSelector<UseChartSeriesSignature>];
54
54
  recomputations: () => number;
55
55
  resetRecomputations: () => void;
@@ -1,13 +1,13 @@
1
1
  import { AxisConfig, ScaleName } from "../../../../models/index.js";
2
2
  import { ChartsXAxisProps, ChartsAxisProps, ChartsYAxisProps, AxisId } from "../../../../models/axis.js";
3
3
  import { ChartSeriesType } from "../../../../models/seriesType/config.js";
4
- import type { ChartDrawingArea } from '../../../../hooks';
4
+ import type { ChartDrawingArea } from "../../../../hooks/index.js";
5
5
  import { ChartSeriesConfig } from "../../models/seriesConfig/index.js";
6
- import { DefaultizedAxisConfig, DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
6
+ import { ComputedAxisConfig, DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
7
7
  import { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
8
8
  import { GetZoomAxisFilters, ZoomData } from "./zoom.types.js";
9
9
  export type ComputeResult<T extends ChartsAxisProps> = {
10
- axis: DefaultizedAxisConfig<T>;
10
+ axis: ComputedAxisConfig<T>;
11
11
  axisIds: string[];
12
12
  };
13
13
  type ComputeCommonParams<T extends ChartSeriesType = ChartSeriesType> = {
@@ -1,6 +1,5 @@
1
- import { MakeOptional } from '@mui/x-internals/types';
2
- import { AxisConfig, ScaleName } from "../../../../models/index.js";
3
- import { ChartsXAxisProps, ChartsYAxisProps } from "../../../../models/axis.js";
1
+ import { XAxis, YAxis } from "../../../../models/index.js";
2
+ import { DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
4
3
  import { DatasetType } from "../../../../models/seriesType/config.js";
5
- export declare function defaultizeXAxis(inAxis: readonly MakeOptional<AxisConfig<ScaleName, any, ChartsXAxisProps>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined): Array<AxisConfig<ScaleName, any, ChartsXAxisProps>>;
6
- export declare function defaultizeYAxis(inAxis: readonly MakeOptional<AxisConfig<ScaleName, any, ChartsYAxisProps>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined): Array<AxisConfig<ScaleName, any, ChartsYAxisProps>>;
4
+ export declare function defaultizeXAxis(inAxes: readonly XAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedXAxis[];
5
+ export declare function defaultizeYAxis(inAxes: readonly YAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedYAxis[];
@@ -1,12 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY, DEFAULT_AXIS_SIZE_HEIGHT, DEFAULT_AXIS_SIZE_WIDTH, AXIS_LABEL_DEFAULT_HEIGHT } from "../../../../constants/index.js";
3
- export function defaultizeXAxis(inAxis, dataset) {
3
+ export function defaultizeXAxis(inAxes, dataset) {
4
4
  const offsets = {
5
5
  top: 0,
6
6
  bottom: 0,
7
7
  none: 0
8
8
  };
9
- const inputAxes = inAxis && inAxis.length > 0 ? inAxis : [{
9
+ const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
10
10
  id: DEFAULT_X_AXIS_KEY,
11
11
  scaleType: 'linear'
12
12
  }];
@@ -35,7 +35,7 @@ export function defaultizeXAxis(inAxis, dataset) {
35
35
  return sharedConfig;
36
36
  }
37
37
  if (dataset === undefined) {
38
- throw new Error(`MUI X: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
38
+ throw new Error(`MUI X Charts: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
39
39
  }
40
40
 
41
41
  // If `dataKey` is provided
@@ -45,13 +45,13 @@ export function defaultizeXAxis(inAxis, dataset) {
45
45
  });
46
46
  return parsedAxes;
47
47
  }
48
- export function defaultizeYAxis(inAxis, dataset) {
48
+ export function defaultizeYAxis(inAxes, dataset) {
49
49
  const offsets = {
50
50
  right: 0,
51
51
  left: 0,
52
52
  none: 0
53
53
  };
54
- const inputAxes = inAxis && inAxis.length > 0 ? inAxis : [{
54
+ const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
55
55
  id: DEFAULT_Y_AXIS_KEY,
56
56
  scaleType: 'linear'
57
57
  }];
@@ -80,7 +80,7 @@ export function defaultizeYAxis(inAxis, dataset) {
80
80
  return sharedConfig;
81
81
  }
82
82
  if (dataset === undefined) {
83
- throw new Error(`MUI X: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
83
+ throw new Error(`MUI X Charts: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
84
84
  }
85
85
 
86
86
  // If `dataKey` is provided
@@ -1,11 +1,11 @@
1
- import { AxisDefaultized } from "../../../../models/axis.js";
1
+ import { ComputedAxis } from "../../../../models/axis.js";
2
2
  /**
3
3
  * For a pointer coordinate, this function returns the dataIndex associated.
4
4
  * Returns `-1` if no dataIndex matches.
5
5
  */
6
- export declare function getAxisIndex(axisConfig: AxisDefaultized, pointerValue: number): number;
6
+ export declare function getAxisIndex(axisConfig: ComputedAxis, pointerValue: number): number;
7
7
  /**
8
8
  * For a pointer coordinate, this function returns the value associated.
9
9
  * Returns `null` if the coordinate has no value associated.
10
10
  */
11
- export declare function getAxisValue(axisConfig: AxisDefaultized, pointerValue: number, dataIndex: number): number | Date | null;
11
+ export declare function getAxisValue(axisConfig: ComputedAxis, pointerValue: number, dataIndex: number): number | Date | null;
@@ -1,5 +1,5 @@
1
1
  export { useChartCartesianAxis } from "./useChartCartesianAxis.js";
2
- export type * from './useChartCartesianAxis.types';
2
+ export type * from "./useChartCartesianAxis.types.js";
3
3
  export * from "./useChartCartesianAxisRendering.selectors.js";
4
4
  export * from "./useChartCartesianAxisLayout.selectors.js";
5
5
  export * from "./useChartCartesianInteraction.selectors.js";
@@ -1,40 +1,40 @@
1
- export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
2
- cacheKey: import("../../models").ChartStateCacheKey;
1
+ export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
2
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
3
3
  }) => number) & {
4
4
  clearCache: () => void;
5
5
  resultsCount: () => number;
6
6
  resetResultsCount: () => void;
7
7
  } & {
8
- resultFunc: (resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) => number;
9
- memoizedResultFunc: ((resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) => number) & {
8
+ resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
9
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
10
10
  clearCache: () => void;
11
11
  resultsCount: () => number;
12
12
  resetResultsCount: () => void;
13
13
  };
14
14
  lastResult: () => number;
15
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
16
- cacheKey: import("../../models").ChartStateCacheKey;
17
- }) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) & {
15
+ dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
16
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
17
+ }) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
18
18
  clearCache: () => void;
19
19
  resultsCount: () => number;
20
20
  resetResultsCount: () => void;
21
21
  } & {
22
22
  resultFunc: (resultFuncArgs_0: {
23
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
24
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
25
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined;
23
+ x: import("../../../index.js").DefaultedXAxis[];
24
+ y: import("../../../index.js").DefaultedYAxis[];
25
+ } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
26
26
  memoizedResultFunc: ((resultFuncArgs_0: {
27
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
28
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
29
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) & {
27
+ x: import("../../../index.js").DefaultedXAxis[];
28
+ y: import("../../../index.js").DefaultedYAxis[];
29
+ } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
30
30
  clearCache: () => void;
31
31
  resultsCount: () => number;
32
32
  resetResultsCount: () => void;
33
33
  };
34
- lastResult: () => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined;
35
- dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
36
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
37
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
34
+ lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
35
+ dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
36
+ x: import("../../../index.js").DefaultedXAxis[];
37
+ y: import("../../../index.js").DefaultedYAxis[];
38
38
  } | undefined];
39
39
  recomputations: () => number;
40
40
  resetRecomputations: () => void;
@@ -52,43 +52,43 @@ export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugi
52
52
  memoize: typeof import("reselect").weakMapMemoize;
53
53
  argsMemoize: typeof import("reselect").weakMapMemoize;
54
54
  };
55
- export declare const selectorChartRightAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
56
- cacheKey: import("../../models").ChartStateCacheKey;
55
+ export declare const selectorChartRightAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
56
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
57
57
  }) => number) & {
58
58
  clearCache: () => void;
59
59
  resultsCount: () => number;
60
60
  resetResultsCount: () => void;
61
61
  } & {
62
- resultFunc: (resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) => number;
63
- memoizedResultFunc: ((resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) => number) & {
62
+ resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
63
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
64
64
  clearCache: () => void;
65
65
  resultsCount: () => number;
66
66
  resetResultsCount: () => void;
67
67
  };
68
68
  lastResult: () => number;
69
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
70
- cacheKey: import("../../models").ChartStateCacheKey;
71
- }) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) & {
69
+ dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
70
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
71
+ }) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
72
72
  clearCache: () => void;
73
73
  resultsCount: () => number;
74
74
  resetResultsCount: () => void;
75
75
  } & {
76
76
  resultFunc: (resultFuncArgs_0: {
77
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
78
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
79
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined;
77
+ x: import("../../../index.js").DefaultedXAxis[];
78
+ y: import("../../../index.js").DefaultedYAxis[];
79
+ } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
80
80
  memoizedResultFunc: ((resultFuncArgs_0: {
81
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
82
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
83
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined) & {
81
+ x: import("../../../index.js").DefaultedXAxis[];
82
+ y: import("../../../index.js").DefaultedYAxis[];
83
+ } | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
84
84
  clearCache: () => void;
85
85
  resultsCount: () => number;
86
86
  resetResultsCount: () => void;
87
87
  };
88
- lastResult: () => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsYAxisProps>[] | undefined;
89
- dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
90
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
91
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
88
+ lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
89
+ dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
90
+ x: import("../../../index.js").DefaultedXAxis[];
91
+ y: import("../../../index.js").DefaultedYAxis[];
92
92
  } | undefined];
93
93
  recomputations: () => number;
94
94
  resetRecomputations: () => void;
@@ -106,43 +106,43 @@ export declare const selectorChartRightAxisSize: ((state: import("../../corePlug
106
106
  memoize: typeof import("reselect").weakMapMemoize;
107
107
  argsMemoize: typeof import("reselect").weakMapMemoize;
108
108
  };
109
- export declare const selectorChartTopAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
110
- cacheKey: import("../../models").ChartStateCacheKey;
109
+ export declare const selectorChartTopAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
110
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
111
111
  }) => number) & {
112
112
  clearCache: () => void;
113
113
  resultsCount: () => number;
114
114
  resetResultsCount: () => void;
115
115
  } & {
116
- resultFunc: (resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) => number;
117
- memoizedResultFunc: ((resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) => number) & {
116
+ resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
117
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
118
118
  clearCache: () => void;
119
119
  resultsCount: () => number;
120
120
  resetResultsCount: () => void;
121
121
  };
122
122
  lastResult: () => number;
123
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
124
- cacheKey: import("../../models").ChartStateCacheKey;
125
- }) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) & {
123
+ dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
124
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
125
+ }) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
126
126
  clearCache: () => void;
127
127
  resultsCount: () => number;
128
128
  resetResultsCount: () => void;
129
129
  } & {
130
130
  resultFunc: (resultFuncArgs_0: {
131
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
132
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
133
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined;
131
+ x: import("../../../index.js").DefaultedXAxis[];
132
+ y: import("../../../index.js").DefaultedYAxis[];
133
+ } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
134
134
  memoizedResultFunc: ((resultFuncArgs_0: {
135
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
136
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
137
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) & {
135
+ x: import("../../../index.js").DefaultedXAxis[];
136
+ y: import("../../../index.js").DefaultedYAxis[];
137
+ } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
138
138
  clearCache: () => void;
139
139
  resultsCount: () => number;
140
140
  resetResultsCount: () => void;
141
141
  };
142
- lastResult: () => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined;
143
- dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
144
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
145
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
142
+ lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
143
+ dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
144
+ x: import("../../../index.js").DefaultedXAxis[];
145
+ y: import("../../../index.js").DefaultedYAxis[];
146
146
  } | undefined];
147
147
  recomputations: () => number;
148
148
  resetRecomputations: () => void;
@@ -160,43 +160,43 @@ export declare const selectorChartTopAxisSize: ((state: import("../../corePlugin
160
160
  memoize: typeof import("reselect").weakMapMemoize;
161
161
  argsMemoize: typeof import("reselect").weakMapMemoize;
162
162
  };
163
- export declare const selectorChartBottomAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
164
- cacheKey: import("../../models").ChartStateCacheKey;
163
+ export declare const selectorChartBottomAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
164
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
165
165
  }) => number) & {
166
166
  clearCache: () => void;
167
167
  resultsCount: () => number;
168
168
  resetResultsCount: () => void;
169
169
  } & {
170
- resultFunc: (resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) => number;
171
- memoizedResultFunc: ((resultFuncArgs_0: import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) => number) & {
170
+ resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
171
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
172
172
  clearCache: () => void;
173
173
  resultsCount: () => number;
174
174
  resetResultsCount: () => void;
175
175
  };
176
176
  lastResult: () => number;
177
- dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types").UseChartCartesianAxisState> & {
178
- cacheKey: import("../../models").ChartStateCacheKey;
179
- }) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) & {
177
+ dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
178
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
179
+ }) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
180
180
  clearCache: () => void;
181
181
  resultsCount: () => number;
182
182
  resetResultsCount: () => void;
183
183
  } & {
184
184
  resultFunc: (resultFuncArgs_0: {
185
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
186
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
187
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined;
185
+ x: import("../../../index.js").DefaultedXAxis[];
186
+ y: import("../../../index.js").DefaultedYAxis[];
187
+ } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
188
188
  memoizedResultFunc: ((resultFuncArgs_0: {
189
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
190
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
191
- } | undefined) => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined) & {
189
+ x: import("../../../index.js").DefaultedXAxis[];
190
+ y: import("../../../index.js").DefaultedYAxis[];
191
+ } | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
192
192
  clearCache: () => void;
193
193
  resultsCount: () => number;
194
194
  resetResultsCount: () => void;
195
195
  };
196
- lastResult: () => import("../../..").AxisConfig<keyof import("../../..").AxisScaleConfig, any, import("../../..").ChartsXAxisProps>[] | undefined;
197
- dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
198
- x: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsXAxisProps>[];
199
- y: import("../../..").AxisConfig<import("../../..").ScaleName, any, import("../../..").ChartsYAxisProps>[];
196
+ lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
197
+ dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
198
+ x: import("../../../index.js").DefaultedXAxis[];
199
+ y: import("../../../index.js").DefaultedYAxis[];
200
200
  } | undefined];
201
201
  recomputations: () => number;
202
202
  resetRecomputations: () => void;
@@ -28,7 +28,7 @@ export const useChartCartesianAxis = ({
28
28
  const ids = [...(xAxis ?? []), ...(yAxis ?? [])].filter(axis => axis.id).map(axis => axis.id);
29
29
  const duplicates = new Set(ids.filter((id, index) => ids.indexOf(id) !== index));
30
30
  if (duplicates.size > 0) {
31
- warnOnce([`MUI X: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
31
+ warnOnce([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
32
32
  }
33
33
  }
34
34
  const drawingArea = useSelector(store, selectorChartDrawingArea);
@@ -1,12 +1,16 @@
1
- import type { ChartPluginSignature } from '../../models';
2
- import type { ChartSeriesType, DatasetType } from '../../../../models/seriesType/config';
3
- import type { AxisDefaultized, ScaleName, ChartsXAxisProps, ChartsYAxisProps, AxisId, AxisConfig, ChartsAxisData, YAxis, XAxis } from '../../../../models/axis';
4
- import type { UseChartSeriesSignature } from '../../corePlugins/useChartSeries';
5
- import type { ZoomData, ZoomOptions } from './zoom.types';
6
- import type { UseChartInteractionSignature } from '../useChartInteraction';
7
- import type { ChartsAxisProps } from '../../../../ChartsAxis';
8
- export type DefaultizedAxisConfig<AxisProps extends ChartsAxisProps> = {
9
- [axisId: AxisId]: AxisDefaultized<ScaleName, any, AxisProps>;
1
+ import type { ChartPluginSignature } from "../../models/index.js";
2
+ import type { ChartSeriesType, DatasetType } from "../../../../models/seriesType/config.js";
3
+ import type { ComputedAxis, ScaleName, AxisId, ChartsAxisData, YAxis, XAxis, DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
4
+ import type { UseChartSeriesSignature } from "../../corePlugins/useChartSeries/index.js";
5
+ import type { ZoomData, ZoomOptions } from "./zoom.types.js";
6
+ import type { UseChartInteractionSignature } from "../useChartInteraction/index.js";
7
+ import type { ChartsAxisProps } from "../../../../ChartsAxis/index.js";
8
+ /**
9
+ * The axes' configuration after computing.
10
+ * An axis in this state already contains a scale function and all the necessary properties to be rendered.
11
+ */
12
+ export type ComputedAxisConfig<AxisProps extends ChartsAxisProps> = {
13
+ [axisId: AxisId]: ComputedAxis<ScaleName, any, AxisProps>;
10
14
  };
11
15
  export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName> {
12
16
  /**
@@ -29,7 +33,7 @@ export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName
29
33
  * The function called for onClick events.
30
34
  * The second argument contains information about all line/bar elements at the current mouse position.
31
35
  * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
32
- * @param {null | AxisData} data The data about the clicked axis and items associated with it.
36
+ * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
33
37
  */
34
38
  onAxisClick?: (event: MouseEvent, data: null | ChartsAxisData) => void;
35
39
  /**
@@ -40,8 +44,8 @@ export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName
40
44
  disableAxisListener?: boolean;
41
45
  }
42
46
  export type UseChartCartesianAxisDefaultizedParameters<S extends ScaleName = ScaleName> = UseChartCartesianAxisParameters<S> & {
43
- defaultizedXAxis: AxisConfig<S, any, ChartsXAxisProps>[];
44
- defaultizedYAxis: AxisConfig<S, any, ChartsYAxisProps>[];
47
+ defaultizedXAxis: DefaultedXAxis<S>[];
48
+ defaultizedYAxis: DefaultedYAxis<S>[];
45
49
  };
46
50
  export interface DefaultizedZoomOptions extends Required<ZoomOptions> {
47
51
  axisId: AxisId;
@@ -56,8 +60,8 @@ export interface UseChartCartesianAxisState {
56
60
  zoomData: readonly ZoomData[];
57
61
  };
58
62
  cartesianAxis: {
59
- x: AxisConfig<ScaleName, any, ChartsXAxisProps>[];
60
- y: AxisConfig<ScaleName, any, ChartsYAxisProps>[];
63
+ x: DefaultedXAxis[];
64
+ y: DefaultedYAxis[];
61
65
  };
62
66
  }
63
67
  export type ExtremumFilter = (value: {