@thi.ng/text-canvas
Version:
Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)
16 lines • 714 B
TypeScript
import type { NumericArray } from "@thi.ng/api";
import type { BlendFn } from "./api.js";
import { Canvas } from "./canvas.js";
export interface PlotBarsVOpts {
min: number;
max: number;
blend?: BlendFn;
}
export interface PlotSpec {
data: NumericArray;
color: number;
}
export declare const plotBarChartV: (canv: Canvas, opts: PlotBarsVOpts, ...plots: PlotSpec[]) => Canvas;
export declare const plotLineChart: (canvas: Canvas, x: number, y: number, height: number, vals: Iterable<number>, min?: number, max?: number, format?: number) => void;
export declare const lineChartStr: (height: number, vals: Iterable<number>, min?: number, max?: number) => string;
//# sourceMappingURL=plot.d.ts.map