Hey-Deepak / Timify

0 stars 1 forks source link

Generalize PieChart functionality #7

Open LavishSwarnkar opened 3 months ago

LavishSwarnkar commented 3 months ago

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.