svelte-lightweight-charts
Version:
Svelte wrapper for financial lightweight charts built with HTML5 canvas
10 lines (9 loc) • 517 B
TypeScript
import type { IChartApi, IPriceScaleApi, DeepPartial, PriceScaleOptions } from 'lightweight-charts';
import type { ReferencableActionResult, Reference } from './utils.js';
export interface PriceScaleParams {
id: string;
options?: DeepPartial<PriceScaleOptions>;
reference?: Reference<IPriceScaleApi>;
}
export type PriceScaleActionResult = ReferencableActionResult<PriceScaleParams, IPriceScaleApi>;
export declare function priceScale(target: IChartApi, params: PriceScaleParams): PriceScaleActionResult;