Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(a11y): add basic aria-label to canvas element #1084

Merged
merged 12 commits into from
Mar 25, 2021
25 changes: 23 additions & 2 deletions .playground/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,31 @@

import React from 'react';

import { Example } from '../stories/small_multiples/7_sunbursts';
import { Chart, BarSeries, ScaleType, Settings } from '../src';

export class Playground extends React.Component {
render() {
return <Example />;
return (
<div className="story-chart story-root root">
<Chart size={[500, 200]}>
<Settings showLegend showLegendExtra />
<BarSeries
id="areas"
name="area"
xScaleType={ScaleType.Linear}
yScaleType={ScaleType.Linear}
xAccessor={0}
yAccessors={[1]}
splitSeriesAccessors={[2]}
data={[
[0, 123, 'group0'],
[0, 123, 'group1'],
[0, 123, 'group2'],
[0, 123, 'group3'],
]}
/>
</Chart>
</div>
);
}
}
Loading