Creating a treemap without libraries

25 Views Asked by At

I'm working on creating a treemap without libraries for a project, but I'm facing some difficulties with this, arranging blocks in a parent block and calculating the height and width like some libraries do. It would be great if you could take a look at my code and share your ideas or tips. Here is a link to my code: my code code

I would be very grateful for any help and feedback!

I expect the blocks to be laid out like this, but I don’t understand how to do it

0

There are 0 best solutions below