Skip to main content
Help us improve Python packaging – donate today!

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.

Release history Release notifications

This version
History Node

2.0.0

History Node

1.1.0

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tchart-2.0.0-py2.py3-none-any.whl (8.2 kB) Copy SHA256 hash SHA256 Wheel 2.7 Apr 4, 2016
tchart-2.0.0.tar.gz (18.3 kB) Copy SHA256 hash SHA256 Source None Apr 4, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page