Skip to main content

Minimal graph renderer for fixed size canvas

Project description

Python Package Build Status Dependency Status Code Quality Test Coverage License

Minimal chart renderer for fixed size canvas for Python.

Installation

pip install tchart

Usage

  • simple way:

    from tchart import Tchart
    
    t = Tchart(height=10, width=80)
    
    data = [12.1, -2, 100]
    chart = t.render(data)
    
    print('\n'.join(chart))
  • extended way:

    from tchart import Tchart
    from tchart.renderers import BoxRenderer
    from tchart.decorators import AxisDecorator
    
    t = Tchart(height=10, width=80, renderer=BoxRenderer(), decorators=[AxisDecorator(), ])
    
    data = [12.1, -2, 100]
    chart = t.render(data)
    
    print('\n'.join(chart))

Examples

Please check the examples directory.

  • examples/show_all_renderers.py

    Renderers

  • examples/show_all_decorators.py

    Decorators

  • examples/show_stacked_decorators.py

    StackedDecorators

Bugs

Bugs or suggestions? Visit the issue tracker.

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

tchart-2.0.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

tchart-2.0.0-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tchart-2.0.0.tar.gz.

File metadata

  • Download URL: tchart-2.0.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tchart-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1006525a573a11a0b0bd778d8a3079bd25df8c7f8a513f7e4d79d3f2cdb85fe5
MD5 f9448aa6393f1f7e5afe3ac591880225
BLAKE2b-256 f88622409ffa4d3d83a572c8ece374b90e75df37622826da6aa1f8d6f60df2c4

See more details on using hashes here.

File details

Details for the file tchart-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tchart-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 57a3c304eeb7fc3b6bff1994a68df40cac0fb75c89929798736d5cba19500c5a
MD5 a81b4e6aa3d0c49c7d3bcafb6aa39036
BLAKE2b-256 5078642d89c1a65b8b02f4ea42fbef96d903112277eb9e2888125e728420b002

See more details on using hashes here.

Supported by

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