-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stacked bar chart? #226
Comments
Sure. https://stackoverflow.com/questions/37249439/chartjs-v2-0-stacked-bar-chart You only have to pass the options: {
scales: {
yAxes: [{
stacked: true,
ticks: {
beginAtZero: true
}
}],
xAxes: [{
stacked: true,
ticks: {
beginAtZero: true
}
}]
} |
Well it is working fine for me: https://codepen.io/apertureless/pen/zEmNpp You also need to change the Do you have the current version of chart.js installed? |
Thanks, got it working now. Think the problem was that my options needed to be passed in as the second parameter to renderChart. This is the final version that works:
|
Hi, I'm looking for a Vue component that can do stacked bar.
Does vue-chartjs support the Stacked Bar type? (http://www.chartjs.org/samples/latest/charts/bar/stacked.html)
The text was updated successfully, but these errors were encountered: