@mui/x-charts 9.0.0-alpha.3 → 9.0.0-alpha.4

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 (495) hide show
  1. package/BarChart/BarChart.d.mts +2 -2
  2. package/BarChart/BarChart.d.ts +2 -2
  3. package/BarChart/BarChart.js +36 -6
  4. package/BarChart/BarChart.mjs +36 -6
  5. package/BarChart/BarElement.js +1 -3
  6. package/BarChart/BarElement.mjs +1 -3
  7. package/BarChart/BarLabel/BarLabel.js +1 -11
  8. package/BarChart/BarLabel/BarLabel.mjs +1 -11
  9. package/BarChart/BarLabel/BarLabelItem.js +1 -3
  10. package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
  11. package/BarChart/BarLabel/index.d.mts +1 -3
  12. package/BarChart/BarLabel/index.d.ts +1 -3
  13. package/BarChart/BarLabel/index.js +1 -14
  14. package/BarChart/BarLabel/index.mjs +1 -2
  15. package/BarChart/BarPlot.d.mts +4 -0
  16. package/BarChart/BarPlot.d.ts +4 -0
  17. package/BarChart/BarPlot.js +8 -2
  18. package/BarChart/BarPlot.mjs +8 -2
  19. package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
  20. package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
  21. package/BarChart/index.d.mts +0 -1
  22. package/BarChart/index.d.ts +0 -1
  23. package/BarChart/index.js +0 -12
  24. package/BarChart/index.mjs +0 -1
  25. package/BarChart/seriesConfig/bar/legend.js +2 -21
  26. package/BarChart/seriesConfig/bar/legend.mjs +2 -21
  27. package/BarChart/useBarChartProps.d.mts +2 -2
  28. package/BarChart/useBarChartProps.d.ts +2 -2
  29. package/BarChart/useBarChartProps.js +2 -2
  30. package/BarChart/useBarChartProps.mjs +2 -2
  31. package/BarChart/useRegisterItemClickHandlers.js +2 -2
  32. package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
  33. package/CHANGELOG.md +123 -0
  34. package/ChartsAxis/index.d.mts +2 -1
  35. package/ChartsAxis/index.d.ts +2 -1
  36. package/ChartsAxis/index.js +11 -11
  37. package/ChartsAxis/index.mjs +1 -1
  38. package/ChartsAxisHighlight/index.d.mts +2 -1
  39. package/ChartsAxisHighlight/index.d.ts +2 -1
  40. package/ChartsAxisHighlight/index.js +12 -10
  41. package/ChartsAxisHighlight/index.mjs +1 -1
  42. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
  43. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
  44. package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
  45. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
  46. package/ChartsContainer/ChartsContainer.js +49 -15
  47. package/ChartsContainer/ChartsContainer.mjs +49 -15
  48. package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
  49. package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
  50. package/ChartsContainer/useChartsContainerProps.js +8 -8
  51. package/ChartsContainer/useChartsContainerProps.mjs +8 -8
  52. package/ChartsDataProvider/ChartsDataProvider.js +0 -6
  53. package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
  54. package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
  55. package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
  56. package/ChartsGrid/ChartsGrid.d.mts +4 -0
  57. package/ChartsGrid/ChartsGrid.d.ts +4 -0
  58. package/ChartsGrid/ChartsGrid.js +4 -2
  59. package/ChartsGrid/ChartsGrid.mjs +4 -2
  60. package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
  61. package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
  62. package/ChartsGrid/ChartsVerticalGrid.js +2 -2
  63. package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
  64. package/ChartsGrid/index.d.mts +2 -1
  65. package/ChartsGrid/index.d.ts +2 -1
  66. package/ChartsGrid/index.js +11 -11
  67. package/ChartsGrid/index.mjs +1 -1
  68. package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
  69. package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
  70. package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
  71. package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
  72. package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
  73. package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
  74. package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
  75. package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
  76. package/ChartsLegend/ChartsLegend.js +2 -2
  77. package/ChartsLegend/ChartsLegend.mjs +2 -2
  78. package/ChartsLegend/legendContext.types.d.mts +0 -6
  79. package/ChartsLegend/legendContext.types.d.ts +0 -6
  80. package/ChartsLegend/onClickContextBuilder.js +0 -1
  81. package/ChartsLegend/onClickContextBuilder.mjs +0 -1
  82. package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
  83. package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
  84. package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
  85. package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
  86. package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
  87. package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
  88. package/ChartsReferenceLine/index.d.mts +2 -1
  89. package/ChartsReferenceLine/index.d.ts +2 -1
  90. package/ChartsReferenceLine/index.js +11 -11
  91. package/ChartsReferenceLine/index.mjs +1 -2
  92. package/ChartsSurface/ChartsSurface.d.mts +2 -3
  93. package/ChartsSurface/ChartsSurface.d.ts +2 -3
  94. package/ChartsSurface/ChartsSurface.js +14 -2
  95. package/ChartsSurface/ChartsSurface.mjs +14 -2
  96. package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
  97. package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
  98. package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
  99. package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
  100. package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
  101. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
  102. package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
  103. package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
  104. package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
  105. package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
  106. package/ChartsTooltip/index.d.mts +1 -2
  107. package/ChartsTooltip/index.d.ts +1 -2
  108. package/ChartsTooltip/index.js +1 -16
  109. package/ChartsTooltip/index.mjs +1 -2
  110. package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
  111. package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
  112. package/ChartsTooltip/useItemTooltip.d.mts +2 -4
  113. package/ChartsTooltip/useItemTooltip.d.ts +2 -4
  114. package/ChartsTooltip/utils.d.mts +0 -4
  115. package/ChartsTooltip/utils.d.ts +0 -4
  116. package/ChartsTooltip/utils.js +0 -39
  117. package/ChartsTooltip/utils.mjs +0 -38
  118. package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
  119. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
  120. package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
  121. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
  122. package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
  123. package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
  124. package/ChartsXAxis/useAxisTicksProps.d.mts +81 -0
  125. package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
  126. package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
  127. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
  128. package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
  129. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
  130. package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
  131. package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
  132. package/ChartsYAxis/useAxisTicksProps.d.mts +81 -0
  133. package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
  134. package/Gauge/Gauge.js +12 -0
  135. package/Gauge/Gauge.mjs +12 -0
  136. package/Gauge/GaugeContainer.d.mts +1 -1
  137. package/Gauge/GaugeContainer.d.ts +1 -1
  138. package/Gauge/GaugeContainer.js +14 -2
  139. package/Gauge/GaugeContainer.mjs +14 -2
  140. package/Gauge/index.d.mts +2 -1
  141. package/Gauge/index.d.ts +2 -1
  142. package/Gauge/index.js +7 -11
  143. package/Gauge/index.mjs +1 -1
  144. package/LineChart/AreaElement.d.mts +2 -35
  145. package/LineChart/AreaElement.d.ts +2 -35
  146. package/LineChart/AreaElement.js +3 -41
  147. package/LineChart/AreaElement.mjs +3 -41
  148. package/LineChart/CircleMarkElement.d.mts +1 -1
  149. package/LineChart/CircleMarkElement.d.ts +1 -1
  150. package/LineChart/CircleMarkElement.js +3 -11
  151. package/LineChart/CircleMarkElement.mjs +4 -12
  152. package/LineChart/LineChart.d.mts +2 -2
  153. package/LineChart/LineChart.d.ts +2 -2
  154. package/LineChart/LineChart.js +33 -9
  155. package/LineChart/LineChart.mjs +33 -9
  156. package/LineChart/LineElement.d.mts +2 -35
  157. package/LineChart/LineElement.d.ts +2 -35
  158. package/LineChart/LineElement.js +3 -41
  159. package/LineChart/LineElement.mjs +3 -41
  160. package/LineChart/LineHighlightElement.d.mts +0 -20
  161. package/LineChart/LineHighlightElement.d.ts +0 -20
  162. package/LineChart/LineHighlightElement.js +2 -39
  163. package/LineChart/LineHighlightElement.mjs +2 -39
  164. package/LineChart/LineHighlightPlot.js +2 -2
  165. package/LineChart/LineHighlightPlot.mjs +2 -2
  166. package/LineChart/MarkElement.d.mts +1 -1
  167. package/LineChart/MarkElement.d.ts +1 -1
  168. package/LineChart/MarkElement.js +3 -4
  169. package/LineChart/MarkElement.mjs +4 -5
  170. package/LineChart/MarkPlot.js +2 -2
  171. package/LineChart/MarkPlot.mjs +2 -2
  172. package/LineChart/index.d.mts +0 -2
  173. package/LineChart/index.d.ts +0 -2
  174. package/LineChart/index.js +0 -15
  175. package/LineChart/index.mjs +0 -1
  176. package/LineChart/seriesConfig/seriesProcessor.js +8 -5
  177. package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
  178. package/LineChart/useLineChartProps.d.mts +2 -2
  179. package/LineChart/useLineChartProps.d.ts +2 -2
  180. package/LineChart/useLineChartProps.js +2 -2
  181. package/LineChart/useLineChartProps.mjs +2 -2
  182. package/LineChart/useMarkPlotData.js +2 -2
  183. package/LineChart/useMarkPlotData.mjs +2 -2
  184. package/PieChart/FocusedPieArc.js +1 -4
  185. package/PieChart/FocusedPieArc.mjs +2 -4
  186. package/PieChart/PieArc.d.mts +0 -37
  187. package/PieChart/PieArc.d.ts +0 -37
  188. package/PieChart/PieArc.js +3 -42
  189. package/PieChart/PieArc.mjs +3 -42
  190. package/PieChart/PieArcLabel.d.mts +2 -43
  191. package/PieChart/PieArcLabel.d.ts +2 -43
  192. package/PieChart/PieArcLabel.js +3 -46
  193. package/PieChart/PieArcLabel.mjs +5 -48
  194. package/PieChart/PieArcLabelPlot.js +0 -2
  195. package/PieChart/PieArcLabelPlot.mjs +0 -2
  196. package/PieChart/PieChart.d.mts +2 -2
  197. package/PieChart/PieChart.d.ts +2 -2
  198. package/PieChart/PieChart.js +17 -5
  199. package/PieChart/PieChart.mjs +17 -5
  200. package/PieChart/index.d.mts +1 -1
  201. package/PieChart/index.d.ts +1 -1
  202. package/PieChart/seriesConfig/legend.js +0 -2
  203. package/PieChart/seriesConfig/legend.mjs +0 -2
  204. package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
  205. package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
  206. package/RadarChart/RadarAxis/RadarAxis.js +7 -5
  207. package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
  208. package/RadarChart/RadarAxis/index.d.mts +1 -2
  209. package/RadarChart/RadarAxis/index.d.ts +1 -2
  210. package/RadarChart/RadarAxis/index.js +1 -13
  211. package/RadarChart/RadarAxis/index.mjs +1 -2
  212. package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
  213. package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
  214. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
  215. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
  216. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
  217. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
  218. package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
  219. package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
  220. package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
  221. package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
  222. package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
  223. package/RadarChart/RadarChart.js +15 -0
  224. package/RadarChart/RadarChart.mjs +15 -0
  225. package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
  226. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
  227. package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
  228. package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
  229. package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
  230. package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
  231. package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
  232. package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
  233. package/RadarChart/RadarGrid/RadarGrid.js +2 -2
  234. package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
  235. package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
  236. package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
  237. package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
  238. package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
  239. package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
  240. package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
  241. package/RadarChart/RadarGrid/index.d.mts +1 -2
  242. package/RadarChart/RadarGrid/index.d.ts +1 -2
  243. package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
  244. package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
  245. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
  246. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
  247. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
  248. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
  249. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
  250. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
  251. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
  252. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
  253. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
  254. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
  255. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
  256. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
  257. package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
  258. package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
  259. package/RadarChart/RadarSeriesPlot/index.js +2 -10
  260. package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
  261. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
  262. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
  263. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
  264. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
  265. package/RadarChart/index.d.mts +3 -1
  266. package/RadarChart/index.d.ts +3 -1
  267. package/RadarChart/index.js +9 -1
  268. package/RadarChart/index.mjs +2 -1
  269. package/RadarChart/radarClasses.d.mts +30 -0
  270. package/RadarChart/radarClasses.d.ts +30 -0
  271. package/RadarChart/radarClasses.js +33 -0
  272. package/RadarChart/radarClasses.mjs +24 -0
  273. package/RadarChart/seriesConfig/legend.js +2 -21
  274. package/RadarChart/seriesConfig/legend.mjs +2 -21
  275. package/ScatterChart/BatchScatter.js +3 -3
  276. package/ScatterChart/BatchScatter.mjs +3 -3
  277. package/ScatterChart/Scatter.js +3 -3
  278. package/ScatterChart/Scatter.mjs +3 -3
  279. package/ScatterChart/ScatterChart.d.mts +15 -3
  280. package/ScatterChart/ScatterChart.d.ts +15 -3
  281. package/ScatterChart/ScatterChart.js +55 -13
  282. package/ScatterChart/ScatterChart.mjs +55 -13
  283. package/ScatterChart/seriesConfig/legend.js +2 -21
  284. package/ScatterChart/seriesConfig/legend.mjs +2 -21
  285. package/ScatterChart/useScatterChartProps.d.mts +2 -2
  286. package/ScatterChart/useScatterChartProps.d.ts +2 -2
  287. package/ScatterChart/useScatterChartProps.js +9 -8
  288. package/ScatterChart/useScatterChartProps.mjs +9 -8
  289. package/SparkLineChart/SparkLineChart.d.mts +2 -2
  290. package/SparkLineChart/SparkLineChart.d.ts +2 -2
  291. package/SparkLineChart/SparkLineChart.js +40 -10
  292. package/SparkLineChart/SparkLineChart.mjs +40 -10
  293. package/context/useChartApiContext.d.mts +1 -1
  294. package/context/useChartApiContext.d.ts +1 -1
  295. package/context/useChartApiContext.js +3 -3
  296. package/context/useChartApiContext.mjs +3 -3
  297. package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
  298. package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
  299. package/hooks/animation/useAnimatePieArcLabel.js +6 -10
  300. package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
  301. package/hooks/useChartRootRef.js +2 -2
  302. package/hooks/useChartRootRef.mjs +2 -2
  303. package/hooks/useChartsLayerContainerRef.js +2 -2
  304. package/hooks/useChartsLayerContainerRef.mjs +2 -2
  305. package/hooks/useDataset.js +1 -1
  306. package/hooks/useDataset.mjs +2 -2
  307. package/hooks/useInteractionItemProps.js +2 -2
  308. package/hooks/useInteractionItemProps.mjs +2 -2
  309. package/hooks/useTicks.js +2 -2
  310. package/hooks/useTicks.mjs +2 -2
  311. package/index.d.mts +0 -3
  312. package/index.d.ts +0 -3
  313. package/index.js +2 -22
  314. package/index.mjs +1 -3
  315. package/internals/consumeSlots.d.mts +1 -1
  316. package/internals/consumeSlots.d.ts +1 -1
  317. package/internals/identifierCleaner.d.mts +5 -5
  318. package/internals/identifierCleaner.d.ts +5 -5
  319. package/internals/identifierCleaner.js +0 -1
  320. package/internals/identifierCleaner.mjs +0 -1
  321. package/internals/index.d.mts +2 -3
  322. package/internals/index.d.ts +2 -3
  323. package/internals/index.js +27 -36
  324. package/internals/index.mjs +2 -3
  325. package/internals/legendUtils.d.mts +11 -0
  326. package/internals/legendUtils.d.ts +11 -0
  327. package/internals/legendUtils.js +28 -0
  328. package/internals/legendUtils.mjs +22 -0
  329. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  330. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
  331. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
  332. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
  333. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
  334. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
  335. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
  336. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
  337. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
  338. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
  339. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
  340. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
  341. package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
  342. package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
  343. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
  344. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
  345. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
  346. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
  347. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +5 -0
  348. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -0
  349. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
  350. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
  351. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
  352. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
  353. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
  354. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
  355. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
  356. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
  357. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
  358. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
  359. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
  360. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  361. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
  362. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
  363. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
  364. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
  365. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
  366. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
  367. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
  368. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
  369. package/internals/seriesSelectorOfType.d.mts +3 -3
  370. package/internals/seriesSelectorOfType.d.ts +3 -3
  371. package/internals/store/useStore.js +2 -2
  372. package/internals/store/useStore.mjs +2 -2
  373. package/locales/elGR.d.mts +4 -0
  374. package/locales/elGR.d.ts +4 -0
  375. package/locales/elGR.js +6 -0
  376. package/locales/elGR.mjs +6 -0
  377. package/locales/enUS.d.mts +4 -0
  378. package/locales/enUS.d.ts +4 -0
  379. package/locales/enUS.js +6 -1
  380. package/locales/enUS.mjs +6 -1
  381. package/locales/frFR.d.mts +4 -0
  382. package/locales/frFR.d.ts +4 -0
  383. package/locales/frFR.js +6 -1
  384. package/locales/frFR.mjs +6 -1
  385. package/locales/nbNO.d.mts +4 -0
  386. package/locales/nbNO.d.ts +4 -0
  387. package/locales/nbNO.js +6 -0
  388. package/locales/nbNO.mjs +6 -0
  389. package/locales/ptBR.d.mts +4 -0
  390. package/locales/ptBR.d.ts +4 -0
  391. package/locales/ptBR.js +6 -0
  392. package/locales/ptBR.mjs +6 -0
  393. package/locales/ptPT.d.mts +4 -0
  394. package/locales/ptPT.d.ts +4 -0
  395. package/locales/ptPT.js +102 -99
  396. package/locales/ptPT.mjs +102 -99
  397. package/locales/svSE.d.mts +4 -0
  398. package/locales/svSE.d.ts +4 -0
  399. package/locales/svSE.js +6 -0
  400. package/locales/svSE.mjs +6 -0
  401. package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
  402. package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
  403. package/locales/utils/getChartsLocalization.d.mts +4 -0
  404. package/locales/utils/getChartsLocalization.d.ts +4 -0
  405. package/models/axis.d.mts +4 -0
  406. package/models/axis.d.ts +4 -0
  407. package/models/seriesType/composition.d.mts +1 -1
  408. package/models/seriesType/composition.d.ts +1 -1
  409. package/models/seriesType/composition.js +1 -1
  410. package/models/seriesType/composition.mjs +1 -1
  411. package/models/seriesType/line.d.mts +2 -1
  412. package/models/seriesType/line.d.ts +2 -1
  413. package/models/seriesType/scatter.d.mts +0 -7
  414. package/models/seriesType/scatter.d.ts +0 -7
  415. package/package.json +87 -115
  416. package/themeAugmentation/components.d.mts +5 -25
  417. package/themeAugmentation/components.d.ts +5 -25
  418. package/themeAugmentation/overrides.d.mts +3 -15
  419. package/themeAugmentation/overrides.d.ts +3 -15
  420. package/themeAugmentation/props.d.mts +0 -2
  421. package/themeAugmentation/props.d.ts +0 -2
  422. package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
  423. package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
  424. package/BarChart/BarLabel/barLabelClasses.js +0 -49
  425. package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
  426. package/BarChart/barElementClasses.d.mts +0 -40
  427. package/BarChart/barElementClasses.d.ts +0 -40
  428. package/BarChart/barElementClasses.js +0 -48
  429. package/BarChart/barElementClasses.mjs +0 -39
  430. package/ChartContainer/ChartContainer.d.mts +0 -22
  431. package/ChartContainer/ChartContainer.d.ts +0 -22
  432. package/ChartContainer/ChartContainer.js +0 -24
  433. package/ChartContainer/ChartContainer.mjs +0 -20
  434. package/ChartContainer/index.d.mts +0 -1
  435. package/ChartContainer/index.d.ts +0 -1
  436. package/ChartContainer/index.js +0 -16
  437. package/ChartContainer/index.mjs +0 -1
  438. package/ChartContainer/useChartContainerProps.d.mts +0 -13
  439. package/ChartContainer/useChartContainerProps.d.ts +0 -13
  440. package/ChartContainer/useChartContainerProps.js +0 -19
  441. package/ChartContainer/useChartContainerProps.mjs +0 -14
  442. package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
  443. package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
  444. package/ChartDataProvider/ChartDataProvider.js +0 -24
  445. package/ChartDataProvider/ChartDataProvider.mjs +0 -20
  446. package/ChartDataProvider/index.d.mts +0 -1
  447. package/ChartDataProvider/index.d.ts +0 -1
  448. package/ChartDataProvider/index.js +0 -16
  449. package/ChartDataProvider/index.mjs +0 -1
  450. package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
  451. package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
  452. package/ChartDataProvider/useChartDataProviderProps.js +0 -12
  453. package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
  454. package/LineChart/markElementClasses.d.mts +0 -42
  455. package/LineChart/markElementClasses.d.ts +0 -42
  456. package/LineChart/markElementClasses.js +0 -48
  457. package/LineChart/markElementClasses.mjs +0 -40
  458. package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
  459. package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
  460. package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
  461. package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
  462. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
  463. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
  464. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
  465. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
  466. package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
  467. package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
  468. package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
  469. package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
  470. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
  471. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
  472. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
  473. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
  474. package/context/ChartProvider/ChartContext.d.mts +0 -5
  475. package/context/ChartProvider/ChartContext.d.ts +0 -5
  476. package/context/ChartProvider/ChartContext.js +0 -13
  477. package/context/ChartProvider/ChartContext.mjs +0 -9
  478. package/context/ChartProvider/ChartProvider.d.mts +0 -5
  479. package/context/ChartProvider/ChartProvider.d.ts +0 -5
  480. package/context/ChartProvider/ChartProvider.js +0 -12
  481. package/context/ChartProvider/ChartProvider.mjs +0 -8
  482. package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
  483. package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
  484. package/context/ChartProvider/index.d.mts +0 -3
  485. package/context/ChartProvider/index.d.ts +0 -3
  486. package/context/ChartProvider/index.js +0 -38
  487. package/context/ChartProvider/index.mjs +0 -3
  488. package/context/ChartProvider/useChartContext.d.mts +0 -4
  489. package/context/ChartProvider/useChartContext.d.ts +0 -4
  490. package/context/ChartProvider/useChartContext.js +0 -12
  491. package/context/ChartProvider/useChartContext.mjs +0 -8
  492. package/tests/constants.js +0 -7
  493. package/tests/constants.mjs +0 -1
  494. /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
  495. /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
@@ -23,6 +23,8 @@ var _exportNames = {
23
23
  getSeriesColorFn: true,
24
24
  checkBarChartScaleErrors: true,
25
25
  getBandSize: true,
26
+ useChartsTooltipUtilityClasses: true,
27
+ getChartsTooltipUtilityClass: true,
26
28
  getAxisExtrema: true
27
29
  };
28
30
  Object.defineProperty(exports, "checkBarChartScaleErrors", {
@@ -61,6 +63,12 @@ Object.defineProperty(exports, "getCartesianAxisTriggerTooltip", {
61
63
  return _getAxisTriggerTooltip.getAxisTriggerTooltip;
62
64
  }
63
65
  });
66
+ Object.defineProperty(exports, "getChartsTooltipUtilityClass", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _chartsTooltipClasses.getChartsTooltipUtilityClass;
70
+ }
71
+ });
64
72
  Object.defineProperty(exports, "getSeriesColorFn", {
65
73
  enumerable: true,
66
74
  get: function () {
@@ -85,6 +93,12 @@ Object.defineProperty(exports, "useAreaPlotData", {
85
93
  return _useAreaPlotData.useAreaPlotData;
86
94
  }
87
95
  });
96
+ Object.defineProperty(exports, "useChartsTooltipUtilityClasses", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _chartsTooltipClasses.useUtilityClasses;
100
+ }
101
+ });
88
102
  Object.defineProperty(exports, "useDrawingArea", {
89
103
  enumerable: true,
90
104
  get: function () {
@@ -240,18 +254,6 @@ Object.keys(_useChartsContainerProps).forEach(function (key) {
240
254
  }
241
255
  });
242
256
  });
243
- var _useChartContainerProps = require("../ChartContainer/useChartContainerProps");
244
- Object.keys(_useChartContainerProps).forEach(function (key) {
245
- if (key === "default" || key === "__esModule") return;
246
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
247
- if (key in exports && exports[key] === _useChartContainerProps[key]) return;
248
- Object.defineProperty(exports, key, {
249
- enumerable: true,
250
- get: function () {
251
- return _useChartContainerProps[key];
252
- }
253
- });
254
- });
255
257
  var _useChartsDataProviderProps = require("../ChartsDataProvider/useChartsDataProviderProps");
256
258
  Object.keys(_useChartsDataProviderProps).forEach(function (key) {
257
259
  if (key === "default" || key === "__esModule") return;
@@ -264,18 +266,6 @@ Object.keys(_useChartsDataProviderProps).forEach(function (key) {
264
266
  }
265
267
  });
266
268
  });
267
- var _useChartDataProviderProps = require("../ChartDataProvider/useChartDataProviderProps");
268
- Object.keys(_useChartDataProviderProps).forEach(function (key) {
269
- if (key === "default" || key === "__esModule") return;
270
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
271
- if (key in exports && exports[key] === _useChartDataProviderProps[key]) return;
272
- Object.defineProperty(exports, key, {
273
- enumerable: true,
274
- get: function () {
275
- return _useChartDataProviderProps[key];
276
- }
277
- });
278
- });
279
269
  var _seriesSelectorOfType = require("./seriesSelectorOfType");
280
270
  Object.keys(_seriesSelectorOfType).forEach(function (key) {
281
271
  if (key === "default" || key === "__esModule") return;
@@ -604,6 +594,18 @@ Object.keys(_getLabel).forEach(function (key) {
604
594
  }
605
595
  });
606
596
  });
597
+ var _legendUtils = require("./legendUtils");
598
+ Object.keys(_legendUtils).forEach(function (key) {
599
+ if (key === "default" || key === "__esModule") return;
600
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
601
+ if (key in exports && exports[key] === _legendUtils[key]) return;
602
+ Object.defineProperty(exports, key, {
603
+ enumerable: true,
604
+ get: function () {
605
+ return _legendUtils[key];
606
+ }
607
+ });
608
+ });
607
609
  var _getChartPoint = require("./getChartPoint");
608
610
  Object.keys(_getChartPoint).forEach(function (key) {
609
611
  if (key === "default" || key === "__esModule") return;
@@ -800,6 +802,7 @@ Object.keys(_defaultSeriesConfig).forEach(function (key) {
800
802
  }
801
803
  });
802
804
  });
805
+ var _chartsTooltipClasses = require("../ChartsTooltip/chartsTooltipClasses");
803
806
  var _getAxisExtrema = require("./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema");
804
807
  var _ChartsProvider = require("../context/ChartsProvider");
805
808
  Object.keys(_ChartsProvider).forEach(function (key) {
@@ -813,18 +816,6 @@ Object.keys(_ChartsProvider).forEach(function (key) {
813
816
  }
814
817
  });
815
818
  });
816
- var _ChartProvider = require("../context/ChartProvider");
817
- Object.keys(_ChartProvider).forEach(function (key) {
818
- if (key === "default" || key === "__esModule") return;
819
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
820
- if (key in exports && exports[key] === _ChartProvider[key]) return;
821
- Object.defineProperty(exports, key, {
822
- enumerable: true,
823
- get: function () {
824
- return _ChartProvider[key];
825
- }
826
- });
827
- });
828
819
  var _ChartsSlotsContext = require("../context/ChartsSlotsContext");
829
820
  Object.keys(_ChartsSlotsContext).forEach(function (key) {
830
821
  if (key === "default" || key === "__esModule") return;
@@ -19,9 +19,7 @@ export * from "../BarChart/useBarChartProps.mjs";
19
19
  export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
20
20
  export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
21
21
  export * from "../ChartsContainer/useChartsContainerProps.mjs";
22
- export * from "../ChartContainer/useChartContainerProps.mjs";
23
22
  export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
24
- export * from "../ChartDataProvider/useChartDataProviderProps.mjs";
25
23
  export * from "./seriesSelectorOfType.mjs";
26
24
  export { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
27
25
  export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs";
@@ -59,6 +57,7 @@ export * from "../PieChart/PieChart.plugins.mjs";
59
57
  // utils
60
58
  export * from "./configInit.mjs";
61
59
  export * from "./getLabel.mjs";
60
+ export * from "./legendUtils.mjs";
62
61
  export * from "./getChartPoint.mjs";
63
62
  export * from "./isDefined.mjs";
64
63
  export * from "./getScale.mjs";
@@ -79,11 +78,11 @@ export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
79
78
  export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
80
79
  export { getBandSize } from "./getBandSize.mjs";
81
80
  export * from "./plugins/utils/defaultSeriesConfig.mjs";
81
+ export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.mjs";
82
82
 
83
83
  // contexts
84
84
  export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.mjs";
85
85
  export * from "../context/ChartsProvider/index.mjs";
86
- export * from "../context/ChartProvider/index.mjs";
87
86
  export * from "../context/ChartsSlotsContext.mjs";
88
87
 
89
88
  // series configuration
@@ -0,0 +1,11 @@
1
+ import type { SeriesLegendItemParams } from "../ChartsLegend/index.mjs";
2
+ import type { ChartSeriesDefaultized, ChartSeriesType } from "../models/seriesType/config.mjs";
3
+ import type { SeriesProcessorResult } from "./plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.mjs";
4
+ type SeriesTypeWithLegendFields = { [T in ChartSeriesType]: ChartSeriesDefaultized<T> extends {
5
+ label?: unknown;
6
+ labelMarkType?: unknown;
7
+ color: string;
8
+ } ? T : never }[ChartSeriesType];
9
+ /** One legend item per series (bar, scatter, rangeBar, radar). */
10
+ export declare function getSeriesLegendItems<T extends SeriesTypeWithLegendFields>(type: T, params: SeriesProcessorResult<T>, defaultMarkType?: SeriesLegendItemParams['markType']): SeriesLegendItemParams[];
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { SeriesLegendItemParams } from "../ChartsLegend/index.js";
2
+ import type { ChartSeriesDefaultized, ChartSeriesType } from "../models/seriesType/config.js";
3
+ import type { SeriesProcessorResult } from "./plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js";
4
+ type SeriesTypeWithLegendFields = { [T in ChartSeriesType]: ChartSeriesDefaultized<T> extends {
5
+ label?: unknown;
6
+ labelMarkType?: unknown;
7
+ color: string;
8
+ } ? T : never }[ChartSeriesType];
9
+ /** One legend item per series (bar, scatter, rangeBar, radar). */
10
+ export declare function getSeriesLegendItems<T extends SeriesTypeWithLegendFields>(type: T, params: SeriesProcessorResult<T>, defaultMarkType?: SeriesLegendItemParams['markType']): SeriesLegendItemParams[];
11
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSeriesLegendItems = getSeriesLegendItems;
7
+ var _getLabel = require("./getLabel");
8
+ /** One legend item per series (bar, scatter, rangeBar, radar). */
9
+ function getSeriesLegendItems(type, params, defaultMarkType) {
10
+ const {
11
+ seriesOrder,
12
+ series
13
+ } = params;
14
+ return seriesOrder.reduce((acc, seriesId) => {
15
+ const formattedLabel = (0, _getLabel.getLabel)(series[seriesId].label, 'legend');
16
+ if (formattedLabel === undefined) {
17
+ return acc;
18
+ }
19
+ acc.push({
20
+ type,
21
+ markType: series[seriesId].labelMarkType ?? defaultMarkType,
22
+ seriesId,
23
+ color: series[seriesId].color,
24
+ label: formattedLabel
25
+ });
26
+ return acc;
27
+ }, []);
28
+ }
@@ -0,0 +1,22 @@
1
+ import { getLabel } from "./getLabel.mjs";
2
+ /** One legend item per series (bar, scatter, rangeBar, radar). */
3
+ export function getSeriesLegendItems(type, params, defaultMarkType) {
4
+ const {
5
+ seriesOrder,
6
+ series
7
+ } = params;
8
+ return seriesOrder.reduce((acc, seriesId) => {
9
+ const formattedLabel = getLabel(series[seriesId].label, 'legend');
10
+ if (formattedLabel === undefined) {
11
+ return acc;
12
+ }
13
+ acc.push({
14
+ type,
15
+ markType: series[seriesId].labelMarkType ?? defaultMarkType,
16
+ seriesId,
17
+ color: series[seriesId].color,
18
+ label: formattedLabel
19
+ });
20
+ return acc;
21
+ }, []);
22
+ }
@@ -137,11 +137,11 @@ const useChartDimensions = ({
137
137
  }, [computeSize, hasInSize, chartsLayerContainerRef]);
138
138
  if (process.env.NODE_ENV !== 'production') {
139
139
  if (stateRef.current.displayError && params.width === undefined && innerWidth === 0) {
140
- console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
140
+ console.error(`MUI X Charts: ChartsContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
141
141
  stateRef.current.displayError = false;
142
142
  }
143
143
  if (stateRef.current.displayError && params.height === undefined && innerHeight === 0) {
144
- console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
144
+ console.error(`MUI X Charts: ChartsContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
145
145
  stateRef.current.displayError = false;
146
146
  }
147
147
  }
@@ -130,11 +130,11 @@ export const useChartDimensions = ({
130
130
  }, [computeSize, hasInSize, chartsLayerContainerRef]);
131
131
  if (process.env.NODE_ENV !== 'production') {
132
132
  if (stateRef.current.displayError && params.width === undefined && innerWidth === 0) {
133
- console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
133
+ console.error(`MUI X Charts: ChartsContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
134
134
  stateRef.current.displayError = false;
135
135
  }
136
136
  if (stateRef.current.displayError && params.height === undefined && innerHeight === 0) {
137
- console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
137
+ console.error(`MUI X Charts: ChartsContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
138
138
  stateRef.current.displayError = false;
139
139
  }
140
140
  }
@@ -1,6 +1,3 @@
1
1
  import { type ChartRootSelector } from "../../utils/selectors.mjs";
2
2
  import type { UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature.types.mjs";
3
- export declare const selectorChartExperimentalFeaturesState: ChartRootSelector<UseChartExperimentalFeaturesSignature>;
4
- export declare const selectorPreferStrictDomainInLineCharts: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("./useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
5
- cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
6
- }) => boolean;
3
+ export declare const selectorChartExperimentalFeaturesState: ChartRootSelector<UseChartExperimentalFeaturesSignature>;
@@ -1,6 +1,3 @@
1
1
  import { type ChartRootSelector } from "../../utils/selectors.js";
2
2
  import type { UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature.types.js";
3
- export declare const selectorChartExperimentalFeaturesState: ChartRootSelector<UseChartExperimentalFeaturesSignature>;
4
- export declare const selectorPreferStrictDomainInLineCharts: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("./useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
5
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- }) => boolean;
3
+ export declare const selectorChartExperimentalFeaturesState: ChartRootSelector<UseChartExperimentalFeaturesSignature>;
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.selectorPreferStrictDomainInLineCharts = exports.selectorChartExperimentalFeaturesState = void 0;
7
- var _store = require("@mui/x-internals/store");
6
+ exports.selectorChartExperimentalFeaturesState = void 0;
8
7
  const selectorChartExperimentalFeaturesState = state => state.experimentalFeatures;
9
- exports.selectorChartExperimentalFeaturesState = selectorChartExperimentalFeaturesState;
10
- const selectorPreferStrictDomainInLineCharts = exports.selectorPreferStrictDomainInLineCharts = (0, _store.createSelector)(selectorChartExperimentalFeaturesState, features => Boolean(features?.preferStrictDomainInLineCharts));
8
+ exports.selectorChartExperimentalFeaturesState = selectorChartExperimentalFeaturesState;
@@ -1,3 +1 @@
1
- import { createSelector } from '@mui/x-internals/store';
2
- export const selectorChartExperimentalFeaturesState = state => state.experimentalFeatures;
3
- export const selectorPreferStrictDomainInLineCharts = createSelector(selectorChartExperimentalFeaturesState, features => Boolean(features?.preferStrictDomainInLineCharts));
1
+ export const selectorChartExperimentalFeaturesState = state => state.experimentalFeatures;
@@ -1,10 +1,5 @@
1
1
  import { type ChartPluginSignature } from "../../models/index.mjs";
2
- export interface ChartExperimentalFeatures {
3
- /**
4
- * Default domainLimit to strict for line chart x-axis.
5
- */
6
- preferStrictDomainInLineCharts?: boolean;
7
- }
2
+ export interface ChartExperimentalFeatures {}
8
3
  export interface UseChartExperimentalFeaturesParameters {
9
4
  /**
10
5
  * Options to enable features planned for the next major.
@@ -1,10 +1,5 @@
1
1
  import { type ChartPluginSignature } from "../../models/index.js";
2
- export interface ChartExperimentalFeatures {
3
- /**
4
- * Default domainLimit to strict for line chart x-axis.
5
- */
6
- preferStrictDomainInLineCharts?: boolean;
7
- }
2
+ export interface ChartExperimentalFeatures {}
8
3
  export interface UseChartExperimentalFeaturesParameters {
9
4
  /**
10
5
  * Options to enable features planned for the next major.
@@ -1,3 +1,4 @@
1
+ import { type SeriesId } from "../../../../models/index.mjs";
1
2
  import { type ChartRootSelector } from "../../utils/selectors.mjs";
2
3
  import { type UseChartSeriesSignature } from "./useChartSeries.types.mjs";
3
4
  export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
@@ -8,7 +9,7 @@ export declare const selectorChartDefaultizedSeries: (args_0: import("../useChar
8
9
  * Get the dataset from the series state.
9
10
  * @returns {DatasetType | undefined} The dataset.
10
11
  */
11
- export declare const selectorChartDataset: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
12
+ export declare const selectorChartsDataset: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
12
13
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
13
14
  }) => readonly import("../../../index.mjs").DatasetElementType<unknown>[] | undefined;
14
15
  /**
@@ -26,4 +27,25 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
26
27
  */
27
28
  export declare const selectorChartSeriesLayout: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
28
29
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
29
- }) => import("./useChartSeries.types.mjs").SeriesLayout<keyof import("../../../index.mjs").ChartsSeriesConfig>;
30
+ }) => import("./useChartSeries.types.mjs").SeriesLayout<keyof import("../../../index.mjs").ChartsSeriesConfig>;
31
+ /**
32
+ * Returns a function that returns the series configuration for a given series id.
33
+ */
34
+ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
35
+ cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
36
+ }) => (seriesId: SeriesId) => import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"scatter"> | {
37
+ seriesProcessor: import("../useChartSeriesConfig/index.mjs").SeriesProcessor<"pie">;
38
+ seriesLayout?: import("../useChartSeriesConfig/index.mjs").SeriesLayoutGetter<"pie"> | undefined;
39
+ colorProcessor: import("../useChartSeriesConfig/index.mjs").ColorProcessor<"pie">;
40
+ legendGetter: import("../useChartSeriesConfig/index.mjs").LegendGetter<"pie">;
41
+ tooltipGetter: import("../useChartSeriesConfig/index.mjs").TooltipGetter<"pie">;
42
+ ItemTooltipContent?: import("react").ComponentType<import("../useChartSeriesConfig/index.mjs").ItemTooltipContentProps<"pie">> | undefined;
43
+ tooltipItemPositionGetter?: import("../useChartSeriesConfig/index.mjs").TooltipItemPositionGetter<"pie"> | undefined;
44
+ getSeriesWithDefaultValues: import("../useChartSeriesConfig/index.mjs").GetSeriesWithDefaultValues<"pie">;
45
+ keyboardFocusHandler?: import("../../../index.mjs").KeyboardFocusHandler<"pie"> | undefined;
46
+ identifierSerializer: import("../useChartSeriesConfig/index.mjs").IdentifierSerializer<"pie">;
47
+ identifierCleaner: import("../useChartSeriesConfig/index.mjs").IdentifierCleaner<"pie">;
48
+ getItemAtPosition?: import("../useChartSeriesConfig/index.mjs").GetItemAtPosition<"pie"> | undefined;
49
+ isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
50
+ isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
51
+ } | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"radar"> | null;
@@ -1,3 +1,4 @@
1
+ import { type SeriesId } from "../../../../models/index.js";
1
2
  import { type ChartRootSelector } from "../../utils/selectors.js";
2
3
  import { type UseChartSeriesSignature } from "./useChartSeries.types.js";
3
4
  export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
@@ -8,7 +9,7 @@ export declare const selectorChartDefaultizedSeries: (args_0: import("../useChar
8
9
  * Get the dataset from the series state.
9
10
  * @returns {DatasetType | undefined} The dataset.
10
11
  */
11
- export declare const selectorChartDataset: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
12
+ export declare const selectorChartsDataset: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
12
13
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
13
14
  }) => readonly import("../../../index.js").DatasetElementType<unknown>[] | undefined;
14
15
  /**
@@ -26,4 +27,25 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
26
27
  */
27
28
  export declare const selectorChartSeriesLayout: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
28
29
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
29
- }) => import("./useChartSeries.types.js").SeriesLayout<keyof import("../../../index.js").ChartsSeriesConfig>;
30
+ }) => import("./useChartSeries.types.js").SeriesLayout<keyof import("../../../index.js").ChartsSeriesConfig>;
31
+ /**
32
+ * Returns a function that returns the series configuration for a given series id.
33
+ */
34
+ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
35
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
36
+ }) => (seriesId: SeriesId) => import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"scatter"> | {
37
+ seriesProcessor: import("../useChartSeriesConfig/index.js").SeriesProcessor<"pie">;
38
+ seriesLayout?: import("../useChartSeriesConfig/index.js").SeriesLayoutGetter<"pie"> | undefined;
39
+ colorProcessor: import("../useChartSeriesConfig/index.js").ColorProcessor<"pie">;
40
+ legendGetter: import("../useChartSeriesConfig/index.js").LegendGetter<"pie">;
41
+ tooltipGetter: import("../useChartSeriesConfig/index.js").TooltipGetter<"pie">;
42
+ ItemTooltipContent?: import("react").ComponentType<import("../useChartSeriesConfig/index.js").ItemTooltipContentProps<"pie">> | undefined;
43
+ tooltipItemPositionGetter?: import("../useChartSeriesConfig/index.js").TooltipItemPositionGetter<"pie"> | undefined;
44
+ getSeriesWithDefaultValues: import("../useChartSeriesConfig/index.js").GetSeriesWithDefaultValues<"pie">;
45
+ keyboardFocusHandler?: import("../../../index.js").KeyboardFocusHandler<"pie"> | undefined;
46
+ identifierSerializer: import("../useChartSeriesConfig/index.js").IdentifierSerializer<"pie">;
47
+ identifierCleaner: import("../useChartSeriesConfig/index.js").IdentifierCleaner<"pie">;
48
+ getItemAtPosition?: import("../useChartSeriesConfig/index.js").GetItemAtPosition<"pie"> | undefined;
49
+ isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
50
+ isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
51
+ } | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"radar"> | null;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.selectorChartSeriesState = exports.selectorChartSeriesProcessed = exports.selectorChartSeriesLayout = exports.selectorChartDefaultizedSeries = exports.selectorChartDataset = void 0;
6
+ exports.selectorChartsDataset = exports.selectorChartSeriesState = exports.selectorChartSeriesProcessed = exports.selectorChartSeriesLayout = exports.selectorChartSeriesConfigGetter = exports.selectorChartDefaultizedSeries = void 0;
7
7
  var _store = require("@mui/x-internals/store");
8
8
  var _processSeries = require("./processSeries");
9
9
  var _useChartDimensions = require("../useChartDimensions");
@@ -17,14 +17,14 @@ const selectorChartDefaultizedSeries = exports.selectorChartDefaultizedSeries =
17
17
  * Get the dataset from the series state.
18
18
  * @returns {DatasetType | undefined} The dataset.
19
19
  */
20
- const selectorChartDataset = exports.selectorChartDataset = (0, _store.createSelector)(selectorChartSeriesState, seriesState => seriesState.dataset);
20
+ const selectorChartsDataset = exports.selectorChartsDataset = (0, _store.createSelector)(selectorChartSeriesState, seriesState => seriesState.dataset);
21
21
 
22
22
  /**
23
23
  * Get the processed series after applying series processors.
24
24
  * This selector computes the processed series on-demand from the defaultized series.
25
25
  * @returns {ProcessedSeries} The processed series.
26
26
  */
27
- const selectorChartSeriesProcessed = exports.selectorChartSeriesProcessed = (0, _store.createSelectorMemoized)(selectorChartDefaultizedSeries, _useChartSeriesConfig.selectorChartSeriesConfig, selectorChartDataset, _useChartVisibilityManager.selectorIsItemVisibleGetter, function selectorChartSeriesProcessed(defaultizedSeries, seriesConfig, dataset, isItemVisible) {
27
+ const selectorChartSeriesProcessed = exports.selectorChartSeriesProcessed = (0, _store.createSelectorMemoized)(selectorChartDefaultizedSeries, _useChartSeriesConfig.selectorChartSeriesConfig, selectorChartsDataset, _useChartVisibilityManager.selectorIsItemVisibleGetter, function selectorChartSeriesProcessed(defaultizedSeries, seriesConfig, dataset, isItemVisible) {
28
28
  return (0, _processSeries.applySeriesProcessors)(defaultizedSeries, seriesConfig, dataset, isItemVisible);
29
29
  });
30
30
 
@@ -35,4 +35,25 @@ const selectorChartSeriesProcessed = exports.selectorChartSeriesProcessed = (0,
35
35
  */
36
36
  const selectorChartSeriesLayout = exports.selectorChartSeriesLayout = (0, _store.createSelectorMemoized)(selectorChartSeriesProcessed, _useChartSeriesConfig.selectorChartSeriesConfig, _useChartDimensions.selectorChartDrawingArea, function selectorChartSeriesLayout(processedSeries, seriesConfig, drawingArea) {
37
37
  return (0, _processSeries.applySeriesLayout)(processedSeries, seriesConfig, drawingArea);
38
+ });
39
+
40
+ /**
41
+ * Returns a function that returns the series configuration for a given series id.
42
+ */
43
+ const selectorChartSeriesConfigGetter = exports.selectorChartSeriesConfigGetter = (0, _store.createSelectorMemoized)(_useChartSeriesConfig.selectorChartSeriesConfig, selectorChartSeriesProcessed, (seriesConfig, processedSeries) => {
44
+ return function getSeriesConfigById(seriesId) {
45
+ for (const type in processedSeries) {
46
+ if (!Object.hasOwn(processedSeries, type)) {
47
+ continue;
48
+ }
49
+ const seriesGroup = processedSeries[type];
50
+ if (seriesGroup?.series) {
51
+ const item = seriesGroup.series[seriesId];
52
+ if (item) {
53
+ return seriesConfig[type];
54
+ }
55
+ }
56
+ }
57
+ return null;
58
+ };
38
59
  });
@@ -10,14 +10,14 @@ export const selectorChartDefaultizedSeries = createSelector(selectorChartSeries
10
10
  * Get the dataset from the series state.
11
11
  * @returns {DatasetType | undefined} The dataset.
12
12
  */
13
- export const selectorChartDataset = createSelector(selectorChartSeriesState, seriesState => seriesState.dataset);
13
+ export const selectorChartsDataset = createSelector(selectorChartSeriesState, seriesState => seriesState.dataset);
14
14
 
15
15
  /**
16
16
  * Get the processed series after applying series processors.
17
17
  * This selector computes the processed series on-demand from the defaultized series.
18
18
  * @returns {ProcessedSeries} The processed series.
19
19
  */
20
- export const selectorChartSeriesProcessed = createSelectorMemoized(selectorChartDefaultizedSeries, selectorChartSeriesConfig, selectorChartDataset, selectorIsItemVisibleGetter, function selectorChartSeriesProcessed(defaultizedSeries, seriesConfig, dataset, isItemVisible) {
20
+ export const selectorChartSeriesProcessed = createSelectorMemoized(selectorChartDefaultizedSeries, selectorChartSeriesConfig, selectorChartsDataset, selectorIsItemVisibleGetter, function selectorChartSeriesProcessed(defaultizedSeries, seriesConfig, dataset, isItemVisible) {
21
21
  return applySeriesProcessors(defaultizedSeries, seriesConfig, dataset, isItemVisible);
22
22
  });
23
23
 
@@ -28,4 +28,25 @@ export const selectorChartSeriesProcessed = createSelectorMemoized(selectorChart
28
28
  */
29
29
  export const selectorChartSeriesLayout = createSelectorMemoized(selectorChartSeriesProcessed, selectorChartSeriesConfig, selectorChartDrawingArea, function selectorChartSeriesLayout(processedSeries, seriesConfig, drawingArea) {
30
30
  return applySeriesLayout(processedSeries, seriesConfig, drawingArea);
31
+ });
32
+
33
+ /**
34
+ * Returns a function that returns the series configuration for a given series id.
35
+ */
36
+ export const selectorChartSeriesConfigGetter = createSelectorMemoized(selectorChartSeriesConfig, selectorChartSeriesProcessed, (seriesConfig, processedSeries) => {
37
+ return function getSeriesConfigById(seriesId) {
38
+ for (const type in processedSeries) {
39
+ if (!Object.hasOwn(processedSeries, type)) {
40
+ continue;
41
+ }
42
+ const seriesGroup = processedSeries[type];
43
+ if (seriesGroup?.series) {
44
+ const item = seriesGroup.series[seriesId];
45
+ if (item) {
46
+ return seriesConfig[type];
47
+ }
48
+ }
49
+ }
50
+ return null;
51
+ };
31
52
  });
@@ -0,0 +1,18 @@
1
+ import type { CartesianChartSeriesType } from "../../../../../models/index.mjs";
2
+ import { type ChartsTooltipClasses, type ItemTooltip, type SeriesItem } from "../../../../../ChartsTooltip/index.mjs";
3
+ import type { ChartSeriesType, PolarChartSeriesType } from "../../../../../models/seriesType/config.mjs";
4
+ import { type ItemTooltipWithMultipleValues } from "./tooltipGetter.types.mjs";
5
+ export interface AxisTooltipContentProps<T extends CartesianChartSeriesType | PolarChartSeriesType> {
6
+ /**
7
+ * Override or extend the styles applied to the component.
8
+ */
9
+ classes: Partial<ChartsTooltipClasses> | undefined;
10
+ item: SeriesItem<T>;
11
+ }
12
+ export interface ItemTooltipContentProps<T extends ChartSeriesType> {
13
+ /**
14
+ * Override or extend the styles applied to the component.
15
+ */
16
+ classes: Partial<ChartsTooltipClasses> | undefined;
17
+ item: ItemTooltip<T> | ItemTooltipWithMultipleValues;
18
+ }
@@ -0,0 +1,18 @@
1
+ import type { CartesianChartSeriesType } from "../../../../../models/index.js";
2
+ import { type ChartsTooltipClasses, type ItemTooltip, type SeriesItem } from "../../../../../ChartsTooltip/index.js";
3
+ import type { ChartSeriesType, PolarChartSeriesType } from "../../../../../models/seriesType/config.js";
4
+ import { type ItemTooltipWithMultipleValues } from "./tooltipGetter.types.js";
5
+ export interface AxisTooltipContentProps<T extends CartesianChartSeriesType | PolarChartSeriesType> {
6
+ /**
7
+ * Override or extend the styles applied to the component.
8
+ */
9
+ classes: Partial<ChartsTooltipClasses> | undefined;
10
+ item: SeriesItem<T>;
11
+ }
12
+ export interface ItemTooltipContentProps<T extends ChartSeriesType> {
13
+ /**
14
+ * Override or extend the styles applied to the component.
15
+ */
16
+ classes: Partial<ChartsTooltipClasses> | undefined;
17
+ item: ItemTooltip<T> | ItemTooltipWithMultipleValues;
18
+ }
@@ -10,4 +10,5 @@ export * from "./legendGetter.types.mjs";
10
10
  export * from "./getSeriesWithDefaultValues.types.mjs";
11
11
  export * from "./identifierSerializer.types.mjs";
12
12
  export * from "./identifierCleaner.types.mjs";
13
- export * from "./getItemAtPosition.types.mjs";
13
+ export * from "./getItemAtPosition.types.mjs";
14
+ export * from "./TooltipContent.types.mjs";
@@ -10,4 +10,5 @@ export * from "./legendGetter.types.js";
10
10
  export * from "./getSeriesWithDefaultValues.types.js";
11
11
  export * from "./identifierSerializer.types.js";
12
12
  export * from "./identifierCleaner.types.js";
13
- export * from "./getItemAtPosition.types.js";
13
+ export * from "./getItemAtPosition.types.js";
14
+ export * from "./TooltipContent.types.js";
@@ -145,4 +145,15 @@ Object.keys(_getItemAtPosition).forEach(function (key) {
145
145
  return _getItemAtPosition[key];
146
146
  }
147
147
  });
148
+ });
149
+ var _TooltipContent = require("./TooltipContent.types");
150
+ Object.keys(_TooltipContent).forEach(function (key) {
151
+ if (key === "default" || key === "__esModule") return;
152
+ if (key in exports && exports[key] === _TooltipContent[key]) return;
153
+ Object.defineProperty(exports, key, {
154
+ enumerable: true,
155
+ get: function () {
156
+ return _TooltipContent[key];
157
+ }
158
+ });
148
159
  });
@@ -10,4 +10,5 @@ export * from "./legendGetter.types.mjs";
10
10
  export * from "./getSeriesWithDefaultValues.types.mjs";
11
11
  export * from "./identifierSerializer.types.mjs";
12
12
  export * from "./identifierCleaner.types.mjs";
13
- export * from "./getItemAtPosition.types.mjs";
13
+ export * from "./getItemAtPosition.types.mjs";
14
+ export * from "./TooltipContent.types.mjs";
@@ -1,3 +1,4 @@
1
+ import type * as React from 'react';
1
2
  import type { SeriesProcessor } from "./seriesProcessor.types.mjs";
2
3
  import type { CartesianChartSeriesType, ChartSeriesType, ChartsSeriesConfig, PolarChartSeriesType } from "../../../../../models/seriesType/config.mjs";
3
4
  import type { ColorProcessor } from "./colorProcessor.types.mjs";
@@ -15,6 +16,7 @@ import { type GetItemAtPosition } from "./getItemAtPosition.types.mjs";
15
16
  import { type UseChartCartesianAxisSignature } from "../../../featurePlugins/useChartCartesianAxis/index.mjs";
16
17
  import { type UseChartPolarAxisSignature } from "../../../featurePlugins/useChartPolarAxis/index.mjs";
17
18
  import { type HighlightCreator } from "../../../featurePlugins/useChartHighlight/highlightCreator.types.mjs";
19
+ import { type AxisTooltipContentProps, type ItemTooltipContentProps } from "./TooltipContent.types.mjs";
18
20
  export type ChartSeriesTypeRequiredPlugins<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends {
19
21
  axisType: 'cartesian';
20
22
  } ? [UseChartCartesianAxisSignature] : ChartsSeriesConfig[SeriesType] extends {
@@ -29,6 +31,7 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
29
31
  colorProcessor: ColorProcessor<SeriesType>;
30
32
  legendGetter: LegendGetter<SeriesType>;
31
33
  tooltipGetter: TooltipGetter<SeriesType>;
34
+ ItemTooltipContent?: React.ComponentType<ItemTooltipContentProps<SeriesType>>;
32
35
  tooltipItemPositionGetter?: TooltipItemPositionGetter<SeriesType>;
33
36
  getSeriesWithDefaultValues: GetSeriesWithDefaultValues<SeriesType>;
34
37
  keyboardFocusHandler?: KeyboardFocusHandler<SeriesType>;
@@ -52,9 +55,11 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
52
55
  xExtremumGetter: CartesianExtremumGetter<SeriesType>;
53
56
  yExtremumGetter: CartesianExtremumGetter<SeriesType>;
54
57
  axisTooltipGetter?: AxisTooltipGetter<SeriesType, 'x' | 'y'>;
58
+ AxisTooltipContent?: React.ComponentType<AxisTooltipContentProps<SeriesType>>;
55
59
  } : {}) & (SeriesType extends PolarChartSeriesType ? {
56
60
  rotationExtremumGetter: PolarExtremumGetter<SeriesType>;
57
61
  radiusExtremumGetter: PolarExtremumGetter<SeriesType>;
58
62
  axisTooltipGetter?: AxisTooltipGetter<SeriesType, 'rotation' | 'radius'>;
63
+ AxisTooltipContent?: React.ComponentType<AxisTooltipContentProps<SeriesType>>;
59
64
  } : {});
60
65
  export type ChartSeriesConfig<SeriesType extends ChartSeriesType> = { [Key in SeriesType]: ChartSeriesTypeConfig<Key> };