Python to generate nice looking SVG graph http://pygal.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.1 KiB

===============
Documentation
===============
Interpolations
==============
.. contents::
To enable interpolation, just specify the interpolation type to:
- quadratic
- cubic
Without interpolation:
----------------------
``interpolate``
.. pygal-code::
chart = pygal.Line()
chart.add('line', [1, 5, 17, 12, 5, 10])
With cubic interpolation:
-------------------------
``interpolate``
.. pygal-code::
chart = pygal.Line(interpolate='cubic')
chart.add('line', [1, 5, 17, 12, 5, 10])
12 years ago
With quadratic interpolation:
-----------------------------
``interpolate``
.. pygal-code::
chart = pygal.Line(interpolate='quadratic')
chart.add('line', [1, 5, 17, 12, 5, 10])
Interpolation precision
-----------------------
``interpolation_precision``
You can change the resolution of the interpolation with the help of `interpolation_precision`:
.. pygal-code::
chart = pygal.Line(interpolate='quadratic')
chart.add('line', [1, 5, 17, 12, 5, 10])
.. pygal-code::
chart = pygal.Line(interpolate='quadratic', interpolation_precision=3)
chart.add('line', [1, 5, 17, 12, 5, 10])
12 years ago
Next: `Sparklines </sparklines>`_