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)

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.0.tar.gz (5.0 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.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplecharts-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 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.0.tar.gz
Algorithm Hash digest
SHA256 695a3652f2eb7bc88e2caacb9e4f7150f2b8b61670e96bc09695caa45acf1706
MD5 d7247d363c2b44a634484c0e8f8eb341
BLAKE2b-256 417e7cbaca6ecee8d149c61e45099d23baac2abdc7f75e586cf5ecf8696c409a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: simplecharts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94fc1f162f0b2f70f723180256627c45e0c5aab7ec5cb7bc6a75e55181dfcc9f
MD5 863a07e0444a9060713f59f67f920c93
BLAKE2b-256 9a3349afab755d2ffe82e4317e8e729d8935d20ddd01b5985e8f2cb8affa40f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplecharts-0.1.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