How can I modify the width of each bar (in a Bar Chart), I know in chartjs you can modify the barPercentage, but I cannot do it in vue-chartjs. Sorry if my question is stupid, I'am novice.
Hello @xiclopex
well you actually do it the same way as in chart.js simply pass in the options.
// first argument is the data, second argument the options
this.renderChart(data, {
scales: {
xAxes: [ {
categoryPercentage: 0.9,
barPercentage: 0.5
}]
}
})
🔐 Closed due to inactivity.
Most helpful comment
Hello @xiclopex
well you actually do it the same way as in chart.js simply pass in the options.