Treemap with only one segment showing up weird.

very messy code at the moment but the algorithm seems to be somewhat working.
Needs to be generalized and fix bug with the smallest category.