这是登陆此页面的人的一些信息。
从高排行榜版本 5 开始,支持辅助功能。
这是示例的链接https://www.highcharts.com/docs/chart-concepts/accessibility https://www.highcharts.com/docs/chart-concepts/accessibility
它支持键盘导航。它还在图表上方包含一个隐藏的 HTML 屏幕阅读器信息部分,其中包含有关图表结构和内容的详细信息。通过向上或向下箭头键将焦点放在图表上后,屏幕阅读器可以阅读此内容。
人们还可以通过 Chart.description、series.description 和 point.description 向屏幕阅读器提供附加信息,通过这些信息可以总结图表。
请参阅此处的示例,该示例使用描述属性总结了图表。
$.getJSON('https://www.highcharts.com/samples/data/aapl-c.json', function (data) {
Highcharts.stockChart('container', {
chart: {
description: 'Chart shows Apple stock prices from mid 2008 to mid 2015. It shows steady growth with one significant peak lasting through most of 2012 before normalizing.'
},
title: {
text: 'Apple Stock Price 2008 to 2015'
},
subtitle: {
text: 'Accessible stock chart demo'
},
rangeSelector: {
selected: 1
},
navigator: {
series: {
description: 'Overview series for navigation' // The navigator series could be confusing to screen reader users.
}
},
series: [{
name: 'AAPL',
data: data,
tooltip: {
valueDecimals: 2
}
}]
});
});
http://jsfiddle.net/gh/get/jquery/1.7.2/highcharts/highcharts/tree/master/samples/stock/accessibility/accessible-stock/ http://jsfiddle.net/gh/get/jquery/1.7.2/highcharts/highcharts/tree/master/samples/stock/accessibility/accessible-stock/
支持破折号样式以获得更好可见性的示例http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-dashstyle/ http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-dashstyle/