simplecharts

SVG charts without dependencies


Keywords
charts, svg
License
MIT
Install
pip install simplecharts==0.0.2

Documentation

Features

  • no big dependencies
  • produces clean SVG
  • available charts: grouped columns, stacked columns, lines, stacked areas

Usage

renderer = StackedColumnRenderer()
data = {
    'rows': [{
        'label': 'Apples',
        'values': [3, 2, 5],
    }, {
        'label': 'Oranges',
        'values': [4, 2, 3],
    }, {
        'label': 'Pears',
        'values': [4, 3, 4],
    }, {
        'label': 'Bananas',
        'values': [5, 1, 2],
    }],
    'legend': ['John', 'Jane', 'Joe'],
}
svg = renderer.render(data)