docs/api-index

TerminalGraph API documentation

TerminalGraph is a pure-Nim library for rendering charts as Unicode and ANSI styled strings. Most applications only need the terminal_graph façade; the focused modules are available when a smaller import surface is preferable.

Install

nimble install terminal_style
nimble install terminal_graph

Quick start

import terminal_graph

echo plot(
  [3, 4, 9, 6, 2, 4, 5, 8],
  graphWidth(40),
  graphHeight(8),
  graphCaption("Request latency"),
  graphSeriesColors([colorBrightCyan])
)

Chart modules

Stateful rendering and composition

Generate locally

nimble docs
python3 -m http.server 8000 --directory htmldocs

Then open http://localhost:8000. Serving the files over HTTP allows the generated documentation search to load its index.