UNPKG

svgchrt

Version:

A way to easily create SVG-based charts without having to worry about positioning of titles, subtitles or legends.

31 lines 964 B
import { Margin, LegendItem } from './buildSurround'; declare enum LegendOrientation { Horizontal = "horizontal", Vertical = "vertical" } declare enum LegendPosition { TopLeft = "top-left", Top = "top", TopRight = "top-right", Right = "right", BottomRight = "bottom-right", Bottom = "bottom", BottomLeft = "bottom-left", Left = "left" } export declare const chart: () => { (): void; height(_: number): number | any; legendDisplay(_: boolean): boolean | any; legendItems(_: LegendItem[]): any | LegendItem[]; legendOrientation(_: LegendOrientation): any | LegendOrientation; legendPosition(_: LegendPosition): any | LegendPosition; margin(_: Margin): any | Margin; subtitle(_: string): string | any; target(_: SVGElement): string | any | SVGElement; title(_: string): string | any; width(_: number): number | any; draw(): void; }; export {}; //# sourceMappingURL=index.d.ts.map