Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update information for optional dependencies #560

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/documentation/output.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ With cairosvg installed you can directly get the png file using ``render_to_png`
...
chart.render_to_png('/tmp/chart.png') # Write the chart in the specified file

In case of rendered image turning up black, installing lxml, tinycss and cssselect should fix the issue.
In case of rendered image turning up black, installing tinycss2 and cssselect2 should fix the issue.


Etree
-----


It is possible to get the xml etree root element of the chart (or lxml etree node if lxml is installed) by calling the ``render_tree`` method:
It is possible to get the xml etree root element of the chart by calling the ``render_tree`` method:


.. code-block:: python
Expand Down
5 changes: 2 additions & 3 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ There are no required dependency.

Optional dependencies are as follow:

* ``lxml`` which can improve rendering speed (except on pypy).
* ``cairosvg``, ``tinycss``, ``cssselect`` to render png.
* ``cairosvg``, ``tinycss2``, ``cssselect2`` to render png.


Git Repository
Expand All @@ -45,7 +44,7 @@ Linux Distribution Packages

Pygal has been packaged for:

- `Fedora <https://admin.fedoraproject.org/pkgdb/acls/name/python-pygal>`_
- `Fedora <https://src.fedoraproject.org/rpms/python-pygal>`_
- `Gentoo <http://packages.gentoo.org/package/dev-python/pygal>`_
- `Ubuntu <https://launchpad.net/ubuntu/+source/python-pygal>`_
- `Debian <https://packages.debian.org/unstable/python-pygal>`_
Expand Down