Browse Source

Add a couple more ARIA annotations

pull/2317/head
Dominique Hazael-Massieux 7 years ago
parent
commit
b21c0cf424
  1. 1
      src/core.js
  2. 2
      src/shape.line.js

1
src/core.js

@ -231,6 +231,7 @@ c3_chart_internal_fn.initWithData = function (data) {
// Define svgs
$$.svg = $$.selectChart.append("svg")
.attr('role', 'graphics-document document')
.style("overflow", "hidden")
.on('mouseenter', function () { return config.onmouseover.call($$); })
.on('mouseleave', function () { return config.onmouseout.call($$); });

2
src/shape.line.js

@ -20,6 +20,7 @@ c3_chart_internal_fn.updateTargetsForLine = function (targets) {
.attr('class', function (d) { return classChartLine(d) + classFocus(d); });
mainLineEnter = mainLineUpdate.enter().append('g')
.attr('class', classChartLine)
.attr('role', 'graphics-object group')
.style('opacity', 0)
.style("pointer-events", "none");
// Lines for each data
@ -309,6 +310,7 @@ c3_chart_internal_fn.updateCircle = function () {
$$.mainCircle = $$.main.selectAll('.' + CLASS.circles).selectAll('.' + CLASS.circle)
.data($$.lineOrScatterData.bind($$));
$$.mainCircle.enter().append("circle")
.attr("role", "graphics-symbol img")
.attr("class", $$.classCircle.bind($$))
.attr("r", $$.pointR.bind($$))
.style("fill", $$.color);

Loading…
Cancel
Save