import { ChartConfiguration, ChartOptions } from 'chart.js';

export interface BarConfig {
    barChartData: ChartConfiguration<'bar'>['data'],
    barChartOptions: ChartConfiguration<'bar'>['options'],
    barChartPlugins: any[],
    barChartLegend: boolean
}

export interface DoughnutConfig {
    doughnutChartLabels: string[],
    doughnutChartDatasets: ChartConfiguration<'doughnut'>['data']['datasets'],
    doughnutChartOptions:  ChartConfiguration<'doughnut'>['options'],
    doughnutChartLegend: boolean
}

export interface LineConfig {
    lineChartData: ChartConfiguration<'line'>['data'],
    lineChartOptions:  ChartOptions<'line'>,
    lineChartLegend: boolean
}
