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.
Stacked Bar Chart
This graph is similar to the bar chart but the only difference is that the values are stacked in it. It can be created using the StackedBar() method.
line_chart = pygal.StackedBar()
Example 3: Using Iris dataset
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.