chartist-js/site/examples/example-plugin-pointlabel.js
2014-12-15 00:04:45 +01:00

13 lines
204 B
JavaScript

new Chartist.Line('.ct-chart', {
labels: ['M', 'T', 'W', 'T', 'F'],
series: [
[12, 9, 7, 8, 5]
]
}, {
plugins: [
Chartist.plugins.ctPointLabels({
textAnchor: 'middle'
})
]
});