Skip to content

andras-tim/tchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5c47bd9 · Nov 9, 2018

History

50 Commits
Nov 9, 2018
Apr 5, 2016
Apr 5, 2016
Oct 26, 2015
Nov 9, 2018
Apr 4, 2016
Nov 9, 2018
Nov 9, 2018
Mar 30, 2016
Mar 28, 2016
Nov 9, 2018
Mar 30, 2016
Nov 9, 2018
Oct 28, 2015
Nov 9, 2018
Nov 9, 2018
Nov 9, 2018

Repository files navigation

tchart

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.

About

Minimal chart renderer for fixed size canvas for Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages