Loading
Source Code
- JavaScript
- HTML
import { Chart } from 'singledivui';
import 'singledivui/dist/singledivui.min.css';
const options = {
type: "line",
data: {
labels: [2010, 2011, 2012, 2013, 2014, 2015, 2016],
series: {
points: [180, 251, 150, 190, 100, 135, 49]
}
}
};
new Chart('#chart-demo', options);
<div id="chart-demo"></div>