Skip to main content

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

example

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)

Uploaded Source

Built Distribution

simplecharts-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for simplecharts-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54eb60a658d85b4c9b26a533bd662ad0196a67a95547baaac5174f28cee70a25
MD5 f0ced0f89050fdeedd90be6174b0336d
BLAKE2b-256 d0754de77f0c6b2f42c3ec7be2770c91d5d1b821db2e700a24f910c665908b00

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplecharts-0.1.1.tar.gz:

Publisher: main.yml on xi/simplecharts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for simplecharts-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5872baf091981ea78ab31e42944d8e060bba63f909fd860b39dd75c60d6fd5d
MD5 a676b4a274a9b034e8b52a087bccbbdb
BLAKE2b-256 d37537bd016547179d6612e5011c23a82a0b846396db674e819c1630ff3b4b8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplecharts-0.1.1-py3-none-any.whl:

Publisher: main.yml on xi/simplecharts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page