skip to navigation
skip to content

tchart 2.0.0

Minimal graph renderer for fixed size canvas

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

  • examples/show_all_decorators.py

  • examples/show_stacked_decorators.py

Bugs

Bugs or suggestions? Visit the issue tracker.

 
File Type Py Version Uploaded on Size
tchart-2.0.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2016-04-04 8KB
tchart-2.0.0.tar.gz (md5) Source 2016-04-04 17KB