@mui/x-charts 9.0.0-alpha.4 → 9.0.0-beta.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 (242) hide show
  1. package/BarChart/BarChart.js +19 -28
  2. package/BarChart/BarChart.mjs +19 -28
  3. package/BarChart/BarElement.js +3 -5
  4. package/BarChart/BarElement.mjs +3 -5
  5. package/BarChart/BarLabel/BarLabelPlot.d.mts +0 -2
  6. package/BarChart/BarLabel/BarLabelPlot.d.ts +0 -2
  7. package/BarChart/BarLabel/BarLabelPlot.js +2 -3
  8. package/BarChart/BarLabel/BarLabelPlot.mjs +2 -3
  9. package/BarChart/BarPlot.d.mts +2 -12
  10. package/BarChart/BarPlot.d.ts +2 -12
  11. package/BarChart/BarPlot.js +4 -18
  12. package/BarChart/BarPlot.mjs +4 -18
  13. package/BarChart/BatchBarPlot/BatchBarPlot.js +0 -27
  14. package/BarChart/BatchBarPlot/BatchBarPlot.mjs +0 -27
  15. package/BarChart/IndividualBarPlot.d.mts +1 -2
  16. package/BarChart/IndividualBarPlot.d.ts +1 -2
  17. package/BarChart/IndividualBarPlot.js +5 -10
  18. package/BarChart/IndividualBarPlot.mjs +5 -10
  19. package/BarChart/seriesConfig/bar/descriptionGetter.d.mts +3 -0
  20. package/BarChart/seriesConfig/bar/descriptionGetter.d.ts +3 -0
  21. package/BarChart/seriesConfig/bar/descriptionGetter.js +36 -0
  22. package/BarChart/seriesConfig/bar/descriptionGetter.mjs +30 -0
  23. package/BarChart/seriesConfig/index.js +5 -1
  24. package/BarChart/seriesConfig/index.mjs +5 -1
  25. package/BarChart/useBarChartProps.js +2 -4
  26. package/BarChart/useBarChartProps.mjs +2 -4
  27. package/CHANGELOG.md +107 -1
  28. package/ChartsContainer/ChartsContainer.js +29 -29
  29. package/ChartsContainer/ChartsContainer.mjs +29 -29
  30. package/ChartsLayerContainer/ChartsLayerContainer.js +6 -2
  31. package/ChartsLayerContainer/ChartsLayerContainer.mjs +7 -2
  32. package/ChartsSvgLayer/ChartsSvgLayer.js +2 -2
  33. package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
  34. package/ChartsXAxis/ChartsGroupedXAxisTicks.js +12 -3
  35. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +12 -3
  36. package/ChartsXAxis/useAxisTicksProps.d.mts +89 -89
  37. package/ChartsXAxis/useAxisTicksProps.d.ts +89 -89
  38. package/ChartsYAxis/ChartsGroupedYAxisTicks.js +12 -3
  39. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +12 -3
  40. package/ChartsYAxis/useAxisTicksProps.d.mts +89 -89
  41. package/ChartsYAxis/useAxisTicksProps.d.ts +89 -89
  42. package/Gauge/Gauge.js +0 -4
  43. package/Gauge/Gauge.mjs +0 -4
  44. package/Gauge/GaugeContainer.d.mts +1 -1
  45. package/Gauge/GaugeContainer.d.ts +1 -1
  46. package/Gauge/GaugeContainer.js +0 -4
  47. package/Gauge/GaugeContainer.mjs +0 -4
  48. package/LineChart/AreaElement.js +5 -1
  49. package/LineChart/AreaElement.mjs +5 -1
  50. package/LineChart/CircleMarkElement.js +8 -5
  51. package/LineChart/CircleMarkElement.mjs +8 -5
  52. package/LineChart/LineChart.js +21 -19
  53. package/LineChart/LineChart.mjs +21 -19
  54. package/LineChart/LineElement.js +5 -1
  55. package/LineChart/LineElement.mjs +5 -1
  56. package/LineChart/MarkElement.js +7 -4
  57. package/LineChart/MarkElement.mjs +7 -4
  58. package/LineChart/seriesConfig/curveEvaluation.d.mts +11 -0
  59. package/LineChart/seriesConfig/curveEvaluation.d.ts +11 -0
  60. package/LineChart/seriesConfig/curveEvaluation.js +134 -0
  61. package/LineChart/seriesConfig/curveEvaluation.mjs +129 -0
  62. package/LineChart/seriesConfig/descriptionGetter.d.mts +3 -0
  63. package/LineChart/seriesConfig/descriptionGetter.d.ts +3 -0
  64. package/LineChart/seriesConfig/descriptionGetter.js +37 -0
  65. package/LineChart/seriesConfig/descriptionGetter.mjs +31 -0
  66. package/LineChart/seriesConfig/getItemAtPosition.d.mts +7 -0
  67. package/LineChart/seriesConfig/getItemAtPosition.d.ts +7 -0
  68. package/LineChart/seriesConfig/getItemAtPosition.js +356 -0
  69. package/LineChart/seriesConfig/getItemAtPosition.mjs +351 -0
  70. package/LineChart/seriesConfig/index.js +4 -0
  71. package/LineChart/seriesConfig/index.mjs +4 -0
  72. package/PieChart/PieArc.js +2 -3
  73. package/PieChart/PieArc.mjs +2 -3
  74. package/PieChart/seriesConfig/descriptionGetter.d.mts +3 -0
  75. package/PieChart/seriesConfig/descriptionGetter.d.ts +3 -0
  76. package/PieChart/seriesConfig/descriptionGetter.js +26 -0
  77. package/PieChart/seriesConfig/descriptionGetter.mjs +20 -0
  78. package/PieChart/seriesConfig/index.js +2 -0
  79. package/PieChart/seriesConfig/index.mjs +2 -0
  80. package/RadarChart/seriesConfig/descriptionGetter.d.mts +3 -0
  81. package/RadarChart/seriesConfig/descriptionGetter.d.ts +3 -0
  82. package/RadarChart/seriesConfig/descriptionGetter.js +37 -0
  83. package/RadarChart/seriesConfig/descriptionGetter.mjs +31 -0
  84. package/RadarChart/seriesConfig/index.js +2 -0
  85. package/RadarChart/seriesConfig/index.mjs +2 -0
  86. package/ScatterChart/ScatterChart.js +18 -18
  87. package/ScatterChart/ScatterChart.mjs +18 -18
  88. package/ScatterChart/seriesConfig/descriptionGetter.d.mts +3 -0
  89. package/ScatterChart/seriesConfig/descriptionGetter.d.ts +3 -0
  90. package/ScatterChart/seriesConfig/descriptionGetter.js +34 -0
  91. package/ScatterChart/seriesConfig/descriptionGetter.mjs +28 -0
  92. package/ScatterChart/seriesConfig/index.js +2 -0
  93. package/ScatterChart/seriesConfig/index.mjs +2 -0
  94. package/SparkLineChart/SparkLineChart.js +21 -19
  95. package/SparkLineChart/SparkLineChart.mjs +21 -19
  96. package/constants/index.js +0 -2
  97. package/constants/index.mjs +0 -2
  98. package/hooks/useInteractionItemProps.d.mts +1 -1
  99. package/hooks/useInteractionItemProps.d.ts +1 -1
  100. package/hooks/useInteractionItemProps.js +3 -3
  101. package/hooks/useInteractionItemProps.mjs +3 -3
  102. package/index.js +1 -1
  103. package/index.mjs +1 -1
  104. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +5 -0
  105. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +5 -0
  106. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +100 -0
  107. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +96 -0
  108. package/internals/components/ChartsAccessibilityProxy/index.d.mts +1 -0
  109. package/internals/components/ChartsAccessibilityProxy/index.d.ts +1 -0
  110. package/internals/components/ChartsAccessibilityProxy/index.js +16 -0
  111. package/internals/components/ChartsAccessibilityProxy/index.mjs +1 -0
  112. package/internals/components/ChartsAccessibilityProxy/useDescription.d.mts +5 -0
  113. package/internals/components/ChartsAccessibilityProxy/useDescription.d.ts +5 -0
  114. package/internals/components/ChartsAccessibilityProxy/useDescription.js +71 -0
  115. package/internals/components/ChartsAccessibilityProxy/useDescription.mjs +66 -0
  116. package/internals/getChartPoint.js +18 -1
  117. package/internals/getChartPoint.mjs +18 -1
  118. package/internals/plugins/corePlugins/corePlugins.d.mts +2 -2
  119. package/internals/plugins/corePlugins/corePlugins.d.ts +2 -2
  120. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.mts +2 -1
  121. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +2 -1
  122. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +2 -1
  123. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -1
  124. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +22 -7
  125. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +22 -7
  126. package/internals/plugins/corePlugins/useChartSeries/index.d.mts +2 -1
  127. package/internals/plugins/corePlugins/useChartSeries/index.d.ts +2 -1
  128. package/internals/plugins/corePlugins/useChartSeries/index.js +12 -0
  129. package/internals/plugins/corePlugins/useChartSeries/index.mjs +2 -1
  130. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +1 -8
  131. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +1 -8
  132. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -11
  133. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -11
  134. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.mts +8 -0
  135. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.ts +8 -0
  136. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +19 -0
  137. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +14 -0
  138. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.mts +5 -0
  139. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.ts +5 -0
  140. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.js +5 -0
  141. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.mjs +1 -0
  142. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -0
  143. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -0
  144. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
  145. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -0
  146. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +2 -0
  147. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +2 -0
  148. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.mts +4 -10
  149. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -10
  150. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +28 -19
  151. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +28 -18
  152. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.mts +5 -0
  153. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.ts +5 -0
  154. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.js +11 -0
  155. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.mjs +5 -0
  156. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.mts +33 -0
  157. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.ts +33 -0
  158. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.js +318 -0
  159. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +311 -0
  160. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -1
  161. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -1
  162. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +63 -8
  163. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +62 -8
  164. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +12 -4
  165. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +12 -4
  166. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +12 -2
  167. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +12 -2
  168. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +28 -0
  169. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +27 -0
  170. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +3 -1
  171. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +3 -1
  172. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +22 -2
  173. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +3 -1
  174. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.mts +30 -0
  175. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.ts +30 -0
  176. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +96 -0
  177. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +91 -0
  178. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.mts +16 -0
  179. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.ts +16 -0
  180. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +36 -0
  181. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +31 -0
  182. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.mts +15 -0
  183. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.ts +15 -0
  184. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +45 -0
  185. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +39 -0
  186. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.mts +11 -0
  187. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +11 -0
  188. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +53 -11
  189. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +52 -11
  190. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +4 -9
  191. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +4 -9
  192. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +16 -40
  193. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +19 -43
  194. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +20 -2
  195. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +20 -2
  196. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +36 -30
  197. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +36 -30
  198. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +8 -0
  199. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +8 -0
  200. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +9 -2
  201. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +9 -2
  202. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +6 -0
  203. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +6 -0
  204. package/internals/store/useCharts.d.mts +1 -1
  205. package/internals/store/useCharts.d.ts +1 -1
  206. package/locales/elGR.d.mts +76 -0
  207. package/locales/elGR.d.ts +76 -0
  208. package/locales/elGR.js +89 -0
  209. package/locales/elGR.mjs +89 -0
  210. package/locales/enUS.d.mts +76 -0
  211. package/locales/enUS.d.ts +76 -0
  212. package/locales/enUS.js +89 -1
  213. package/locales/enUS.mjs +89 -1
  214. package/locales/frFR.d.mts +76 -0
  215. package/locales/frFR.d.ts +76 -0
  216. package/locales/frFR.js +89 -0
  217. package/locales/frFR.mjs +89 -0
  218. package/locales/nbNO.d.mts +76 -0
  219. package/locales/nbNO.d.ts +76 -0
  220. package/locales/nbNO.js +89 -0
  221. package/locales/nbNO.mjs +89 -0
  222. package/locales/ptBR.d.mts +76 -0
  223. package/locales/ptBR.d.ts +76 -0
  224. package/locales/ptBR.js +89 -0
  225. package/locales/ptBR.mjs +89 -0
  226. package/locales/ptPT.d.mts +76 -0
  227. package/locales/ptPT.d.ts +76 -0
  228. package/locales/ptPT.js +89 -0
  229. package/locales/ptPT.mjs +89 -0
  230. package/locales/svSE.d.mts +76 -0
  231. package/locales/svSE.d.ts +76 -0
  232. package/locales/svSE.js +89 -0
  233. package/locales/svSE.mjs +89 -0
  234. package/locales/utils/chartsLocaleTextApi.d.mts +189 -0
  235. package/locales/utils/chartsLocaleTextApi.d.ts +189 -0
  236. package/locales/utils/getChartsLocalization.d.mts +76 -0
  237. package/locales/utils/getChartsLocalization.d.ts +76 -0
  238. package/models/axis.d.mts +11 -5
  239. package/models/axis.d.ts +11 -5
  240. package/models/seriesType/config.d.mts +29 -0
  241. package/models/seriesType/config.d.ts +29 -0
  242. package/package.json +85 -85
package/locales/svSE.d.ts CHANGED
@@ -112,6 +112,82 @@ export declare const svSE: {
112
112
  high?: string | undefined;
113
113
  low?: string | undefined;
114
114
  close?: string | undefined;
115
+ a11yNoValue?: string | undefined;
116
+ a11yConnector?: string | undefined;
117
+ barDescription?: ((params: {
118
+ value: number | null;
119
+ formattedValue: string;
120
+ categoryValue: string | number | null;
121
+ formattedCategoryValue: string;
122
+ seriesLabel?: string;
123
+ }) => string) | undefined;
124
+ lineDescription?: ((params: {
125
+ x: number | null;
126
+ y: number | null;
127
+ formattedXValue: string;
128
+ formattedYValue: string;
129
+ seriesLabel?: string;
130
+ }) => string) | undefined;
131
+ scatterDescription?: ((params: {
132
+ x: number | null;
133
+ y: number | null;
134
+ formattedXValue: string;
135
+ formattedYValue: string;
136
+ seriesLabel?: string;
137
+ }) => string) | undefined;
138
+ pieDescription?: ((params: {
139
+ value: number | null;
140
+ totalValue: number;
141
+ formattedValue: string;
142
+ seriesLabel?: string;
143
+ }) => string) | undefined;
144
+ radarDescription?: ((params: {
145
+ value: number | null;
146
+ formattedValue: string;
147
+ categoryValue: string | number | null;
148
+ formattedCategoryValue: string;
149
+ seriesLabel?: string;
150
+ }) => string) | undefined;
151
+ funnelDescription?: ((params: {
152
+ value: number | null;
153
+ formattedValue: string;
154
+ seriesLabel?: string;
155
+ }) => string) | undefined;
156
+ heatmapDescription?: ((params: {
157
+ x: number | string | null;
158
+ y: number | string | null;
159
+ value: number | null;
160
+ formattedValue: string;
161
+ formattedXValue: string;
162
+ formattedYValue: string;
163
+ }) => string) | undefined;
164
+ sankeyNodeDescription?: ((params: {
165
+ value: number | null;
166
+ formattedValue: string;
167
+ nodeLabel: string;
168
+ }) => string) | undefined;
169
+ sankeyLinkDescription?: ((params: {
170
+ value: number | null;
171
+ formattedValue: string;
172
+ sourceLabel: string;
173
+ targetLabel: string;
174
+ }) => string) | undefined;
175
+ rangeBarDescription?: ((params: {
176
+ value: [number, number] | null;
177
+ formattedValue: string;
178
+ categoryValue: string | number | null;
179
+ formattedCategoryValue: string;
180
+ seriesLabel?: string;
181
+ }) => string) | undefined;
182
+ ohlcDescription?: ((params: {
183
+ open: number | null;
184
+ high: number | null;
185
+ low: number | null;
186
+ close: number | null;
187
+ date: Date | null;
188
+ formattedDate: string;
189
+ seriesLabel?: string;
190
+ }) => string) | undefined;
115
191
  };
116
192
  };
117
193
  };
package/locales/svSE.js CHANGED
@@ -123,5 +123,94 @@ const svSELocaleText = exports.svSELocaleText = {
123
123
  // high: 'High',
124
124
  // low: 'Low',
125
125
  // close: 'Close',
126
+
127
+ // Accessibility descriptions
128
+ // a11yNoValue: 'no value',
129
+ // a11yConnector: '; ',
130
+ // barDescription: function barDescription({
131
+ // value,
132
+ // formattedValue,
133
+ // formattedCategoryValue,
134
+ // seriesLabel
135
+ // }) {
136
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
137
+ // },
138
+ // lineDescription: function lineDescription({
139
+ // y,
140
+ // formattedXValue,
141
+ // formattedYValue,
142
+ // seriesLabel
143
+ // }) {
144
+ // return [formattedXValue, seriesLabel, y === null ? this.a11yNoValue : formattedYValue].filter(Boolean).join(this.a11yConnector);
145
+ // },
146
+ // scatterDescription: function scatterDescription({
147
+ // formattedXValue,
148
+ // formattedYValue,
149
+ // seriesLabel
150
+ // }) {
151
+ // return [seriesLabel, formattedXValue, formattedYValue].filter(Boolean).join(this.a11yConnector);
152
+ // },
153
+ // pieDescription: function pieDescription({
154
+ // value,
155
+ // formattedValue,
156
+ // seriesLabel
157
+ // }) {
158
+ // return [seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
159
+ // },
160
+ // radarDescription: function radarDescription({
161
+ // value,
162
+ // formattedValue,
163
+ // formattedCategoryValue,
164
+ // seriesLabel
165
+ // }) {
166
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
167
+ // },
168
+ // funnelDescription: function funnelDescription({
169
+ // value,
170
+ // formattedValue,
171
+ // seriesLabel
172
+ // }) {
173
+ // return [seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
174
+ // },
175
+ // heatmapDescription: function heatmapDescription({
176
+ // value,
177
+ // formattedValue,
178
+ // formattedXValue,
179
+ // formattedYValue
180
+ // }) {
181
+ // return [formattedXValue, formattedYValue, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
182
+ // },
183
+ // sankeyNodeDescription: function sankeyNodeDescription({
184
+ // formattedValue,
185
+ // nodeLabel
186
+ // }) {
187
+ // return [nodeLabel, formattedValue].filter(Boolean).join(this.a11yConnector);
188
+ // },
189
+ // sankeyLinkDescription: function sankeyLinkDescription({
190
+ // formattedValue,
191
+ // sourceLabel,
192
+ // targetLabel
193
+ // }) {
194
+ // return [sourceLabel && targetLabel ? `${sourceLabel} to ${targetLabel}` : sourceLabel ?? targetLabel, formattedValue].filter(Boolean).join(this.a11yConnector);
195
+ // },
196
+ // rangeBarDescription: function rangeBarDescription({
197
+ // value,
198
+ // formattedValue,
199
+ // formattedCategoryValue,
200
+ // seriesLabel
201
+ // }) {
202
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
203
+ // },
204
+ // ohlcDescription: function ohlcDescription({
205
+ // open,
206
+ // high,
207
+ // low,
208
+ // close,
209
+ // formattedDate,
210
+ // seriesLabel
211
+ // }) {
212
+ // const hasValues = open !== null && high !== null && low !== null && close !== null;
213
+ // return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
214
+ // },
126
215
  };
127
216
  const svSE = exports.svSE = (0, _getChartsLocalization.getChartsLocalization)(svSELocaleText);
package/locales/svSE.mjs CHANGED
@@ -117,5 +117,94 @@ export const svSELocaleText = {
117
117
  // high: 'High',
118
118
  // low: 'Low',
119
119
  // close: 'Close',
120
+
121
+ // Accessibility descriptions
122
+ // a11yNoValue: 'no value',
123
+ // a11yConnector: '; ',
124
+ // barDescription: function barDescription({
125
+ // value,
126
+ // formattedValue,
127
+ // formattedCategoryValue,
128
+ // seriesLabel
129
+ // }) {
130
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
131
+ // },
132
+ // lineDescription: function lineDescription({
133
+ // y,
134
+ // formattedXValue,
135
+ // formattedYValue,
136
+ // seriesLabel
137
+ // }) {
138
+ // return [formattedXValue, seriesLabel, y === null ? this.a11yNoValue : formattedYValue].filter(Boolean).join(this.a11yConnector);
139
+ // },
140
+ // scatterDescription: function scatterDescription({
141
+ // formattedXValue,
142
+ // formattedYValue,
143
+ // seriesLabel
144
+ // }) {
145
+ // return [seriesLabel, formattedXValue, formattedYValue].filter(Boolean).join(this.a11yConnector);
146
+ // },
147
+ // pieDescription: function pieDescription({
148
+ // value,
149
+ // formattedValue,
150
+ // seriesLabel
151
+ // }) {
152
+ // return [seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
153
+ // },
154
+ // radarDescription: function radarDescription({
155
+ // value,
156
+ // formattedValue,
157
+ // formattedCategoryValue,
158
+ // seriesLabel
159
+ // }) {
160
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
161
+ // },
162
+ // funnelDescription: function funnelDescription({
163
+ // value,
164
+ // formattedValue,
165
+ // seriesLabel
166
+ // }) {
167
+ // return [seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
168
+ // },
169
+ // heatmapDescription: function heatmapDescription({
170
+ // value,
171
+ // formattedValue,
172
+ // formattedXValue,
173
+ // formattedYValue
174
+ // }) {
175
+ // return [formattedXValue, formattedYValue, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
176
+ // },
177
+ // sankeyNodeDescription: function sankeyNodeDescription({
178
+ // formattedValue,
179
+ // nodeLabel
180
+ // }) {
181
+ // return [nodeLabel, formattedValue].filter(Boolean).join(this.a11yConnector);
182
+ // },
183
+ // sankeyLinkDescription: function sankeyLinkDescription({
184
+ // formattedValue,
185
+ // sourceLabel,
186
+ // targetLabel
187
+ // }) {
188
+ // return [sourceLabel && targetLabel ? `${sourceLabel} to ${targetLabel}` : sourceLabel ?? targetLabel, formattedValue].filter(Boolean).join(this.a11yConnector);
189
+ // },
190
+ // rangeBarDescription: function rangeBarDescription({
191
+ // value,
192
+ // formattedValue,
193
+ // formattedCategoryValue,
194
+ // seriesLabel
195
+ // }) {
196
+ // return [formattedCategoryValue, seriesLabel, value === null ? this.a11yNoValue : formattedValue].filter(Boolean).join(this.a11yConnector);
197
+ // },
198
+ // ohlcDescription: function ohlcDescription({
199
+ // open,
200
+ // high,
201
+ // low,
202
+ // close,
203
+ // formattedDate,
204
+ // seriesLabel
205
+ // }) {
206
+ // const hasValues = open !== null && high !== null && low !== null && close !== null;
207
+ // return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
208
+ // },
120
209
  };
121
210
  export const svSE = getChartsLocalization(svSELocaleText);
@@ -432,5 +432,194 @@ export interface ChartsLocaleText {
432
432
  * Label for the "Close" value in the context of an OHLC/Candlestick chart.
433
433
  */
434
434
  close: string;
435
+ /**
436
+ * The description functions return a string that describes the chart element for screen readers.
437
+ */
438
+ a11yNoValue: string;
439
+ /**
440
+ * The string used to merge description values.
441
+ */
442
+ a11yConnector: string;
443
+ /**
444
+ * The description of a bar series item for accessibility purpose.
445
+ * @param {object} params - The parameters for the description getter.
446
+ * @param {number|null} params.value - The value of the bar item.
447
+ * @param {string} params.formattedValue - The formatted value of the bar item, as it appears in tooltips or labels.
448
+ * @param {string|number|null} params.categoryValue - The category value associated with the bar item.
449
+ * @param {string} params.formattedCategoryValue - The formatted category value, as it appears in tooltips or labels.
450
+ * @param {string} [params.seriesLabel] - An optional label for the series.
451
+ * @returns {string} The localized description for the bar item.
452
+ */
453
+ barDescription: (params: {
454
+ value: number | null;
455
+ formattedValue: string;
456
+ categoryValue: string | number | null;
457
+ formattedCategoryValue: string;
458
+ seriesLabel?: string;
459
+ }) => string;
460
+ /**
461
+ * The description of a line series item for accessibility purpose.
462
+ * @param {object} params - The parameters for the description getter.
463
+ * @param {number|null} params.x - The x value of the line item.
464
+ * @param {number|null} params.y - The y value of the line item.
465
+ * @param {string} params.formattedXValue - The formatted x value of the line item, as it appears in tooltips.
466
+ * @param {string} params.formattedYValue - The formatted y value of the line item, as it appears in tooltips.
467
+ * @param {string} [params.seriesLabel] - An optional label for the series.
468
+ * @returns {string} The localized description for the line item.
469
+ */
470
+ lineDescription: (params: {
471
+ x: number | null;
472
+ y: number | null;
473
+ formattedXValue: string;
474
+ formattedYValue: string;
475
+ seriesLabel?: string;
476
+ }) => string;
477
+ /**
478
+ * The description of a scatter series item for accessibility purpose.
479
+ * @param {object} params - The parameters for the description getter.
480
+ * @param {number|null} params.x - The x value of the scatter item.
481
+ * @param {number|null} params.y - The y value of the scatter item.
482
+ * @param {string} params.formattedXValue - The formatted x value of the scatter item, as it appears in tooltips.
483
+ * @param {string} params.formattedYValue - The formatted y value of the scatter item, as it appears in tooltips.
484
+ * @param {string} params.seriesLabel - The series label.
485
+ * @returns {string} The localized description for the scatter item.
486
+ */
487
+ scatterDescription: (params: {
488
+ x: number | null;
489
+ y: number | null;
490
+ formattedXValue: string;
491
+ formattedYValue: string;
492
+ seriesLabel?: string;
493
+ }) => string;
494
+ /**
495
+ * The description of a pie series item for accessibility purpose.
496
+ * @param {object} params - The parameters for the description getter.
497
+ * @param {number|null} params.value - The value of the pie item.
498
+ * @param {number} params.totalValue - The total value of all pie items.
499
+ * @param {string} params.formattedValue - The formatted value of the pie item, as it appears in tooltips or labels.
500
+ * @param {string} [params.seriesLabel] - An optional label for the pie item.
501
+ * @returns {string} The localized description for the pie item.
502
+ */
503
+ pieDescription: (params: {
504
+ value: number | null;
505
+ totalValue: number;
506
+ formattedValue: string;
507
+ seriesLabel?: string;
508
+ }) => string;
509
+ /**
510
+ * The description of a radar series item for accessibility purpose.
511
+ * @param {object} params - The parameters for the description getter.
512
+ * @param {number|null} params.value - The value of the radar item.
513
+ * @param {string} params.formattedValue - The formatted value of the radar item.
514
+ * @param {string|number|null} params.categoryValue - The category value associated with the radar item.
515
+ * @param {string} params.formattedCategoryValue - The formatted category value.
516
+ * @param {string} [params.seriesLabel] - An optional label for the series.
517
+ * @returns {string} The localized description for the radar item.
518
+ */
519
+ radarDescription: (params: {
520
+ value: number | null;
521
+ formattedValue: string;
522
+ categoryValue: string | number | null;
523
+ formattedCategoryValue: string;
524
+ seriesLabel?: string;
525
+ }) => string;
526
+ /**
527
+ * The description of a funnel series item for accessibility purpose.
528
+ * @param {object} params - The parameters for the description getter.
529
+ * @param {number|null} params.value - The value of the funnel item.
530
+ * @param {string} params.formattedValue - The formatted value of the funnel item.
531
+ * @param {string} [params.seriesLabel] - An optional label for the funnel item.
532
+ * @returns {string} The localized description for the funnel item.
533
+ */
534
+ funnelDescription: (params: {
535
+ value: number | null;
536
+ formattedValue: string;
537
+ seriesLabel?: string;
538
+ }) => string;
539
+ /**
540
+ * The description of a heatmap cell for accessibility purpose.
541
+ * @param {object} params - The parameters for the description getter.
542
+ * @param {number|null} params.value - The value of the heatmap cell.
543
+ * @param {number|string|null} params.x - The x value of the heatmap cell.
544
+ * @param {number|string|null} params.y - The y value of the heatmap cell.
545
+ * @param {string} params.formattedValue - The formatted value of the heatmap cell.
546
+ * @param {string} params.formattedXValue - The formatted x axis value.
547
+ * @param {string} params.formattedYValue - The formatted y axis value.
548
+ * @returns {string} The localized description for the heatmap cell.
549
+ */
550
+ heatmapDescription: (params: {
551
+ x: number | string | null;
552
+ y: number | string | null;
553
+ value: number | null;
554
+ formattedValue: string;
555
+ formattedXValue: string;
556
+ formattedYValue: string;
557
+ }) => string;
558
+ /**
559
+ * The description of a sankey node for accessibility purpose.
560
+ * @param {object} params - The parameters for the description getter.
561
+ * @param {number|null} params.value - The value of the sankey node. Corresponds to the sum of the incoming links values.
562
+ * @param {string} params.formattedValue - The formatted value of the sankey node.
563
+ * @param {string} params.nodeLabel - The label for the node.
564
+ * @returns {string} The localized description for the sankey node.
565
+ */
566
+ sankeyNodeDescription: (params: {
567
+ value: number | null;
568
+ formattedValue: string;
569
+ nodeLabel: string;
570
+ }) => string;
571
+ /**
572
+ * The description of a sankey link for accessibility purpose.
573
+ * @param {object} params - The parameters for the description getter.
574
+ * @param {number|null} params.value - The value of the sankey link.
575
+ * @param {string} params.formattedValue - The formatted value of the sankey link.
576
+ * @param {string} params.sourceLabel - The label for the source node.
577
+ * @param {string} params.targetLabel - The label for the target node.
578
+ * @returns {string} The localized description for the sankey link.
579
+ */
580
+ sankeyLinkDescription: (params: {
581
+ value: number | null;
582
+ formattedValue: string;
583
+ sourceLabel: string;
584
+ targetLabel: string;
585
+ }) => string;
586
+ /**
587
+ * The description of a range bar series item for accessibility purpose.
588
+ * @param {object} params - The parameters for the description getter.
589
+ * @param {[number, number]|null} params.value - The value of the range bar item.
590
+ * @param {string} params.formattedValue - The formatted value of the range bar item.
591
+ * @param {string|number|null} params.categoryValue - The category value associated with the range bar item.
592
+ * @param {string} params.formattedCategoryValue - The formatted category value.
593
+ * @param {string} [params.seriesLabel] - An optional label for the series.
594
+ * @returns {string} The localized description for the range bar item.
595
+ */
596
+ rangeBarDescription: (params: {
597
+ value: [number, number] | null;
598
+ formattedValue: string;
599
+ categoryValue: string | number | null;
600
+ formattedCategoryValue: string;
601
+ seriesLabel?: string;
602
+ }) => string;
603
+ /**
604
+ * The description of an OHLC/Candlestick series item for accessibility purpose.
605
+ * @param {object} params - The parameters for the description getter.
606
+ * @param {number|null} params.open - The open value.
607
+ * @param {number|null} params.high - The high value.
608
+ * @param {number|null} params.low - The low value.
609
+ * @param {number|null} params.close - The close value.
610
+ * @param {Date|null} params.date - The date associated to the candle value.
611
+ * @param {string} params.formattedDate - The formatted date value.
612
+ * @param {string} [params.seriesLabel] - An optional label for the series.
613
+ * @returns {string} The localized description for the OHLC item.
614
+ */
615
+ ohlcDescription: (params: {
616
+ open: number | null;
617
+ high: number | null;
618
+ low: number | null;
619
+ close: number | null;
620
+ date: Date | null;
621
+ formattedDate: string;
622
+ seriesLabel?: string;
623
+ }) => string;
435
624
  }
436
625
  export type ChartsTranslationKeys = keyof ChartsLocaleText;
@@ -432,5 +432,194 @@ export interface ChartsLocaleText {
432
432
  * Label for the "Close" value in the context of an OHLC/Candlestick chart.
433
433
  */
434
434
  close: string;
435
+ /**
436
+ * The description functions return a string that describes the chart element for screen readers.
437
+ */
438
+ a11yNoValue: string;
439
+ /**
440
+ * The string used to merge description values.
441
+ */
442
+ a11yConnector: string;
443
+ /**
444
+ * The description of a bar series item for accessibility purpose.
445
+ * @param {object} params - The parameters for the description getter.
446
+ * @param {number|null} params.value - The value of the bar item.
447
+ * @param {string} params.formattedValue - The formatted value of the bar item, as it appears in tooltips or labels.
448
+ * @param {string|number|null} params.categoryValue - The category value associated with the bar item.
449
+ * @param {string} params.formattedCategoryValue - The formatted category value, as it appears in tooltips or labels.
450
+ * @param {string} [params.seriesLabel] - An optional label for the series.
451
+ * @returns {string} The localized description for the bar item.
452
+ */
453
+ barDescription: (params: {
454
+ value: number | null;
455
+ formattedValue: string;
456
+ categoryValue: string | number | null;
457
+ formattedCategoryValue: string;
458
+ seriesLabel?: string;
459
+ }) => string;
460
+ /**
461
+ * The description of a line series item for accessibility purpose.
462
+ * @param {object} params - The parameters for the description getter.
463
+ * @param {number|null} params.x - The x value of the line item.
464
+ * @param {number|null} params.y - The y value of the line item.
465
+ * @param {string} params.formattedXValue - The formatted x value of the line item, as it appears in tooltips.
466
+ * @param {string} params.formattedYValue - The formatted y value of the line item, as it appears in tooltips.
467
+ * @param {string} [params.seriesLabel] - An optional label for the series.
468
+ * @returns {string} The localized description for the line item.
469
+ */
470
+ lineDescription: (params: {
471
+ x: number | null;
472
+ y: number | null;
473
+ formattedXValue: string;
474
+ formattedYValue: string;
475
+ seriesLabel?: string;
476
+ }) => string;
477
+ /**
478
+ * The description of a scatter series item for accessibility purpose.
479
+ * @param {object} params - The parameters for the description getter.
480
+ * @param {number|null} params.x - The x value of the scatter item.
481
+ * @param {number|null} params.y - The y value of the scatter item.
482
+ * @param {string} params.formattedXValue - The formatted x value of the scatter item, as it appears in tooltips.
483
+ * @param {string} params.formattedYValue - The formatted y value of the scatter item, as it appears in tooltips.
484
+ * @param {string} params.seriesLabel - The series label.
485
+ * @returns {string} The localized description for the scatter item.
486
+ */
487
+ scatterDescription: (params: {
488
+ x: number | null;
489
+ y: number | null;
490
+ formattedXValue: string;
491
+ formattedYValue: string;
492
+ seriesLabel?: string;
493
+ }) => string;
494
+ /**
495
+ * The description of a pie series item for accessibility purpose.
496
+ * @param {object} params - The parameters for the description getter.
497
+ * @param {number|null} params.value - The value of the pie item.
498
+ * @param {number} params.totalValue - The total value of all pie items.
499
+ * @param {string} params.formattedValue - The formatted value of the pie item, as it appears in tooltips or labels.
500
+ * @param {string} [params.seriesLabel] - An optional label for the pie item.
501
+ * @returns {string} The localized description for the pie item.
502
+ */
503
+ pieDescription: (params: {
504
+ value: number | null;
505
+ totalValue: number;
506
+ formattedValue: string;
507
+ seriesLabel?: string;
508
+ }) => string;
509
+ /**
510
+ * The description of a radar series item for accessibility purpose.
511
+ * @param {object} params - The parameters for the description getter.
512
+ * @param {number|null} params.value - The value of the radar item.
513
+ * @param {string} params.formattedValue - The formatted value of the radar item.
514
+ * @param {string|number|null} params.categoryValue - The category value associated with the radar item.
515
+ * @param {string} params.formattedCategoryValue - The formatted category value.
516
+ * @param {string} [params.seriesLabel] - An optional label for the series.
517
+ * @returns {string} The localized description for the radar item.
518
+ */
519
+ radarDescription: (params: {
520
+ value: number | null;
521
+ formattedValue: string;
522
+ categoryValue: string | number | null;
523
+ formattedCategoryValue: string;
524
+ seriesLabel?: string;
525
+ }) => string;
526
+ /**
527
+ * The description of a funnel series item for accessibility purpose.
528
+ * @param {object} params - The parameters for the description getter.
529
+ * @param {number|null} params.value - The value of the funnel item.
530
+ * @param {string} params.formattedValue - The formatted value of the funnel item.
531
+ * @param {string} [params.seriesLabel] - An optional label for the funnel item.
532
+ * @returns {string} The localized description for the funnel item.
533
+ */
534
+ funnelDescription: (params: {
535
+ value: number | null;
536
+ formattedValue: string;
537
+ seriesLabel?: string;
538
+ }) => string;
539
+ /**
540
+ * The description of a heatmap cell for accessibility purpose.
541
+ * @param {object} params - The parameters for the description getter.
542
+ * @param {number|null} params.value - The value of the heatmap cell.
543
+ * @param {number|string|null} params.x - The x value of the heatmap cell.
544
+ * @param {number|string|null} params.y - The y value of the heatmap cell.
545
+ * @param {string} params.formattedValue - The formatted value of the heatmap cell.
546
+ * @param {string} params.formattedXValue - The formatted x axis value.
547
+ * @param {string} params.formattedYValue - The formatted y axis value.
548
+ * @returns {string} The localized description for the heatmap cell.
549
+ */
550
+ heatmapDescription: (params: {
551
+ x: number | string | null;
552
+ y: number | string | null;
553
+ value: number | null;
554
+ formattedValue: string;
555
+ formattedXValue: string;
556
+ formattedYValue: string;
557
+ }) => string;
558
+ /**
559
+ * The description of a sankey node for accessibility purpose.
560
+ * @param {object} params - The parameters for the description getter.
561
+ * @param {number|null} params.value - The value of the sankey node. Corresponds to the sum of the incoming links values.
562
+ * @param {string} params.formattedValue - The formatted value of the sankey node.
563
+ * @param {string} params.nodeLabel - The label for the node.
564
+ * @returns {string} The localized description for the sankey node.
565
+ */
566
+ sankeyNodeDescription: (params: {
567
+ value: number | null;
568
+ formattedValue: string;
569
+ nodeLabel: string;
570
+ }) => string;
571
+ /**
572
+ * The description of a sankey link for accessibility purpose.
573
+ * @param {object} params - The parameters for the description getter.
574
+ * @param {number|null} params.value - The value of the sankey link.
575
+ * @param {string} params.formattedValue - The formatted value of the sankey link.
576
+ * @param {string} params.sourceLabel - The label for the source node.
577
+ * @param {string} params.targetLabel - The label for the target node.
578
+ * @returns {string} The localized description for the sankey link.
579
+ */
580
+ sankeyLinkDescription: (params: {
581
+ value: number | null;
582
+ formattedValue: string;
583
+ sourceLabel: string;
584
+ targetLabel: string;
585
+ }) => string;
586
+ /**
587
+ * The description of a range bar series item for accessibility purpose.
588
+ * @param {object} params - The parameters for the description getter.
589
+ * @param {[number, number]|null} params.value - The value of the range bar item.
590
+ * @param {string} params.formattedValue - The formatted value of the range bar item.
591
+ * @param {string|number|null} params.categoryValue - The category value associated with the range bar item.
592
+ * @param {string} params.formattedCategoryValue - The formatted category value.
593
+ * @param {string} [params.seriesLabel] - An optional label for the series.
594
+ * @returns {string} The localized description for the range bar item.
595
+ */
596
+ rangeBarDescription: (params: {
597
+ value: [number, number] | null;
598
+ formattedValue: string;
599
+ categoryValue: string | number | null;
600
+ formattedCategoryValue: string;
601
+ seriesLabel?: string;
602
+ }) => string;
603
+ /**
604
+ * The description of an OHLC/Candlestick series item for accessibility purpose.
605
+ * @param {object} params - The parameters for the description getter.
606
+ * @param {number|null} params.open - The open value.
607
+ * @param {number|null} params.high - The high value.
608
+ * @param {number|null} params.low - The low value.
609
+ * @param {number|null} params.close - The close value.
610
+ * @param {Date|null} params.date - The date associated to the candle value.
611
+ * @param {string} params.formattedDate - The formatted date value.
612
+ * @param {string} [params.seriesLabel] - An optional label for the series.
613
+ * @returns {string} The localized description for the OHLC item.
614
+ */
615
+ ohlcDescription: (params: {
616
+ open: number | null;
617
+ high: number | null;
618
+ low: number | null;
619
+ close: number | null;
620
+ date: Date | null;
621
+ formattedDate: string;
622
+ seriesLabel?: string;
623
+ }) => string;
435
624
  }
436
625
  export type ChartsTranslationKeys = keyof ChartsLocaleText;