ChartJS Line Chart
Multiple Line Chart
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.js"></script>
<body>
<canvas id="chartJSContainer" width="600" height="400"></canvas>
</body>
CSS
canvas { background-color : #eee;
}
JavaScript
var options = {
type: 'horizontalBar',
data: {
labels:["RISK", "MOBILITY", "SLEEP", "MOTIVATION",
"SELF EST..", "CLOSE REL..", "SOCIAL ACTIV.."],
datasets: [
{
label: 'Issue as a %',
data: [12, 19, 3, 5, 2, 3],
backgroundColor:[
'rgba(166,166,166,0.5)',
'rgba(77,77,255,0.5)',
'rgba(0,255,85,0.5)',
'rgba(255,214,51,0.5)',
'rgba(153,51,255,0.5)',
'rgba(255,117,26,0.5)',
'rgba(102,255,255,0.5)'
],
}
]
},
options: {
legend: {
display: false
},
scales: {
yAxes: [{
ticks: {
reverse: false
}
}]
}
}
}
var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);