6

I want to visualize my data using a tree-map. I have a dictionary with keys and values. How can I do it in python with the area of block representing the value and color representing the key/label. I saw a similar question here.

But the link provided in the accepted answer plots tree-map on to a tree.

Example of a dictionary I have is. {apple:1,mango:0.5,orange:0.5}

Community
  • 1
  • 1
user168983
  • 822
  • 2
  • 10
  • 27

0 Answers0