===== Pygal ===== Presentation ============ pygal is a SVG charting library written in python. .. pygal:: 300 200 chart = pygal.HorizontalBar(y_label_rotation=-25) chart.x_labels = 'one', 'two', 'three', 'four', 'five' chart.add('red', [1, 2, 3, 1, 2]) chart.add('green', [4, 3, 0, 1, 2]) .. pygal:: 300 200 chart = pygal.Line(x_label_rotation=25, fill=True, style=pygal.style.NeonStyle, interpolate='cubic') chart.x_labels = 'one', 'two', 'three', 'four', 'five' chart.add('red', [1, 2, 3, 1, 2]) chart.add('green', [4, 3, 0, 1, 2]) .. pygal:: 300 200 chart = pygal.Pie() chart.x_labels = 'one', 'two', 'three', 'four', 'five' chart.add('red', [1, 2, 3, 1, 2]) chart.add('green', [4, 3, 0, 1, 2]) .. pygal:: 300 200 chart = pygal.Radar(fill=True, style=pygal.style.NeonStyle) chart.x_labels = 'one', 'two', 'three', 'four', 'five' chart.add('red', [1, 2, 3, 1, 2]) chart.add('green', [4, 3, 0, 1, 2]) It features various graph types: - `Bar charts `_ - `Line charts `_ - `XY charts `_ - `Pie charts `_ - `Radar charts `_ - `Box plot `_ - `Dot charts `_ - `Pyramid charts `_ - `Funnel charts `_ - `Gauge charts `_ - `Worldmap charts `_ - `Country charts `_ Python/Css styling with some pre-defined themes. See `styling `_. And a lot of options to `customize the charts. `_ Get it ! ======== - Get the package on `pypi `_ - Fork me on `github `_ More information in the `download page `_ Get started =========== Start `here `_ to make your first steps. Technical Description ===================== As of now pygal is known to work for python 2.6, 2.7 and 3.2, 3.3, 3.4. Needed dependencies ------------------- pygal uses `lxml `_ to generate the svg, this is the only needed dependency. Optional dependencies --------------------- PNG output requires `CairoSVG `_, `tinycss `_ and `cssselect `_. Install those with ``pip install CairoSVG tinycss cssselect``. Unit testing needs `py.test `_ or `nosetests `_. Visual testing is based on `flask `_. Read more ========= .. toctree:: :maxdepth: 2 documentation/index download support api/modules Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`