Check out the bar chart image here:
https://i.sstatic.net/RLeZp.png
This particular graph was created using the code snippet provided below:
var myChart = new Chart(ctx, {
type: 'horizontalBar',
data: {
labels: labels,
datasets: [{
label: '# of Votes',
data: data,
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
]
}]
},
options: {
responsive: true,
scales: {
yAxes: [{
borderWidth: 40,
ticks: {
beginAtZero:true
}
}]
}
}
});
Upon inspection, the bar width appears to be on the narrower end.
Here's the question at hand - what method can be used to enlarge the width of each bar in the chart?