semvec/pypi-packages huggingface dataset:
simplecharts 0.1.1
SVG charts without dependencies
License: MIT
Keywords: svg, charts

# Features

-   no external dependencies
-   produces clean SVG
-   available charts: grouped columns, stacked columns, lines, stacked
    areas

# Limitations

-   not interactive
-   not configurable
-   maximum of 6 colors
-   no wrapping for long labels

# Usage

```python
from simplecharts import StackedColumnRenderer

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)
```

You can also convert CSV on the command line:

```sh
$ simplecharts --renderer stacked-column <<EOF
,John,Jane,Joe
Apples,3,2,5
Oranges,4,2,3
Pears,4,3,4
Bananas,5,1,2
EOF
```

![example](https://github.com/xi/simplecharts/blob/main/tests/simple_StackedColumnRenderer.svg)