ChartJS Line Chart
Multiple Line Chart
by Dmitri Ganenco
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.js"></script>
<script src="https://raw.githubusercontent.com/emn178/chartjs-plugin-labels/master/build/chartjs-plugin-labels.min.js"></script>
<body>
<canvas id="chartJSContainer" width="600" height="400"></canvas>
</body>
JavaScript
var options = {
type: 'pie',
data: {
labels: ["country"],
datasets: [{
labels: 'asd',
data: [5],
borderWidth: 1
}]
},
options: {
plugins: {
labels: {
render: 'label',
}
},
scales: {
yAxes: [{
ticks: {
reverse: false
}
}]
}
}
}
var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);