| false;
}
-export interface Chart<TYPE extends IChartType = IChartType, DATA extends unknown[] = unknown[], LABEL = string> {
+export declare class Chart<TYPE extends IChartType = IChartType, DATA extends unknown[] = unknown[], LABEL = string> {
readonly platform: BasePlatform;
readonly id: string;
readonly canvas: HTMLCanvasElement;
data: IChartConfiguration<TYPE, DATA, LABEL>['data'];
options: IChartConfiguration<TYPE, DATA, LABEL>['options'];
+ constructor(item: ChartItem, config: IChartConfiguration<TYPE, DATA, LABEL>);
+
clear(): this;
stop(): this;
bindEvents(): void;
unbindEvents(): void;
updateHoverStyle(items: Element, mode: 'dataset', enabled: boolean): void;
+
+ static readonly version: string;
+ static readonly instances: { [key: string]: Chart };
+ static readonly registry: Registry;
+ static register(...items: IChartComponentLike[]): void;
+ static unregister(...items: IChartComponentLike[]): void;
}
export declare type ChartItem =
| { canvas: HTMLCanvasElement | OffscreenCanvas }
| ArrayLike<CanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas>;
-export const Chart: {
- prototype: Chart;
- new <TYPE extends IChartType = IChartType, DATA extends unknown[] = unknown[], LABEL = string>(
- item: ChartItem,
- config: IChartConfiguration<TYPE, DATA, LABEL>
- ): Chart<TYPE, DATA, LABEL>;
-
- readonly version: string;
- readonly instances: { [key: string]: Chart };
- readonly registry: Registry;
- register(...items: IChartComponentLike[]): void;
- unregister(...items: IChartComponentLike[]): void;
-};
-
export enum UpdateModeEnum {
resize = 'resize',
reset = 'reset',