SVG charts without dependencies
Project description
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
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:
$ 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simplecharts-0.1.1.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file simplecharts-0.1.1.tar.gz
.
File metadata
- Download URL: simplecharts-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
54eb60a658d85b4c9b26a533bd662ad0196a67a95547baaac5174f28cee70a25
|
|
MD5 |
f0ced0f89050fdeedd90be6174b0336d
|
|
BLAKE2b-256 |
d0754de77f0c6b2f42c3ec7be2770c91d5d1b821db2e700a24f910c665908b00
|
Provenance
The following attestation bundles were made for simplecharts-0.1.1.tar.gz
:
Publisher:
main.yml
on xi/simplecharts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
simplecharts-0.1.1.tar.gz
-
Subject digest:
54eb60a658d85b4c9b26a533bd662ad0196a67a95547baaac5174f28cee70a25
- Sigstore transparency entry: 203700304
- Sigstore integration time:
-
Permalink:
xi/simplecharts@15edb72620d4c042599a93a7039014beec0b3c4f
-
Branch / Tag:
refs/tags/0.1.1
- Owner: https://github.com/xi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@15edb72620d4c042599a93a7039014beec0b3c4f
-
Trigger Event:
push
-
Statement type:
File details
Details for the file simplecharts-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: simplecharts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d5872baf091981ea78ab31e42944d8e060bba63f909fd860b39dd75c60d6fd5d
|
|
MD5 |
a676b4a274a9b034e8b52a087bccbbdb
|
|
BLAKE2b-256 |
d37537bd016547179d6612e5011c23a82a0b846396db674e819c1630ff3b4b8d
|
Provenance
The following attestation bundles were made for simplecharts-0.1.1-py3-none-any.whl
:
Publisher:
main.yml
on xi/simplecharts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
simplecharts-0.1.1-py3-none-any.whl
-
Subject digest:
d5872baf091981ea78ab31e42944d8e060bba63f909fd860b39dd75c60d6fd5d
- Sigstore transparency entry: 203700312
- Sigstore integration time:
-
Permalink:
xi/simplecharts@15edb72620d4c042599a93a7039014beec0b3c4f
-
Branch / Tag:
refs/tags/0.1.1
- Owner: https://github.com/xi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@15edb72620d4c042599a93a7039014beec0b3c4f
-
Trigger Event:
push
-
Statement type: