Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python SVG Charting Library

Project description Code style: Black

svg.charts is a pure-python library for generating charts and graphs using Scalable Vector Graphics.


svg.charts depends heavily on lxml and cssutils. Thanks to the contributors of those projects for stable, performant, standards-based packages.

Thanks to Sean E. Russel for creating the SVG::Graph Ruby package from which this Python port was originally derived.

Thanks to Leo Lapworth for creating the SVG::TT::Graph package which the Ruby port was based on.

Thanks to Stephen Morgan for creating the TT template and SVG.

Getting Started

svg.charts has some examples (taken directly from the reference implementation) in tests/ These examples show sample usage of the various chart types. They should provide a good starting point for learning the usage of the library.

An example of using svg.charts in a CherryPy web app can be found in If the site is working, you can see the rendered output here.

svg.charts also provides API documentation.


This project is hosted at Github.

Please use that site for reporting bugs and requesting help. Patches and contributions of any kind are encouraged.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for svg.charts, version 6.1
Filename, size File type Python version Upload date Hashes
Filename, size svg.charts-6.1-py2.py3-none-any.whl (30.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size svg.charts-6.1.tar.gz (38.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page