We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is the code: var mStackBar = new Chart(document.getElementById("ACTasks").getContext('2d'), { type: 'bar', data: { labels: ["2014","2015"], datasets: [{ data: [23,11], backgroundColor: "#db5935" },{ data: [15,25], backgroundColor: "#f0ae43" },{ data: [32,34], backgroundColor: "#8CC152" }] }, options: { scales: { xAxes: [{ display:true, stacked: true }], yAxes: [{ barPercentage:0.5, display:true, beginAtZero: true, ticks:{max:80}, stacked: true }] }, maintainAspectRatio: false, legend:{display:false}, plugins: { labels:[ {display:true, position: 'outside', render: 'value', fontColor:'#000', fontSize: 10}, {display:true, position: 'inside', render: 'percentage', fontColor:'#000', fontSize: 10} ] } } });
var mStackBar = new Chart(document.getElementById("ACTasks").getContext('2d'), { type: 'bar', data: { labels: ["2014","2015"], datasets: [{ data: [23,11], backgroundColor: "#db5935" },{ data: [15,25], backgroundColor: "#f0ae43" },{ data: [32,34], backgroundColor: "#8CC152" }] }, options: { scales: { xAxes: [{ display:true, stacked: true }], yAxes: [{ barPercentage:0.5, display:true, beginAtZero: true, ticks:{max:80}, stacked: true }] }, maintainAspectRatio: false, legend:{display:false}, plugins: { labels:[ {display:true, position: 'outside', render: 'value', fontColor:'#000', fontSize: 10}, {display:true, position: 'inside', render: 'percentage', fontColor:'#000', fontSize: 10} ] } } });
The text was updated successfully, but these errors were encountered:
The percentage does not work with my bar chart either. It shows up beautifully for the pie chart though.
Sorry, something went wrong.
No branches or pull requests
Here is the code:
var mStackBar = new Chart(document.getElementById("ACTasks").getContext('2d'), { type: 'bar', data: { labels: ["2014","2015"], datasets: [{ data: [23,11], backgroundColor: "#db5935" },{ data: [15,25], backgroundColor: "#f0ae43" },{ data: [32,34], backgroundColor: "#8CC152" }] }, options: { scales: { xAxes: [{ display:true, stacked: true }], yAxes: [{ barPercentage:0.5, display:true, beginAtZero: true, ticks:{max:80}, stacked: true }] }, maintainAspectRatio: false, legend:{display:false}, plugins: { labels:[ {display:true, position: 'outside', render: 'value', fontColor:'#000', fontSize: 10}, {display:true, position: 'inside', render: 'percentage', fontColor:'#000', fontSize: 10} ] } } });
The text was updated successfully, but these errors were encountered: