UNPKG

@thi.ng/viz

Version:

Declarative, functional & multi-format data visualization toolkit based around @thi.ng/hiccup

19 lines 661 B
import type { Fn3 } from "@thi.ng/api"; import type { DomainValues, PlotFn } from "../api.js"; export interface BarPlotOpts { attribs: any; interleave: number; offset: number; width: number; /** * Shape function to represent a single bar of the plot. Receives the * following arguments: * * - original datum (i.e. [domain position, value]) * - mapped point of bar at/near X-axis * - mapped point of bar representing its value */ shape: Fn3<number[], number[], number[], any>; } export declare const barPlot: (data: DomainValues, opts?: Partial<BarPlotOpts>) => PlotFn; //# sourceMappingURL=bar.d.ts.map