UNPKG

1.49 kBTypeScriptView Raw
1/**
2 * Copyright (c) 2017 ~ present NAVER Corp.
3 * billboard.js project is licensed under the MIT license
4 */
5import {Chart} from "./chart";
6import {ChartOptions} from "./options";
7
8export const bb: {
9 /**
10 * Generate chart
11 * @param options Chart generation options
12 */
13 generate(options: ChartOptions): Chart;
14
15 /**
16 * Set or get global default options.
17 * - **NOTE:**
18 * - The options values settings are valid within page context only.
19 * - If is called multiple times, will override the last value.
20 * @param options Chart generation options
21 */
22 defaults(options: ChartOptions): ChartOptions;
23
24 /**
25 * Version information
26 */
27 version: string;
28
29 /**
30 * An array containing instance created
31 */
32 instance: Chart[];
33};
34
35// shape modules
36export function area(): "area";
37export function areaLineRange(): "area-line-range";
38export function areaSpline(): "area-spline";
39export function areaSplineRange(): "area-spline-range";
40export function areaStep(): "area-step";
41export function bar(): "bar";
42export function bubble(): "bubble";
43export function candlestick(): "candlestick";
44export function donut(): "donut";
45export function gauge(): "gauge";
46export function line(): "line";
47export function pie(): "pie";
48export function radar(): "radar";
49export function scatter(): "scatter";
50export function spline(): "spline";
51export function step(): "step";
52
53// interaction modules
54export function selection(): true;
55export function subchart(): true;
56export function zoom(): true;