UNPKG

ag-charts-types

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

12 lines (11 loc) 843 B
import type { AgChartInstance, AgChartOptions, AgFinancialChartOptions, AgGaugeOptions } from '../chartBuilderOptions'; export interface AgChartsApi { /** Create a new `AgChartInstance` based upon the given configuration options. */ create<T extends AgChartOptions>(options: AgChartOptions): AgChartInstance<T>; /** Create a new `AgChartInstance` based upon the given configuration options. */ createFinancialChart(options: AgFinancialChartOptions): AgChartInstance<AgFinancialChartOptions>; /** Create a new `AgChartInstance` based upon the given configuration options. */ createGauge(options: AgGaugeOptions): AgChartInstance<AgGaugeOptions>; /** @private Internal to AG Grid, returns the `AgChartInstance` for a DOM node, if there is one. */ getInstance(element: HTMLElement): AgChartInstance | undefined; }