UNPKG

ansi-chart

Version:

A lightweight and simple tool for rendering beautiful charts directly in your terminal using only ANSI-compatible ASCII characters. Create bar charts, line graphs, and more with customizable styles, all without external dependencies. Perfect for CLI appli

12 lines (11 loc) 319 B
import { PlotConfig } from 'asciichart'; export declare class LineChart { private readonly config; constructor(config: PlotConfig & { xLabel: string; yLabel: string; }); plot(data: number[][] | number[], color: string): void; private generateXAxisTicks; private countDecimals; }