chartjs creating data array dynamically
问题 Im creating a Pie chart using chartjs library, and Im wondering how I could represent the values the will be need to render the chart dynamically, In chartjs.org tutorial the array of data is represented like this var data = [ { value: 300, color:"#F7464A", highlight: "#FF5A5E", labelColor : 'white', labelFontSize : '16' }, { value: 100, color: "#46BFBD", highlight: "#5AD3D1", labelColor : 'white', labelFontSize : '16' }, { value: 100, color: "#FDB45C", highlight: "#FFC870", labelColor :