getTotal method
计算数据总和
Implementation
getTotal(List<ChartPieBean> data) {
double total = 0;
for (var bean in data) {
total += bean.value;
}
return total;
}
计算数据总和
getTotal(List<ChartPieBean> data) {
double total = 0;
for (var bean in data) {
total += bean.value;
}
return total;
}