With how subcategoryBreakdown was generated before, we were missing the information of what category each subcategory goes under. Now subcategoryBreakdown is categorized to display the number of projects by subcategory under each category.
Approach
An additional level is added to the subcategoryBreakdown object. Now each category is a key to subcategoryBreakdown, and its corresponding value is an object containing the breakdown of subcategories.
16
Motivation
With how
subcategoryBreakdown
was generated before, we were missing the information of what category each subcategory goes under. NowsubcategoryBreakdown
is categorized to display the number of projects by subcategory under each category.Approach
An additional level is added to the
subcategoryBreakdown
object. Now each category is a key tosubcategoryBreakdown
, and its corresponding value is an object containing the breakdown of subcategories.