0👍
✅
chart-data takes only array not array names that stored in array.if you want to use ng-repeat to show multiple graphs insert array for chat-data in another array with other datas.
$scope.data1.push({
value: data.Group[i].Count[j],
color: chartColor[j],
highlight: chartColor[j],
label: data.Group[i].options[j]
});
$scope.groupDet.push({'groupid':data.Group[i].groupID,
'groupName':data.Group[i].groupName ,
'ff':$scope.data1
});
<div ng-repeat="x in groupDet">
<h4>{{x.groupName}}</h4>
<canvas tc-chartjs-doughnut chart-options="options1" chart-data=x.ff auto-legend></canvas>
0👍
chart.js initially accepts label and value properties only except colors and all.
you need to change in script which is given by chart.js..
suppose your propery from array is xyz.. you need to craete a segment in script like segment.xyz like this or replace label with your property name
hope it vl helps
Source:stackexchange.com