0.0.18 • Published 7 years ago
react-chartist-plugin-accessibility v0.0.18
react-chartist-plugin-accessibility
Accessibility plugin for react-chartist.
Installation
$ npm i react-chartist-plugin-accessibility --save
Usage
import React, { Component } from 'react'
import ChartistGraph from 'react-chartist'
import ChartistAccessibility from 'react-chartist-plugin-accessibility'
export default class example extends Component {
render () {
const data = {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
series: [
[29, 38, 69, 28, 18, 49, 33, 28, 28, 23, 93, 27, 34],
[48, 39, 47, 19, 43, 50, 85, 94, 29, 93, 46, 67, 60]
]
}
return (
<ChartistGraph
data={data}
type={'Line'}
options={{
axisX: {
labelInterpolationFnc: (value, index) => `${value}.`
}
}}
responsiveOptions={[
['screen and (max-width: 768px)', {
width: '100%',
axisX: {
labelInterpolationFnc: (value, index) => index % 2 === 0 ? value : ''
}
}]
]}>
<ChartistAccessibility
caption={'caption'}
summary={'summary'}
seriesHeader={'header'}
/>
</ChartistGraph>
)
}
}
Check out chartist-plugin-accessibility for more details.
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago