Documentation
Sparklines
pygal provides a simple way to get beautiful sparklines.
Basic
Styles
It supports styling like any chart but the option is given to the render_sparkline method:
Options
It's the same for other options:
Sparktext
If you want to get a simple spartext, use the render_sparktext function:
chart = pygal.Line()
chart.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext()
→ ▁▁▂█▆▁▃
You can also specify an explicit minimum for the values:
chart = pygal.Line()
chart.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext(relative_to=0)
→ ▁▂▃█▆▂▄
Next: Metadata