Skip to content
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

Doesnt work for Stacked bar chart #128

Open
vbbalaji opened this issue Jun 25, 2020 · 1 comment
Open

Doesnt work for Stacked bar chart #128

vbbalaji opened this issue Jun 25, 2020 · 1 comment

Comments

@vbbalaji
Copy link

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} ] } } });

@peterpoliwoda
Copy link

The percentage does not work with my bar chart either. It shows up beautifully for the pie chart though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants