![]() |
VOOZH | about |
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.
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.
Syntax:
line_chart = pygal.StackedBar()
Example 1:
Output:
👁 ImageExample 2:
Output:
👁 ImageExample 3: Using Iris dataset