import type { IDatePatternKeys } from '@upswot/core'; export interface IChartProps { isDarkTheme: boolean; type: IChartTypes; data: IChartData[] | Array | number[]; datasets?: any[]; loading?: boolean; dateFormat?: IDatePatternKeys; tooltipDateFormat?: IDatePatternKeys; yAxisFormat?: IChartValueFormat; yAxisSymbol?: string; yAxisMaxTicks?: number; xAxisFormat?: IChartValueFormat; xAxisSymbol?: string; xAxisMaxTicks?: number; horizontal?: boolean; pointVariant?: IChartLinePointVariants; xAxisKey?: string; yAxisKey?: string; yAxisMinMaxDeviation?: boolean; visiblePoint?: string; interaction?: boolean; labels?: string[]; valueFormat?: IChartValueFormat; valueSymbol?: string; doughnutTotal?: boolean; doughnutTotalTitle?: string; stacked?: boolean; legend?: boolean; plugins?: any[]; datasetLabels: string[]; yAxisTicksCount: number | undefined; xAxisTicksCount: number | undefined; minValue: number | undefined; maxValue: number | undefined; averageAmount: number; barPercentage: number; tooltipAdditionalData: boolean; splittingDate: boolean; xAxisBeginAtZero: boolean; yAxisBeginAtZero: boolean; isLastDateAsterisk: boolean; isDisabled: boolean; } export interface IChartData { [key: string]: any; } export interface IChartStyles { '--color-graph-purple': string; '--color-graph-turquioise': string; '--color-graph-yellow': string; '--color-graph-blue': string; '--color-graph-magenta': string; '--color-neutral-0': string; '--color-text-900': string; '--color-text-700': string; '--color-text-1000': string; '--text-p-xs-light': string; '--text-p-s-light': string; '--text-p-m-heavy': string; '--text-headline-h2': string; '--text-label-m': string; '--color-neutral-300': string; '--color-neutral-600': string; '--color-danger-600': string; '--color-success-600': string; '--space-inner-xl': string; '--space-inner-m': string; '--space-inner-xs': string; '--space-outer-s': string; '--color-neutral-700': string; } export type IChartTypes = 'line' | 'bar' | 'pie' | 'doughnut'; export type IChartLinePointVariants = 'default' | 'last' | 'specific' | 'hidden'; export type IChartValueFormat = 'default' | 'afterValue' | 'currency' | 'date';