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.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplecharts-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file simplecharts-0.2.0.tar.gz.

File metadata

  • Download URL: simplecharts-0.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simplecharts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e1ed82a04cb608e61bcf5f830bbd7a360c4f0b990a8c13d722609c732ff5884
MD5 16ef2f32d6f0a663f3ce604a2516d31f
BLAKE2b-256 c5a64e8b5940cf670d62432fdae103426854479f45515648371d1cc663c14be6

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplecharts-0.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: simplecharts-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simplecharts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ed586903cfe22dd6e6b576c35007cde07c03420f5225e66c32a75cc246ac1b6
MD5 135f30845f47e47fba4cf7ff40617d24
BLAKE2b-256 75bfc995a65cda74ba9b6f397693641a22e780225a585f5a7fb65a3ca922096d

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplecharts-0.2.0-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page