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