UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

45 lines (44 loc) 880 B
import { ChartOptions } from './options'; import { IChart } from './chart'; export interface ChartEvents { beforeInit: { options: ChartOptions; }; ready: { chart: IChart; }; error: { error: Error; phase?: string; }; warning: { message: string; phase?: string; }; resize: { width: number; height: number; }; dataUpdate: { candles: number; timeRange?: [number, number]; priceRange?: [number, number]; }; beforeDispose: { chart: IChart; }; disposed: { chart: IChart; }; stateChange: { from: string; to: string; }; } export type ChartState = 'initializing' | 'ready' | 'error' | 'disposed'; export interface ChartEvent { time?: number; price?: number; x: number; y: number; }