how can I use data (in angular 1.5) from the model to get the percentage for each class based on the number of students (count)? With those datas I have to build a donught graph representing for each class the percentage of students compared to the total of school students..
"payload": {
"Schools": [{
"Sections": [{
"Name": "Class",
"Value": "2A"
}, {
"Name": "Count",
"Value": 29
}
]
}, {
"Sections": [{
"Name": "Class",
"Value": "3C",
}, {
"Name": "Count",
"Value": 31
}]
}, {
"Sections": [{
"Name": "Class",
"Value": "1B",
}, {
"Name": "Count",
"Value": 27
}]
}
],
"masterCategory": "School members",
"totalStudents": 87
}
}