Pygal is a Python module that is mainly used to build SVG (Scalar Vector Graphics) graphs and charts. SVG is a vector-based graphics in the XML format that can be edited in any editor. Pygal can create graphs with minimal lines of code that can be easy to understand and write.
Treemap in Pygal
Treemap is a chart that is used for displaying echelons data using planted figures mainly rectangles. Each branch of the tree is in rectangular form and then which is macadamize with smaller rectangles to represent sub-branches. The color and the pattern are fixed in such a way in a treemap structure, that it won’t be difficult to understand the material. The second advantage of making treemap is they take less space in layout and can display thousands of items on a screen simultaneously. It can be created using
treemap = pygal.Treemap()
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.
- Line chart in Pygal
- Solid Gauge Chart in Pygal
- Multi-Series Pie Chart in Pygal
- Pie chart in Pygal
- Stacked Line chart in Pygal
- How to Create time related line chart in Pygal?
- Donut chart in pygal
- Pyramid chart in pygal
- Gauge Chart in pygal
- Radar chart in pygal
- Histogram in Pygal
- Half pie chart in Pygal
- Funnel Chart in Pygal
- Bar Chart in Pygal
- Stacked Bar chart in pygal
- Styling Graphs in Pygal
- Plotting World Map Using Pygal in Python
- Treemap using Plotly in Python
- Treemap using graph_objects class in plotly
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.