|
|
|
=====
|
|
|
|
Pygal
|
|
|
|
=====
|
|
|
|
|
|
|
|
Sexy python charting
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
|
|
.. pygal:: 300 200
|
|
|
|
|
|
|
|
chart = pygal.HorizontalBar(y_label_rotation=-25)
|
|
|
|
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
|
|
|
|
chart.add('alpha', [1, 2, 3, 1, 2])
|
|
|
|
chart.add('beta', [4, 3, 0, 1, 2])
|
|
|
|
|
|
|
|
.. pygal:: 300 200
|
|
|
|
|
|
|
|
chart = pygal.Line(x_label_rotation=25, fill=True, interpolate='cubic')
|
|
|
|
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
|
|
|
|
chart.add('alpha', [1, 2, 3, 1, 2])
|
|
|
|
chart.add('beta', [4, 3, 0, 1, 2])
|
|
|
|
|
|
|
|
.. pygal:: 300 200
|
|
|
|
|
|
|
|
chart = pygal.Pie()
|
|
|
|
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
|
|
|
|
chart.add('alpha', [1, 2, 3, 1, 2])
|
|
|
|
chart.add('beta', [4, 3, 0, 1, 2])
|
|
|
|
|
|
|
|
.. pygal:: 300 200
|
|
|
|
|
|
|
|
chart = pygal.Radar(fill=True)
|
|
|
|
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
|
|
|
|
chart.add('alpha', [1, 2, 3, 1, 2])
|
|
|
|
chart.add('beta', [4, 3, 0, 1, 2])
|
|
|
|
|
|
|
|
|
|
|
|
Simple python charting
|
|
|
|
======================
|
|
|
|
|
|
|
|
.. pygal-code:: inline
|
|
|
|
|
|
|
|
pygal.Bar().add('1', [1, 3, 3, 7]).add('2', [1, 6, 6, 4]).render()
|
|
|
|
|
|
|
|
|
|
|
|
Index
|
|
|
|
=====
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
documentation/index
|
|
|
|
installing
|
|
|
|
contributing
|
|
|
|
changelog
|
|
|
|
api/modules
|
|
|
|
|
|
|
|
* :ref:`genindex`
|
|
|
|
* :ref:`modindex`
|
|
|
|
* :ref:`search`
|