UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components

22 lines (21 loc) 857 B
import { ChartType, ChartOptions } from "./iChartOptions"; import { ChartRef } from "../entities/gridOptions"; import { CreateRangeChartParams, CreatePivotChartParams } from "../gridApi"; import { CellRangeParams } from "./iRangeController"; export interface GetChartImageDataUrlParams { type?: string; } export interface ChartModel { chartId: string; cellRange: CellRangeParams; chartType: ChartType; chartPalette: string; chartOptions: ChartOptions<any>; getChartImageDataURL: (params: GetChartImageDataUrlParams) => string; } export interface IChartService { getChartModels(): ChartModel[]; createRangeChart(params: CreateRangeChartParams): ChartRef | undefined; createChartFromCurrentRange(chartType: ChartType): ChartRef | undefined; createPivotChart(params: CreatePivotChartParams): ChartRef | undefined; }