import { ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { BasePlatform } = ChartJs;
Methods
acquireContext(canvas: HTMLCanvasElement, options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null
Called at chart construction time, returns a context2d instance implementing the [W3C Canvas 2D Context API standard]https://www.w3.org/TR/2dcontext/.
getDevicePixelRatio(): number
getMaximumSize(): { width: number; height: number; }
canvas: HTMLCanvasElement,
width?: number,
height?: number,
aspectRatio?: number,
isAttached(canvas: HTMLCanvasElement): boolean
releaseContext(context: CanvasRenderingContext2D): boolean
Called at chart destruction time, releases any resources associated to the context previously returned by the acquireContext() method.
removeEventListener(): void
Removes the specified listener previously registered with addEventListener.
updateConfig(config: ChartConfiguration | ChartConfigurationCustomTypesPerDataset): void
Updates config with platform specific requirements