Make PieChart functionality as well as UI, so generic that it supports the following scenario :
Inputs :
List<TaskInfo>,
groupBy: (TaskInfo) → Any
Output :
List<Slice>
Why?
Later we will add more dynamic attributes to TaskInfo like Priority, Category, isImportant, (Combinations of Important + Urgent). Generalising PieChart will help visualize tasks wrt to all these attributes also.
Requirement
Make PieChart functionality as well as UI, so generic that it supports the following scenario :
Inputs :
List<TaskInfo>
,groupBy: (TaskInfo) → Any
Output :
List<Slice>
Why?
Later we will add more dynamic attributes to TaskInfo like Priority, Category, isImportant, (Combinations of Important + Urgent). Generalising PieChart will help visualize tasks wrt to all these attributes also.