Pygal SVG embedded Graphs - Flask Web Development with Python 33
In this Flask web development tutorial with Python, I am going to be showing you how to incorporate Pygal with your Flask web application. Pygal is a Python module that creates SVG (Scalable Vector Graphics) graphs/charts in a variety of styles. Pygal is highly customize-able, yet also extremely simplistic, which is a very rare combination.
You can make line graphs, bar graphs, histograms, pie charts, maps, and a whole lot more. From there you can further customize the look and feel of the graphs.
To get started, first you will need to install: pip install pygal
Next, let's create a simple line graph.
Text-based tutorial and sample code: https://pythonprogramming.net/pygal-tutorial/
http://pythonprogramming.net
https://twitter.com/sentdex