I'm using Highcharts 11.1.0 in a Svelte application. The app contains multiple charts, and on some our y axis values are measured in percentages, while on others those values are measured in currency.
I've used the `yAxis.labels.formatter` property to concatenate dollar signs or percent signs to these values (see image.) However, I can't figure out how to replicate that formatting in the screenreader description of the y axis range.
I can't find any examples of how to dynamically format the `yAxis.accessibility.rangeDescription` property. I also can't find any examples of how to specifically access the range start and range end values to provide to the `lang.accessibility.axis.yAxisDescriptionSingular` property.
Here's the code I am using to achieve the results in the screenshot below. This range description without units has proven to be confusing in our user testing with screenreader-only users.
Code: Select all
Highcharts.setOptions({
lang: {
accessibility: {
axis: {
yAxisDescriptionSingular: `{ranges[0]}`
}
}
}
})

Thank you so much for your help!