Beautiful ASCII charts for your terminal — bar, histogram, heatmap, box plot, and 11 more chart types with zero dependencies
Maintained. Last release 2 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install textchartstextcharts
Beautiful text based charts for your terminal — zero dependencies.
15 chart types with Unicode box-drawing, ANSI colors, and automatic terminal width detection. Pure Python, no external dependencies, Python 3.10+.
Provenance
textcharts was extracted from the
BenchBox project so the terminal
charting layer could be used as a standalone library.
BenchBox remains the source of the most complete end-to-end usage examples for benchmarking and performance-analysis workflows. For canonical example-driven documentation, see the BenchBox documentation.
Install
pip install textcharts
Quick Start
from textcharts import BoxPlot, BoxPlotSeries
downtown = [1825, 1900, 1980, 2100, 2250, 2400, 2550, 2710, 2980]
riverside = [1450, 1525, 1600, 1680, 1750, 1820, 1950, 2080, 2220]
midtown = [1650, 1710, 1780, 1840, 1920, 2010, 2140, 2280, 2450]
series = [
BoxPlotSeries(name="Downtown", values=downtown),
BoxPlotSeries(name="Riverside", values=riverside),
BoxPlotSeries(name="Midtown", values=midtown),
]
chart = BoxPlot(
series=series,
title="Apartment Rents",
subtitle="Monthly rent distribution by neighborhood",
)
print(chart.render())

Text output (greyscale)
Apartment Rents (Value)
Monthly rent distribution by neighborhood
────────────────────────────────────────────────────────────────────────
╷ ┌─────────┬──────────┐ ╷
Downtown ├─────│ │ │────────────────┤
╵ └─────────┴──────────┘ ╵
╷ ┌─────┬──────┐ ╷
Riverside ├────│ │ │──────────┤
╵ └─────┴──────┘ ╵
╷ ┌────┬────────┐ ╷
Midtown ├────│ │ │──────────┤
╵ └────┴────────┘ ╵
───────────────────────────────────────────────────────────
1.4K 2.2K 3.0K
Value →
median mean std
────── ──── ─────
Downtown 2.2K 2.3K 392.7
Riverside 1.8K 1.8K 257.6
Midtown 1.9K 2.0K 269.8