var pieChartGroupSizeProbabilities = new Chart(document.getElementById('groupSizeChart'),{ type:'pie', data: { labels: ['0 active others', '1 active other', '2 active others'], datasets: [ { data: [js_vars.g1, js_vars.g2, js_vars.g3], backgroundColor: ['#F67280', '#355C7D','#F8B195'], //'#6C5B7B', '#355C7D' borderWidth:1 } ], options: { rotation: 180 } } });