chartist-js/site/examples/example-plugin-targetline.js
2017-08-11 12:07:43 -04:00

13 lines
191 B
JavaScript

new Chartist.Line('.ct-chart', {
labels: ['M', 'T', 'W', 'T', 'F'],
series: [
[5, 11, 2, 5, 7]
]
}, {
plugins: [
Chartist.plugins.ctTargetLine({
value: 6
})
]
});