@mui/x-charts 9.8.0 → 9.10.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 (434) hide show
  1. package/BarChart/AnimatedBarElement.d.mts +1 -1
  2. package/BarChart/AnimatedBarElement.d.ts +1 -1
  3. package/BarChart/BarClipPath.d.mts +1 -1
  4. package/BarChart/BarClipPath.d.ts +1 -1
  5. package/BarChart/BarElement.d.mts +1 -1
  6. package/BarChart/BarElement.d.ts +1 -1
  7. package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
  8. package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
  9. package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
  10. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
  11. package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
  12. package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
  13. package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
  14. package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
  15. package/BarChart/FocusedBar.d.mts +1 -1
  16. package/BarChart/FocusedBar.d.ts +1 -1
  17. package/BarChart/IndividualBarPlot.d.mts +2 -1
  18. package/BarChart/IndividualBarPlot.d.ts +2 -1
  19. package/BarChart/barClasses.d.mts +1 -1
  20. package/BarChart/barClasses.d.ts +1 -1
  21. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
  22. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
  23. package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
  24. package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
  25. package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
  26. package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
  27. package/BarChart/seriesConfig/index.js +2 -2
  28. package/BarChart/seriesConfig/index.mjs +2 -2
  29. package/BarChart/useBarPlotData.d.mts +5 -1
  30. package/BarChart/useBarPlotData.d.ts +5 -1
  31. package/BarChart/useBarPlotData.js +102 -25
  32. package/BarChart/useBarPlotData.mjs +102 -26
  33. package/CHANGELOG.md +230 -0
  34. package/ChartsAxis/ChartsAxis.d.mts +2 -1
  35. package/ChartsAxis/ChartsAxis.d.ts +2 -1
  36. package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
  37. package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
  38. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
  39. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
  40. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
  41. package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
  42. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
  43. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
  44. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
  45. package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
  46. package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
  47. package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
  48. package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
  49. package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
  50. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
  51. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
  52. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
  53. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
  54. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
  55. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
  56. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
  57. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
  58. package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
  59. package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
  60. package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
  61. package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
  62. package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
  63. package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -1
  64. package/ChartsGrid/ChartsGrid.d.mts +1 -1
  65. package/ChartsGrid/ChartsGrid.d.ts +1 -1
  66. package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
  67. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
  68. package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
  69. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
  70. package/ChartsLabel/labelGradientClasses.d.mts +1 -1
  71. package/ChartsLabel/labelGradientClasses.d.ts +1 -1
  72. package/ChartsLabel/labelMarkClasses.d.mts +1 -1
  73. package/ChartsLabel/labelMarkClasses.d.ts +1 -1
  74. package/ChartsLegend/chartsLegend.types.d.mts +2 -1
  75. package/ChartsLegend/chartsLegend.types.d.ts +2 -1
  76. package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
  77. package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
  78. package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
  79. package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
  80. package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
  81. package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
  82. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
  83. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  84. package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
  85. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  86. package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
  87. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  88. package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
  89. package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
  90. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
  91. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
  92. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
  93. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
  94. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
  95. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
  96. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  97. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  98. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
  99. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +1 -1
  100. package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
  101. package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
  102. package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
  103. package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
  104. package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
  105. package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
  106. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
  107. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
  108. package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
  109. package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
  110. package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
  111. package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
  112. package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
  113. package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
  114. package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +2 -2
  115. package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
  116. package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +2 -2
  117. package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
  118. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
  119. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
  120. package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
  121. package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
  122. package/ChartsText/ChartsText.d.mts +1 -1
  123. package/ChartsText/ChartsText.d.ts +1 -1
  124. package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
  125. package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
  126. package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
  127. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
  128. package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
  129. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
  130. package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
  131. package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
  132. package/ChartsTooltip/ChartsTooltipContainer.d.mts +5 -2
  133. package/ChartsTooltip/ChartsTooltipContainer.d.ts +5 -2
  134. package/ChartsTooltip/ChartsTooltipContainer.js +1 -5
  135. package/ChartsTooltip/ChartsTooltipContainer.mjs +2 -6
  136. package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
  137. package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  138. package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
  139. package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
  140. package/ChartsTooltip/useItemTooltip.d.mts +1 -1
  141. package/ChartsTooltip/useItemTooltip.d.ts +1 -1
  142. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
  143. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
  144. package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
  145. package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
  146. package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
  147. package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
  148. package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
  149. package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
  150. package/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
  151. package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
  152. package/ChartsXAxis/utilities.d.mts +1 -1
  153. package/ChartsXAxis/utilities.d.ts +1 -1
  154. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
  155. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
  156. package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
  157. package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
  158. package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
  159. package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
  160. package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
  161. package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
  162. package/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
  163. package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
  164. package/ChartsYAxis/utilities.d.mts +1 -1
  165. package/ChartsYAxis/utilities.d.ts +1 -1
  166. package/Gauge/GaugeProvider.d.mts +1 -1
  167. package/Gauge/GaugeProvider.d.ts +1 -1
  168. package/Gauge/GaugeReferenceArc.d.mts +1 -1
  169. package/Gauge/GaugeReferenceArc.d.ts +1 -1
  170. package/Gauge/GaugeValueArc.d.mts +1 -1
  171. package/Gauge/GaugeValueArc.d.ts +1 -1
  172. package/Gauge/GaugeValueText.d.mts +1 -1
  173. package/Gauge/GaugeValueText.d.ts +1 -1
  174. package/LineChart/AnimatedArea.d.mts +1 -1
  175. package/LineChart/AnimatedArea.d.ts +1 -1
  176. package/LineChart/AppearingMask.d.mts +1 -1
  177. package/LineChart/AppearingMask.d.ts +1 -1
  178. package/LineChart/AreaElement.d.mts +1 -1
  179. package/LineChart/AreaElement.d.ts +1 -1
  180. package/LineChart/AreaPlot.d.mts +4 -4
  181. package/LineChart/AreaPlot.d.ts +4 -4
  182. package/LineChart/AreaPlot.js +4 -5
  183. package/LineChart/AreaPlot.mjs +4 -5
  184. package/LineChart/CircleMarkElement.d.mts +1 -1
  185. package/LineChart/CircleMarkElement.d.ts +1 -1
  186. package/LineChart/FocusedLineMark.d.mts +1 -1
  187. package/LineChart/FocusedLineMark.d.ts +1 -1
  188. package/LineChart/LineElement.d.mts +1 -1
  189. package/LineChart/LineElement.d.ts +1 -1
  190. package/LineChart/LineHighlightElement.d.mts +1 -1
  191. package/LineChart/LineHighlightElement.d.ts +1 -1
  192. package/LineChart/LineHighlightPlot.d.mts +1 -1
  193. package/LineChart/LineHighlightPlot.d.ts +1 -1
  194. package/LineChart/LinePlot.d.mts +4 -4
  195. package/LineChart/LinePlot.d.ts +4 -4
  196. package/LineChart/LinePlot.js +7 -7
  197. package/LineChart/LinePlot.mjs +7 -7
  198. package/LineChart/MarkElement.d.mts +1 -1
  199. package/LineChart/MarkElement.d.ts +1 -1
  200. package/LineChart/MarkPlot.d.mts +6 -5
  201. package/LineChart/MarkPlot.d.ts +6 -5
  202. package/LineChart/MarkPlot.js +1 -1
  203. package/LineChart/MarkPlot.mjs +1 -1
  204. package/LineChart/lineClasses.d.mts +1 -1
  205. package/LineChart/lineClasses.d.ts +1 -1
  206. package/LineChart/seriesConfig/index.js +2 -2
  207. package/LineChart/seriesConfig/index.mjs +2 -2
  208. package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
  209. package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
  210. package/LineChart/seriesConfig/tooltipPosition.js +14 -14
  211. package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
  212. package/LineChart/useLineItemClickHandler.d.mts +12 -0
  213. package/LineChart/useLineItemClickHandler.d.ts +12 -0
  214. package/LineChart/useLineItemClickHandler.js +54 -0
  215. package/LineChart/useLineItemClickHandler.mjs +48 -0
  216. package/LineChart/useLinePlotData.d.mts +13 -1
  217. package/LineChart/useLinePlotData.d.ts +13 -1
  218. package/LineChart/useLinePlotData.js +90 -33
  219. package/LineChart/useLinePlotData.mjs +92 -34
  220. package/PieChart/FocusedPieArc.d.mts +1 -1
  221. package/PieChart/FocusedPieArc.d.ts +1 -1
  222. package/PieChart/PieArcLabelPlot.d.mts +3 -2
  223. package/PieChart/PieArcLabelPlot.d.ts +3 -2
  224. package/PieChart/PieArcPlot.d.mts +3 -2
  225. package/PieChart/PieArcPlot.d.ts +3 -2
  226. package/PieChart/PiePlot.d.mts +1 -1
  227. package/PieChart/PiePlot.d.ts +1 -1
  228. package/PieChart/pieClasses.d.mts +1 -1
  229. package/PieChart/pieClasses.d.ts +1 -1
  230. package/PieChart/seriesConfig/index.js +2 -2
  231. package/PieChart/seriesConfig/index.mjs +2 -2
  232. package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
  233. package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
  234. package/PieChart/seriesConfig/tooltipPosition.js +7 -11
  235. package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
  236. package/RadarChart/FocusedRadarMark.d.mts +1 -1
  237. package/RadarChart/FocusedRadarMark.d.ts +1 -1
  238. package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
  239. package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
  240. package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +5 -5
  241. package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +5 -5
  242. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
  243. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
  244. package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
  245. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
  246. package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
  247. package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
  248. package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
  249. package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
  250. package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
  251. package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
  252. package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
  253. package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
  254. package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
  255. package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
  256. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
  257. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
  258. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
  259. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
  260. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
  261. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
  262. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
  263. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
  264. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
  265. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
  266. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
  267. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
  268. package/RadarChart/radarClasses.d.mts +1 -1
  269. package/RadarChart/radarClasses.d.ts +1 -1
  270. package/RadarChart/seriesConfig/index.js +2 -2
  271. package/RadarChart/seriesConfig/index.mjs +2 -2
  272. package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
  273. package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
  274. package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
  275. package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
  276. package/RadarChart/useRadarChartProps.d.mts +1 -1
  277. package/RadarChart/useRadarChartProps.d.ts +1 -1
  278. package/ScatterChart/BatchScatter.d.mts +2 -1
  279. package/ScatterChart/BatchScatter.d.ts +2 -1
  280. package/ScatterChart/FocusedScatterMark.d.mts +1 -1
  281. package/ScatterChart/FocusedScatterMark.d.ts +1 -1
  282. package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
  283. package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
  284. package/ScatterChart/Scatter.d.mts +1 -1
  285. package/ScatterChart/Scatter.d.ts +1 -1
  286. package/ScatterChart/ScatterChart.d.mts +2 -1
  287. package/ScatterChart/ScatterChart.d.ts +2 -1
  288. package/ScatterChart/ScatterMarker.d.mts +1 -1
  289. package/ScatterChart/ScatterMarker.d.ts +1 -1
  290. package/ScatterChart/ScatterMarker.types.d.mts +2 -1
  291. package/ScatterChart/ScatterMarker.types.d.ts +2 -1
  292. package/ScatterChart/ScatterPlot.d.mts +1 -1
  293. package/ScatterChart/ScatterPlot.d.ts +1 -1
  294. package/ScatterChart/async/ScatterAsync.d.mts +2 -1
  295. package/ScatterChart/async/ScatterAsync.d.ts +2 -1
  296. package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
  297. package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
  298. package/ScatterChart/scatterClasses.d.mts +1 -1
  299. package/ScatterChart/scatterClasses.d.ts +1 -1
  300. package/ScatterChart/seriesConfig/index.js +2 -2
  301. package/ScatterChart/seriesConfig/index.mjs +2 -2
  302. package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
  303. package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
  304. package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
  305. package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
  306. package/ScatterChart/useScatterPlotData.d.mts +1 -1
  307. package/ScatterChart/useScatterPlotData.d.ts +1 -1
  308. package/SparkLineChart/SparkLineChart.d.mts +1 -1
  309. package/SparkLineChart/SparkLineChart.d.ts +1 -1
  310. package/Toolbar/Toolbar.types.d.mts +2 -1
  311. package/Toolbar/Toolbar.types.d.ts +2 -1
  312. package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
  313. package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
  314. package/context/ChartsSlotsContext.d.mts +1 -1
  315. package/context/ChartsSlotsContext.d.ts +1 -1
  316. package/index.js +1 -1
  317. package/index.mjs +1 -1
  318. package/internals/colorScale.d.mts +1 -1
  319. package/internals/colorScale.d.ts +1 -1
  320. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
  321. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
  322. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
  323. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
  324. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
  325. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
  326. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
  327. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
  328. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
  329. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
  330. package/internals/configInit.d.mts +1 -1
  331. package/internals/configInit.d.ts +1 -1
  332. package/internals/consumeSlots.d.mts +1 -1
  333. package/internals/consumeSlots.d.ts +1 -1
  334. package/internals/consumeThemeProps.d.mts +1 -1
  335. package/internals/consumeThemeProps.d.ts +1 -1
  336. package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
  337. package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
  338. package/internals/createGetBarDimensions.d.mts +14 -1
  339. package/internals/createGetBarDimensions.d.ts +14 -1
  340. package/internals/createGetBarDimensions.js +45 -0
  341. package/internals/createGetBarDimensions.mjs +45 -0
  342. package/internals/geometry.js +1 -1
  343. package/internals/geometry.mjs +1 -1
  344. package/internals/getGraphemeCount.d.mts +2 -2
  345. package/internals/getGraphemeCount.d.ts +2 -2
  346. package/internals/getGroupingConfig.d.mts +1 -1
  347. package/internals/getGroupingConfig.d.ts +1 -1
  348. package/internals/identifierCleaner.d.mts +1 -1
  349. package/internals/identifierCleaner.d.ts +1 -1
  350. package/internals/index.d.mts +1 -2
  351. package/internals/index.d.ts +1 -2
  352. package/internals/index.js +12 -8
  353. package/internals/index.mjs +1 -2
  354. package/internals/invertScale.d.mts +1 -1
  355. package/internals/invertScale.d.ts +1 -1
  356. package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
  357. package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
  358. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +4 -4
  359. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -4
  360. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
  361. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
  362. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
  363. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
  364. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +11 -6
  365. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +11 -6
  366. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
  367. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
  368. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.mts +3 -3
  369. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
  370. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
  371. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
  372. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
  373. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
  374. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
  375. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
  376. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
  377. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
  378. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
  379. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
  380. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
  381. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
  382. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
  383. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
  384. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
  385. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
  386. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
  387. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
  388. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
  389. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
  390. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
  391. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
  392. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
  393. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
  394. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
  395. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
  396. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
  397. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
  398. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
  399. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
  400. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
  401. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
  402. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +4 -9
  403. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +4 -9
  404. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -53
  405. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -53
  406. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
  407. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
  408. package/internals/seriesSelectorOfType.d.mts +6 -6
  409. package/internals/seriesSelectorOfType.d.ts +6 -6
  410. package/internals/sizeScale.d.mts +1 -1
  411. package/internals/sizeScale.d.ts +1 -1
  412. package/internals/sliceUntil.d.mts +2 -2
  413. package/internals/sliceUntil.d.ts +2 -2
  414. package/models/axis.d.mts +5 -4
  415. package/models/axis.d.ts +5 -4
  416. package/models/seriesType/config.d.mts +8 -4
  417. package/models/seriesType/config.d.ts +8 -4
  418. package/models/seriesType/index.d.mts +1 -1
  419. package/models/seriesType/index.d.ts +1 -1
  420. package/models/seriesType/line.d.mts +14 -1
  421. package/models/seriesType/line.d.ts +14 -1
  422. package/package.json +4 -4
  423. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -45
  424. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -45
  425. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -48
  426. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -48
  427. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
  428. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
  429. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -73
  430. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -73
  431. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
  432. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
  433. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
  434. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
@@ -13,6 +13,7 @@ var _useStore = require("../internals/store/useStore");
13
13
  var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
14
14
  var _hooks = require("../hooks");
15
15
  var _ChartsAxisHighlightPath = require("./ChartsAxisHighlightPath");
16
+ var _getSampledBandHighlight = require("./getSampledBandHighlight");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  /**
18
19
  * @ignore - internal component.
@@ -29,13 +30,15 @@ function ChartsXHighlight(props) {
29
30
  const store = (0, _useStore.useStore)();
30
31
  const axisXValues = store.use(_useChartCartesianAxis.selectorChartsHighlightXAxisValue);
31
32
  const xAxes = store.use(_useChartCartesianAxis.selectorChartXAxis);
33
+ const bucketSizeByAxis = store.use(_useChartCartesianAxis.selectorChartHighlightBucketSize);
32
34
  if (axisXValues.length === 0) {
33
35
  return null;
34
36
  }
35
- return axisXValues.map(({
36
- axisId,
37
- value
38
- }) => {
37
+ return axisXValues.map(axisValue => {
38
+ const {
39
+ axisId,
40
+ value
41
+ } = axisValue;
39
42
  const xAxis = xAxes.axis[axisId];
40
43
  const xScale = xAxis.scale;
41
44
  const getXPosition = (0, _getValueToPositionMapper.getValueToPositionMapper)(xScale);
@@ -46,9 +49,23 @@ function ChartsXHighlight(props) {
46
49
  console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
47
50
  }
48
51
  }
52
+ let bandStart = 0;
53
+ let bandSize = 0;
54
+ if (isXScaleOrdinal) {
55
+ ({
56
+ bandStart,
57
+ bandSize
58
+ } = (0, _getSampledBandHighlight.getSampledBandHighlight)({
59
+ scale: xScale,
60
+ value,
61
+ dataIndex: axisValue.dataIndex,
62
+ data: xAxis.data,
63
+ bucketSize: bucketSizeByAxis.get(axisId) ?? 1
64
+ }));
65
+ }
49
66
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
50
67
  children: [isXScaleOrdinal && xScale(value) !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath, {
51
- d: `M ${xScale(value) - (xScale.step() - xScale.bandwidth()) / 2} ${top} l ${xScale.step()} 0 l 0 ${height} l ${-xScale.step()} 0 Z`,
68
+ d: `M ${bandStart} ${top} l ${bandSize} 0 l 0 ${height} l ${-bandSize} 0 Z`,
52
69
  className: classes.root,
53
70
  ownerState: {
54
71
  axisHighlight: 'band'
@@ -4,9 +4,10 @@ import * as React from 'react';
4
4
  import { getValueToPositionMapper } from "../hooks/getValueToPositionMapper.mjs";
5
5
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
6
6
  import { useStore } from "../internals/store/useStore.mjs";
7
- import { selectorChartsHighlightXAxisValue, selectorChartXAxis } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
7
+ import { selectorChartsHighlightXAxisValue, selectorChartHighlightBucketSize, selectorChartXAxis } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
8
8
  import { useDrawingArea } from "../hooks/index.mjs";
9
9
  import { ChartsAxisHighlightPath } from "./ChartsAxisHighlightPath.mjs";
10
+ import { getSampledBandHighlight } from "./getSampledBandHighlight.mjs";
10
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
12
  /**
12
13
  * @ignore - internal component.
@@ -23,13 +24,15 @@ export default function ChartsXHighlight(props) {
23
24
  const store = useStore();
24
25
  const axisXValues = store.use(selectorChartsHighlightXAxisValue);
25
26
  const xAxes = store.use(selectorChartXAxis);
27
+ const bucketSizeByAxis = store.use(selectorChartHighlightBucketSize);
26
28
  if (axisXValues.length === 0) {
27
29
  return null;
28
30
  }
29
- return axisXValues.map(({
30
- axisId,
31
- value
32
- }) => {
31
+ return axisXValues.map(axisValue => {
32
+ const {
33
+ axisId,
34
+ value
35
+ } = axisValue;
33
36
  const xAxis = xAxes.axis[axisId];
34
37
  const xScale = xAxis.scale;
35
38
  const getXPosition = getValueToPositionMapper(xScale);
@@ -40,9 +43,23 @@ export default function ChartsXHighlight(props) {
40
43
  console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
41
44
  }
42
45
  }
46
+ let bandStart = 0;
47
+ let bandSize = 0;
48
+ if (isXScaleOrdinal) {
49
+ ({
50
+ bandStart,
51
+ bandSize
52
+ } = getSampledBandHighlight({
53
+ scale: xScale,
54
+ value,
55
+ dataIndex: axisValue.dataIndex,
56
+ data: xAxis.data,
57
+ bucketSize: bucketSizeByAxis.get(axisId) ?? 1
58
+ }));
59
+ }
43
60
  return /*#__PURE__*/_jsxs(React.Fragment, {
44
61
  children: [isXScaleOrdinal && xScale(value) !== undefined && /*#__PURE__*/_jsx(ChartsAxisHighlightPath, {
45
- d: `M ${xScale(value) - (xScale.step() - xScale.bandwidth()) / 2} ${top} l ${xScale.step()} 0 l 0 ${height} l ${-xScale.step()} 0 Z`,
62
+ d: `M ${bandStart} ${top} l ${bandSize} 0 l 0 ${height} l ${-bandSize} 0 Z`,
46
63
  className: classes.root,
47
64
  ownerState: {
48
65
  axisHighlight: 'band'
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsAxisHighlightType } from "./ChartsAxisHighlight.types.mjs";
2
3
  import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.mjs";
3
4
  /**
@@ -6,4 +7,4 @@ import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.mj
6
7
  export default function ChartsYHighlight(props: {
7
8
  type: ChartsAxisHighlightType;
8
9
  classes: ChartsAxisHighlightClasses;
9
- }): import("react/jsx-runtime").JSX.Element[] | null;
10
+ }): React.JSX.Element[] | null;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsAxisHighlightType } from "./ChartsAxisHighlight.types.js";
2
3
  import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.js";
3
4
  /**
@@ -6,4 +7,4 @@ import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.js
6
7
  export default function ChartsYHighlight(props: {
7
8
  type: ChartsAxisHighlightType;
8
9
  classes: ChartsAxisHighlightClasses;
9
- }): import("react/jsx-runtime").JSX.Element[] | null;
10
+ }): React.JSX.Element[] | null;
@@ -13,6 +13,7 @@ var _useStore = require("../internals/store/useStore");
13
13
  var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
14
14
  var _hooks = require("../hooks");
15
15
  var _ChartsAxisHighlightPath = require("./ChartsAxisHighlightPath");
16
+ var _getSampledBandHighlight = require("./getSampledBandHighlight");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  /**
18
19
  * @ignore - internal component.
@@ -29,13 +30,15 @@ function ChartsYHighlight(props) {
29
30
  const store = (0, _useStore.useStore)();
30
31
  const axisYValues = store.use(_useChartCartesianAxis.selectorChartsHighlightYAxisValue);
31
32
  const yAxes = store.use(_useChartCartesianAxis.selectorChartYAxis);
33
+ const bucketSizeByAxis = store.use(_useChartCartesianAxis.selectorChartHighlightBucketSize);
32
34
  if (axisYValues.length === 0) {
33
35
  return null;
34
36
  }
35
- return axisYValues.map(({
36
- axisId,
37
- value
38
- }) => {
37
+ return axisYValues.map(axisValue => {
38
+ const {
39
+ axisId,
40
+ value
41
+ } = axisValue;
39
42
  const yAxis = yAxes.axis[axisId];
40
43
  const yScale = yAxis.scale;
41
44
  const getYPosition = (0, _getValueToPositionMapper.getValueToPositionMapper)(yScale);
@@ -46,9 +49,23 @@ function ChartsYHighlight(props) {
46
49
  console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
47
50
  }
48
51
  }
52
+ let bandStart = 0;
53
+ let bandSize = 0;
54
+ if (isYScaleOrdinal) {
55
+ ({
56
+ bandStart,
57
+ bandSize
58
+ } = (0, _getSampledBandHighlight.getSampledBandHighlight)({
59
+ scale: yScale,
60
+ value,
61
+ dataIndex: axisValue.dataIndex,
62
+ data: yAxis.data,
63
+ bucketSize: bucketSizeByAxis.get(axisId) ?? 1
64
+ }));
65
+ }
49
66
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
50
67
  children: [isYScaleOrdinal && yScale(value) !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath, {
51
- d: `M ${left} ${yScale(value) - (yScale.step() - yScale.bandwidth()) / 2} l 0 ${yScale.step()} l ${width} 0 l 0 ${-yScale.step()} Z`,
68
+ d: `M ${left} ${bandStart} l 0 ${bandSize} l ${width} 0 l 0 ${-bandSize} Z`,
52
69
  className: classes.root,
53
70
  ownerState: {
54
71
  axisHighlight: 'band'
@@ -4,9 +4,10 @@ import * as React from 'react';
4
4
  import { getValueToPositionMapper } from "../hooks/getValueToPositionMapper.mjs";
5
5
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
6
6
  import { useStore } from "../internals/store/useStore.mjs";
7
- import { selectorChartsHighlightYAxisValue, selectorChartYAxis } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
7
+ import { selectorChartsHighlightYAxisValue, selectorChartHighlightBucketSize, selectorChartYAxis } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
8
8
  import { useDrawingArea } from "../hooks/index.mjs";
9
9
  import { ChartsAxisHighlightPath } from "./ChartsAxisHighlightPath.mjs";
10
+ import { getSampledBandHighlight } from "./getSampledBandHighlight.mjs";
10
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
12
  /**
12
13
  * @ignore - internal component.
@@ -23,13 +24,15 @@ export default function ChartsYHighlight(props) {
23
24
  const store = useStore();
24
25
  const axisYValues = store.use(selectorChartsHighlightYAxisValue);
25
26
  const yAxes = store.use(selectorChartYAxis);
27
+ const bucketSizeByAxis = store.use(selectorChartHighlightBucketSize);
26
28
  if (axisYValues.length === 0) {
27
29
  return null;
28
30
  }
29
- return axisYValues.map(({
30
- axisId,
31
- value
32
- }) => {
31
+ return axisYValues.map(axisValue => {
32
+ const {
33
+ axisId,
34
+ value
35
+ } = axisValue;
33
36
  const yAxis = yAxes.axis[axisId];
34
37
  const yScale = yAxis.scale;
35
38
  const getYPosition = getValueToPositionMapper(yScale);
@@ -40,9 +43,23 @@ export default function ChartsYHighlight(props) {
40
43
  console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
41
44
  }
42
45
  }
46
+ let bandStart = 0;
47
+ let bandSize = 0;
48
+ if (isYScaleOrdinal) {
49
+ ({
50
+ bandStart,
51
+ bandSize
52
+ } = getSampledBandHighlight({
53
+ scale: yScale,
54
+ value,
55
+ dataIndex: axisValue.dataIndex,
56
+ data: yAxis.data,
57
+ bucketSize: bucketSizeByAxis.get(axisId) ?? 1
58
+ }));
59
+ }
43
60
  return /*#__PURE__*/_jsxs(React.Fragment, {
44
61
  children: [isYScaleOrdinal && yScale(value) !== undefined && /*#__PURE__*/_jsx(ChartsAxisHighlightPath, {
45
- d: `M ${left} ${yScale(value) - (yScale.step() - yScale.bandwidth()) / 2} l 0 ${yScale.step()} l ${width} 0 l 0 ${-yScale.step()} Z`,
62
+ d: `M ${left} ${bandStart} l 0 ${bandSize} l ${width} 0 l 0 ${-bandSize} Z`,
46
63
  className: classes.root,
47
64
  ownerState: {
48
65
  axisHighlight: 'band'
@@ -0,0 +1,27 @@
1
+ import type { D3OrdinalScale } from "../models/axis.mjs";
2
+ interface SampledBandHighlightParams {
3
+ scale: D3OrdinalScale;
4
+ /** The highlighted value. */
5
+ value: number | Date;
6
+ /** The data index of the highlighted value, when known (O(1) lookup). */
7
+ dataIndex: number | undefined;
8
+ /** The axis data. */
9
+ data: readonly any[] | undefined;
10
+ /** The number of merged data points per band when the series is sampled. */
11
+ bucketSize: number;
12
+ }
13
+ /**
14
+ * Computes the band highlight rectangle along the ordinal axis.
15
+ * When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
16
+ */
17
+ export declare function getSampledBandHighlight({
18
+ scale,
19
+ value,
20
+ dataIndex,
21
+ data,
22
+ bucketSize
23
+ }: SampledBandHighlightParams): {
24
+ bandStart: number;
25
+ bandSize: number;
26
+ };
27
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { D3OrdinalScale } from "../models/axis.js";
2
+ interface SampledBandHighlightParams {
3
+ scale: D3OrdinalScale;
4
+ /** The highlighted value. */
5
+ value: number | Date;
6
+ /** The data index of the highlighted value, when known (O(1) lookup). */
7
+ dataIndex: number | undefined;
8
+ /** The axis data. */
9
+ data: readonly any[] | undefined;
10
+ /** The number of merged data points per band when the series is sampled. */
11
+ bucketSize: number;
12
+ }
13
+ /**
14
+ * Computes the band highlight rectangle along the ordinal axis.
15
+ * When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
16
+ */
17
+ export declare function getSampledBandHighlight({
18
+ scale,
19
+ value,
20
+ dataIndex,
21
+ data,
22
+ bucketSize
23
+ }: SampledBandHighlightParams): {
24
+ bandStart: number;
25
+ bandSize: number;
26
+ };
27
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSampledBandHighlight = getSampledBandHighlight;
7
+ /**
8
+ * Computes the band highlight rectangle along the ordinal axis.
9
+ * When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
10
+ */
11
+ function getSampledBandHighlight({
12
+ scale,
13
+ value,
14
+ dataIndex,
15
+ data,
16
+ bucketSize
17
+ }) {
18
+ const step = scale.step();
19
+ const halfPadding = (step - scale.bandwidth()) / 2;
20
+ let bandStart = scale(value) - halfPadding;
21
+ let bandSize = step;
22
+ if (bucketSize > 1 && data) {
23
+ const index = dataIndex ?? data.indexOf(value);
24
+ if (index >= 0) {
25
+ const bucketStart = Math.floor(index / bucketSize) * bucketSize;
26
+ const bucketEnd = Math.min(bucketStart + bucketSize - 1, data.length - 1);
27
+ bandStart = scale(data[bucketStart]) - halfPadding;
28
+ bandSize = (bucketEnd - bucketStart + 1) * step;
29
+ }
30
+ }
31
+ return {
32
+ bandStart,
33
+ bandSize
34
+ };
35
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Computes the band highlight rectangle along the ordinal axis.
3
+ * When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
4
+ */
5
+ export function getSampledBandHighlight({
6
+ scale,
7
+ value,
8
+ dataIndex,
9
+ data,
10
+ bucketSize
11
+ }) {
12
+ const step = scale.step();
13
+ const halfPadding = (step - scale.bandwidth()) / 2;
14
+ let bandStart = scale(value) - halfPadding;
15
+ let bandSize = step;
16
+ if (bucketSize > 1 && data) {
17
+ const index = dataIndex ?? data.indexOf(value);
18
+ if (index >= 0) {
19
+ const bucketStart = Math.floor(index / bucketSize) * bucketSize;
20
+ const bucketEnd = Math.min(bucketStart + bucketSize - 1, data.length - 1);
21
+ bandStart = scale(data[bucketStart]) - halfPadding;
22
+ bandSize = (bucketEnd - bucketStart + 1) * step;
23
+ }
24
+ }
25
+ return {
26
+ bandStart,
27
+ bandSize
28
+ };
29
+ }
@@ -48,7 +48,7 @@ export interface ChartsAxisHighlightValueProps {
48
48
  *
49
49
  * - [ChartsAxisHighlightValue API](https://mui.com/x/api/charts/charts-axis-highlight-value/)
50
50
  */
51
- declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").ReactPortal | import("react/jsx-runtime").JSX.Element[] | null;
51
+ declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").JSX.Element[] | import("react").ReactPortal | null;
52
52
  declare namespace ChartsAxisHighlightValue {
53
53
  var propTypes: any;
54
54
  }
@@ -48,7 +48,7 @@ export interface ChartsAxisHighlightValueProps {
48
48
  *
49
49
  * - [ChartsAxisHighlightValue API](https://mui.com/x/api/charts/charts-axis-highlight-value/)
50
50
  */
51
- declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").ReactPortal | import("react/jsx-runtime").JSX.Element[] | null;
51
+ declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").JSX.Element[] | import("react").ReactPortal | null;
52
52
  declare namespace ChartsAxisHighlightValue {
53
53
  var propTypes: any;
54
54
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { SxProps } from '@mui/material/styles';
2
3
  export interface ChartsAxisHighlightValueItemProps {
3
4
  x: number;
@@ -9,5 +10,5 @@ export interface ChartsAxisHighlightValueItemProps {
9
10
  space: number;
10
11
  sx?: SxProps;
11
12
  }
12
- declare function ChartsAxisHighlightValueItem(props: ChartsAxisHighlightValueItemProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function ChartsAxisHighlightValueItem(props: ChartsAxisHighlightValueItemProps): React.JSX.Element;
13
14
  export { ChartsAxisHighlightValueItem };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { SxProps } from '@mui/material/styles';
2
3
  export interface ChartsAxisHighlightValueItemProps {
3
4
  x: number;
@@ -9,5 +10,5 @@ export interface ChartsAxisHighlightValueItemProps {
9
10
  space: number;
10
11
  sx?: SxProps;
11
12
  }
12
- declare function ChartsAxisHighlightValueItem(props: ChartsAxisHighlightValueItemProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function ChartsAxisHighlightValueItem(props: ChartsAxisHighlightValueItemProps): React.JSX.Element;
13
14
  export { ChartsAxisHighlightValueItem };
@@ -13,6 +13,6 @@ export interface ChartsAxisHighlightValueClasses {
13
13
  export type ChartsAxisHighlightValueClassKey = keyof ChartsAxisHighlightValueClasses;
14
14
  export declare function getChartsAxisHighlightValueUtilityClass(slot: string): string;
15
15
  export declare const useUtilityClasses: (ownerState: {
16
- position: "top" | "right" | "bottom" | "left";
16
+ position: 'top' | 'right' | 'bottom' | 'left';
17
17
  }) => Record<"root", string>;
18
18
  export declare const chartsAxisHighlightValueClasses: ChartsAxisHighlightValueClasses;
@@ -13,6 +13,6 @@ export interface ChartsAxisHighlightValueClasses {
13
13
  export type ChartsAxisHighlightValueClassKey = keyof ChartsAxisHighlightValueClasses;
14
14
  export declare function getChartsAxisHighlightValueUtilityClass(slot: string): string;
15
15
  export declare const useUtilityClasses: (ownerState: {
16
- position: "top" | "right" | "bottom" | "left";
16
+ position: 'top' | 'right' | 'bottom' | 'left';
17
17
  }) => Record<"root", string>;
18
18
  export declare const chartsAxisHighlightValueClasses: ChartsAxisHighlightValueClasses;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  export interface ChartsBrushOverlayProps {
2
3
  /**
3
4
  * A CSS class name applied to the root element.
@@ -7,7 +8,7 @@ export interface ChartsBrushOverlayProps {
7
8
  /**
8
9
  * Component that renders visual feedback during brush interaction
9
10
  */
10
- declare function ChartsBrushOverlay(props: ChartsBrushOverlayProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsBrushOverlay(props: ChartsBrushOverlayProps): React.JSX.Element | null;
11
12
  declare namespace ChartsBrushOverlay {
12
13
  var propTypes: any;
13
14
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  export interface ChartsBrushOverlayProps {
2
3
  /**
3
4
  * A CSS class name applied to the root element.
@@ -7,7 +8,7 @@ export interface ChartsBrushOverlayProps {
7
8
  /**
8
9
  * Component that renders visual feedback during brush interaction
9
10
  */
10
- declare function ChartsBrushOverlay(props: ChartsBrushOverlayProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsBrushOverlay(props: ChartsBrushOverlayProps): React.JSX.Element | null;
11
12
  declare namespace ChartsBrushOverlay {
12
13
  var propTypes: any;
13
14
  }
@@ -20,7 +20,7 @@ export type ChartsClipPathProps = {
20
20
  *
21
21
  * - [ChartsClipPath API](https://mui.com/x/api/charts/charts-clip-path/)
22
22
  */
23
- declare function ChartsClipPath(props: ChartsClipPathProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function ChartsClipPath(props: ChartsClipPathProps): import("react").JSX.Element;
24
24
  declare namespace ChartsClipPath {
25
25
  var propTypes: any;
26
26
  }
@@ -20,7 +20,7 @@ export type ChartsClipPathProps = {
20
20
  *
21
21
  * - [ChartsClipPath API](https://mui.com/x/api/charts/charts-clip-path/)
22
22
  */
23
- declare function ChartsClipPath(props: ChartsClipPathProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function ChartsClipPath(props: ChartsClipPathProps): import("react").JSX.Element;
24
24
  declare namespace ChartsClipPath {
25
25
  var propTypes: any;
26
26
  }
@@ -44,7 +44,7 @@ export type ChartsDataProviderProps<SeriesType extends ChartSeriesType = ChartSe
44
44
  * </ChartsDataProvider>
45
45
  * ```
46
46
  */
47
- declare function ChartsDataProvider<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProps<SeriesType, TSignatures>): import("react/jsx-runtime").JSX.Element;
47
+ declare function ChartsDataProvider<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProps<SeriesType, TSignatures>): React.JSX.Element;
48
48
  declare namespace ChartsDataProvider {
49
49
  var propTypes: any;
50
50
  }
@@ -44,7 +44,7 @@ export type ChartsDataProviderProps<SeriesType extends ChartSeriesType = ChartSe
44
44
  * </ChartsDataProvider>
45
45
  * ```
46
46
  */
47
- declare function ChartsDataProvider<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProps<SeriesType, TSignatures>): import("react/jsx-runtime").JSX.Element;
47
+ declare function ChartsDataProvider<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProps<SeriesType, TSignatures>): React.JSX.Element;
48
48
  declare namespace ChartsDataProvider {
49
49
  var propTypes: any;
50
50
  }
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
4
4
  import type { ChartSeriesType } from "../models/seriesType/config.mjs";
5
5
  import type { AllPluginSignatures } from "../internals/plugins/allPlugins.mjs";
6
6
  import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.mjs";
7
- export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
7
+ export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = keyof import("../internals/index.mjs").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
8
8
  children: import("react").ReactNode;
9
9
  localeText: Partial<import("../locales/index.mjs").ChartsLocaleText> | undefined;
10
10
  chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
4
4
  import type { ChartSeriesType } from "../models/seriesType/config.js";
5
5
  import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
6
6
  import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
7
- export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
7
+ export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = keyof import("../internals/index.js").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
8
8
  children: import("react").ReactNode;
9
9
  localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
10
10
  chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
@@ -26,7 +26,7 @@ export interface ChartsGridProps {
26
26
  *
27
27
  * - [ChartsGrid API](https://mui.com/x/api/charts/charts-axis/)
28
28
  */
29
- declare function ChartsGrid(inProps: ChartsGridProps): import("react/jsx-runtime").JSX.Element;
29
+ declare function ChartsGrid(inProps: ChartsGridProps): import("react").JSX.Element;
30
30
  declare namespace ChartsGrid {
31
31
  var propTypes: any;
32
32
  }
@@ -26,7 +26,7 @@ export interface ChartsGridProps {
26
26
  *
27
27
  * - [ChartsGrid API](https://mui.com/x/api/charts/charts-axis/)
28
28
  */
29
- declare function ChartsGrid(inProps: ChartsGridProps): import("react/jsx-runtime").JSX.Element;
29
+ declare function ChartsGrid(inProps: ChartsGridProps): import("react").JSX.Element;
30
30
  declare namespace ChartsGrid {
31
31
  var propTypes: any;
32
32
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ComputedYAxis } from "../models/axis.mjs";
2
3
  import type { ChartsGridClasses } from "./chartsGridClasses.mjs";
3
4
  interface ChartsGridHorizontalProps {
@@ -9,5 +10,5 @@ interface ChartsGridHorizontalProps {
9
10
  /**
10
11
  * @ignore - internal component.
11
12
  */
12
- export declare function ChartsGridHorizontal(props: ChartsGridHorizontalProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartsGridHorizontal(props: ChartsGridHorizontalProps): React.JSX.Element;
13
14
  export {};
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ComputedYAxis } from "../models/axis.js";
2
3
  import type { ChartsGridClasses } from "./chartsGridClasses.js";
3
4
  interface ChartsGridHorizontalProps {
@@ -9,5 +10,5 @@ interface ChartsGridHorizontalProps {
9
10
  /**
10
11
  * @ignore - internal component.
11
12
  */
12
- export declare function ChartsGridHorizontal(props: ChartsGridHorizontalProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartsGridHorizontal(props: ChartsGridHorizontalProps): React.JSX.Element;
13
14
  export {};
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ComputedXAxis } from "../models/axis.mjs";
2
3
  import type { ChartsGridClasses } from "./chartsGridClasses.mjs";
3
4
  interface ChartsGridVerticalProps {
@@ -9,5 +10,5 @@ interface ChartsGridVerticalProps {
9
10
  /**
10
11
  * @ignore - internal component.
11
12
  */
12
- export declare function ChartsGridVertical(props: ChartsGridVerticalProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartsGridVertical(props: ChartsGridVerticalProps): React.JSX.Element;
13
14
  export {};
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ComputedXAxis } from "../models/axis.js";
2
3
  import type { ChartsGridClasses } from "./chartsGridClasses.js";
3
4
  interface ChartsGridVerticalProps {
@@ -9,5 +10,5 @@ interface ChartsGridVerticalProps {
9
10
  /**
10
11
  * @ignore - internal component.
11
12
  */
12
- export declare function ChartsGridVertical(props: ChartsGridVerticalProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartsGridVertical(props: ChartsGridVerticalProps): React.JSX.Element;
13
14
  export {};
@@ -13,4 +13,4 @@ export interface ChartsLabelGradientClasses {
13
13
  }
14
14
  export declare function getLabelGradientUtilityClass(slot: string): string;
15
15
  export declare const labelGradientClasses: ChartsLabelGradientClasses;
16
- export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"root" | "fill" | "mask", string>;
16
+ export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"fill" | "mask" | "root", string>;
@@ -13,4 +13,4 @@ export interface ChartsLabelGradientClasses {
13
13
  }
14
14
  export declare function getLabelGradientUtilityClass(slot: string): string;
15
15
  export declare const labelGradientClasses: ChartsLabelGradientClasses;
16
- export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"root" | "fill" | "mask", string>;
16
+ export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"fill" | "mask" | "root", string>;
@@ -14,4 +14,4 @@ export interface ChartsLabelMarkClasses {
14
14
  fill: string;
15
15
  }
16
16
  export declare const labelMarkClasses: ChartsLabelMarkClasses;
17
- export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"root" | "fill", string>;
17
+ export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"fill" | "root", string>;
@@ -14,4 +14,4 @@ export interface ChartsLabelMarkClasses {
14
14
  fill: string;
15
15
  }
16
16
  export declare const labelMarkClasses: ChartsLabelMarkClasses;
17
- export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"root" | "fill", string>;
17
+ export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"fill" | "root", string>;
@@ -1,3 +1,4 @@
1
+ import type { WithDataAttributes } from '@mui/utils/types';
1
2
  import type { ChartsLegendProps } from "./ChartsLegend.mjs";
2
3
  import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.mjs";
3
4
  import type { ChartsLegendPosition } from "./legend.types.mjs";
@@ -11,7 +12,7 @@ export interface ChartsLegendSlots {
11
12
  legend?: React.JSXElementConstructor<ChartsLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<ContinuousColorLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<PiecewiseColorLegendProps & LegendPropsOverrides>;
12
13
  }
13
14
  export interface ChartsLegendSlotProps {
14
- legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides;
15
+ legend?: WithDataAttributes<Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides>;
15
16
  }
16
17
  export interface ChartsLegendSlotExtension {
17
18
  /**