У меня есть эта ошибка в консоли:
Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.
Не могу найти в документации, где Set the "accessibility.enabled" option to false
.
Это вариант, который я передаю компоненту:
const optionNUsersPerService = {
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie'
},
title: {
text: 'Utenti per servizio'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
accessibility: {
point: {
valueSuffix: '%'
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
}
}
},
series: [{
name: 'Utenti',
colorByPoint: true,
data: getDataUsersPerService(props.items)
}]
}
А это компонент:
return (
<HighchartsReact
highcharts = {Highcharts}
options = {currentOptions}
immutable = {true}
callback = {props.callback}
/>
);
🤔 А знаете ли вы, что...
JavaScript активно развивается, и новые версии языка регулярно включают новые функции и улучшения.
Предупреждение было добавлено начиная с версии Highcharts v10.1.0 (2022-04-29).
Список изменений: https://www.highcharts.com/blog/changelog/
Чтобы отключить специальные возможности, установите:
accessibility: {
enabled: false
}
Живая демонстрация:http://jsfiddle.net/BlackLabel/mvnjskqr/
Ссылка на API:https://api.highcharts.com/highcharts/accessibility.enabled