Browse Source

Merge branch 'website' of https://github.com/Kozea/pygal into website

pull/36/head
Guillaume Ayoub 13 years ago
parent
commit
3c0ca6b665
  1. 18
      pages/basic_customizations.rst
  2. 4
      pages/documentation.rst
  3. 15
      pages/home.rst
  4. 4
      pages/other_customizations.rst

18
pages/basic_customizations.rst

@ -99,27 +99,15 @@ You can also set `explicit_size` to True to add size attributes to the svg tag.
Scaling Scaling
------- -------
``x_scale, y_scale, include_x_axis`` ``include_x_axis``
Indicate a hint for the scale computation:
.. pygal-code::
chart = pygal.Line()
chart.add('line', [.0002, .0005, .00035])
.. pygal-code::
chart = pygal.Line(y_scale=.0001)
chart.add('line', [.0002, .0005, .00035])
Scales are computed automaticaly between the min and the max values.
You may want to always have the absissa in your graph: You may want to always have the absissa in your graph:
.. pygal-code:: .. pygal-code::
chart = pygal.Line(y_scale=.0001, include_x_axis=True) chart = pygal.Line(include_x_axis=True)
chart.add('line', [.0002, .0005, .00035]) chart.add('line', [.0002, .0005, .00035])

4
pages/documentation.rst

@ -14,7 +14,7 @@ User documentation
- `Other customizations </other_customizations>`_ - customize all the things. - `Other customizations </other_customizations>`_ - customize all the things.
Developper documentation Developer documentation
======================== =======================
- `Create a chart type </chart_creation>`_ - extend pygal. - `Create a chart type </chart_creation>`_ - extend pygal.

15
pages/home.rst

@ -1,6 +1,6 @@
====================== =============================
A SVG Charts Creator A python SVG Charts Creator
====================== =============================
Presentation Presentation
============ ============
@ -62,6 +62,15 @@ Python/Css styling with some packaged themes (`default </styles/#default>`_,
`And a lot of options to customize the charts. </basic_customizations>`_ `And a lot of options to customize the charts. </basic_customizations>`_
Get it !
========
- `Get the package on pypi <http://pypi.python.org/pypi/pygal/>`_
- `Fork me on github <http://github.com/Kozea/pygal>`_
More information in the `download page </download>`_
Technical Description Technical Description
===================== =====================

4
pages/other_customizations.rst

@ -23,6 +23,10 @@ You can set the scale to be logarithmic:
chart.x_labels = map(str, values) chart.x_labels = map(str, values)
chart.add('log example', values) chart.add('log example', values)
.. caution::
Negative values are ignored, interpolation might be broken if it goes below zero...
Custom css and js Custom css and js
----------------- -----------------

Loading…
Cancel
Save