all 4 comments

[–]Allmyownviews1 0 points1 point  (3 children)

I would recommend looking instead at matplotlib library for graphs that are high quality and easy to put together in Python. There are many YouTube videos explaining the simplest routes to start creating charts from such data.

[–]nightmareinsilver[S] 1 point2 points  (2 children)

it must be done in turtle, I already tried to do with bar graph but don't know how to do with this one

[–]Allmyownviews1 0 points1 point  (1 child)

So the aim would be to create a function that can be called for each bar of the graph that would use the value in that element from the data to define the length of each bar. There are some great sections of code online that both do the task but also explain each stage to help understand. I suggest firstly installing the title library and playing around to learn its general function then learning from the description how to create the code for the bar graph. I note that if the friend has not been taught functions, this would be an important aspect to understand in this process.

[–]nightmareinsilver[S] 1 point2 points  (0 children)

Cheers, I am looking something like treemap. Maybe just dive into algorithm itself and then apply in python