Building a tree map in python with a rectangle area representing the value and color label

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

But the link provided on the diagram of the accepted response graphs on the tree.

An example of a dictionary that I have. {apple:1,mango:0.5,orange:0.5}

+5
source share

Source: https://habr.com/ru/post/1209535/


All Articles