@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.
- package/BarChart/BarChart.js +19 -28
- package/BarChart/BarChart.mjs +19 -28
- package/BarChart/BarElement.js +3 -5
- package/BarChart/BarElement.mjs +3 -5
- package/BarChart/BarLabel/BarLabelPlot.d.mts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.d.ts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.js +2 -3
- package/BarChart/BarLabel/BarLabelPlot.mjs +2 -3
- package/BarChart/BarPlot.d.mts +2 -12
- package/BarChart/BarPlot.d.ts +2 -12
- package/BarChart/BarPlot.js +4 -18
- package/BarChart/BarPlot.mjs +4 -18
- package/BarChart/BatchBarPlot/BatchBarPlot.js +0 -27
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +0 -27
- package/BarChart/IndividualBarPlot.d.mts +1 -2
- package/BarChart/IndividualBarPlot.d.ts +1 -2
- package/BarChart/IndividualBarPlot.js +5 -10
- package/BarChart/IndividualBarPlot.mjs +5 -10
- package/BarChart/seriesConfig/bar/descriptionGetter.d.mts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.d.ts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.js +36 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.mjs +30 -0
- package/BarChart/seriesConfig/index.js +5 -1
- package/BarChart/seriesConfig/index.mjs +5 -1
- package/BarChart/useBarChartProps.js +2 -4
- package/BarChart/useBarChartProps.mjs +2 -4
- package/CHANGELOG.md +107 -1
- package/ChartsContainer/ChartsContainer.js +29 -29
- package/ChartsContainer/ChartsContainer.mjs +29 -29
- package/ChartsLayerContainer/ChartsLayerContainer.js +6 -2
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +7 -2
- package/ChartsSvgLayer/ChartsSvgLayer.js +2 -2
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +12 -3
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +12 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +89 -89
- package/ChartsXAxis/useAxisTicksProps.d.ts +89 -89
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +12 -3
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +12 -3
- package/ChartsYAxis/useAxisTicksProps.d.mts +89 -89
- package/ChartsYAxis/useAxisTicksProps.d.ts +89 -89
- package/Gauge/Gauge.js +0 -4
- package/Gauge/Gauge.mjs +0 -4
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +0 -4
- package/Gauge/GaugeContainer.mjs +0 -4
- package/LineChart/AreaElement.js +5 -1
- package/LineChart/AreaElement.mjs +5 -1
- package/LineChart/CircleMarkElement.js +8 -5
- package/LineChart/CircleMarkElement.mjs +8 -5
- package/LineChart/LineChart.js +21 -19
- package/LineChart/LineChart.mjs +21 -19
- package/LineChart/LineElement.js +5 -1
- package/LineChart/LineElement.mjs +5 -1
- package/LineChart/MarkElement.js +7 -4
- package/LineChart/MarkElement.mjs +7 -4
- package/LineChart/seriesConfig/curveEvaluation.d.mts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.d.ts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.js +134 -0
- package/LineChart/seriesConfig/curveEvaluation.mjs +129 -0
- package/LineChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.js +37 -0
- package/LineChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.mts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.ts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.js +356 -0
- package/LineChart/seriesConfig/getItemAtPosition.mjs +351 -0
- package/LineChart/seriesConfig/index.js +4 -0
- package/LineChart/seriesConfig/index.mjs +4 -0
- package/PieChart/PieArc.js +2 -3
- package/PieChart/PieArc.mjs +2 -3
- package/PieChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.js +26 -0
- package/PieChart/seriesConfig/descriptionGetter.mjs +20 -0
- package/PieChart/seriesConfig/index.js +2 -0
- package/PieChart/seriesConfig/index.mjs +2 -0
- package/RadarChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.js +37 -0
- package/RadarChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/RadarChart/seriesConfig/index.js +2 -0
- package/RadarChart/seriesConfig/index.mjs +2 -0
- package/ScatterChart/ScatterChart.js +18 -18
- package/ScatterChart/ScatterChart.mjs +18 -18
- package/ScatterChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.js +34 -0
- package/ScatterChart/seriesConfig/descriptionGetter.mjs +28 -0
- package/ScatterChart/seriesConfig/index.js +2 -0
- package/ScatterChart/seriesConfig/index.mjs +2 -0
- package/SparkLineChart/SparkLineChart.js +21 -19
- package/SparkLineChart/SparkLineChart.mjs +21 -19
- package/constants/index.js +0 -2
- package/constants/index.mjs +0 -2
- package/hooks/useInteractionItemProps.d.mts +1 -1
- package/hooks/useInteractionItemProps.d.ts +1 -1
- package/hooks/useInteractionItemProps.js +3 -3
- package/hooks/useInteractionItemProps.mjs +3 -3
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +100 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +96 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.mts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.ts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.js +16 -0
- package/internals/components/ChartsAccessibilityProxy/index.mjs +1 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.js +71 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.mjs +66 -0
- package/internals/getChartPoint.js +18 -1
- package/internals/getChartPoint.mjs +18 -1
- package/internals/plugins/corePlugins/corePlugins.d.mts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +22 -7
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +22 -7
- package/internals/plugins/corePlugins/useChartSeries/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.js +12 -0
- package/internals/plugins/corePlugins/useChartSeries/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +1 -8
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +1 -8
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -11
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -11
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.mts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.ts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +19 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +14 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +2 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +2 -0
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.mts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +28 -19
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +28 -18
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.js +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.mjs +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.mts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.ts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.js +318 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +311 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +63 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +62 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +12 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +12 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +28 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +27 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +22 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.mts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.ts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +96 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +91 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.mts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.ts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +36 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +31 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.mts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.ts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +45 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +39 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.mts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +53 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +52 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +16 -40
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +19 -43
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +20 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +20 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +6 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +6 -0
- package/internals/store/useCharts.d.mts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/locales/elGR.d.mts +76 -0
- package/locales/elGR.d.ts +76 -0
- package/locales/elGR.js +89 -0
- package/locales/elGR.mjs +89 -0
- package/locales/enUS.d.mts +76 -0
- package/locales/enUS.d.ts +76 -0
- package/locales/enUS.js +89 -1
- package/locales/enUS.mjs +89 -1
- package/locales/frFR.d.mts +76 -0
- package/locales/frFR.d.ts +76 -0
- package/locales/frFR.js +89 -0
- package/locales/frFR.mjs +89 -0
- package/locales/nbNO.d.mts +76 -0
- package/locales/nbNO.d.ts +76 -0
- package/locales/nbNO.js +89 -0
- package/locales/nbNO.mjs +89 -0
- package/locales/ptBR.d.mts +76 -0
- package/locales/ptBR.d.ts +76 -0
- package/locales/ptBR.js +89 -0
- package/locales/ptBR.mjs +89 -0
- package/locales/ptPT.d.mts +76 -0
- package/locales/ptPT.d.ts +76 -0
- package/locales/ptPT.js +89 -0
- package/locales/ptPT.mjs +89 -0
- package/locales/svSE.d.mts +76 -0
- package/locales/svSE.d.ts +76 -0
- package/locales/svSE.js +89 -0
- package/locales/svSE.mjs +89 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +189 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +189 -0
- package/locales/utils/getChartsLocalization.d.mts +76 -0
- package/locales/utils/getChartsLocalization.d.ts +76 -0
- package/models/axis.d.mts +11 -5
- package/models/axis.d.ts +11 -5
- package/models/seriesType/config.d.mts +29 -0
- package/models/seriesType/config.d.ts +29 -0
- 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;
|