Skip to content

jaraco/svg.charts

Repository files navigation

tests Ruff https://readthedocs.org/projects/svgcharts/badge/?version=latest https://img.shields.io/badge/skeleton-2024-informational

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

Acknowledgements

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/samples.py. 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 jaraco.site.charts. If the site is working, you can see the rendered output here.

svg.charts also provides API documentation.

Contributing

This project is hosted at Github.

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