Minimal chart renderer for fixed size canvas for Python.
pip install tchart
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))
Please check the examples directory.
Bugs or suggestions? Visit the issue tracker.