import { ChartDataset, ChartOptions } from 'chart.js'; import { ChartType } from '../../filter/model/public/modifier-options'; export type BarChart = { plugins: any[]; legend: boolean; }; /** * Chart represents the base chart information needed to render */ export type Chart = { /** * The type of the visualised chart */ chartType: ChartType; datasets: ChartDataset[]; labels: string[]; options: ChartOptions; }; /** * ChartModifiers contains essential information about the chart */ export type ChartModifiers = (BarChart & Chart) | Chart;