import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { Registry } = ChartJs;
Please use the module's default export which provides a singleton instance Note: class is exported for typedoc
Properties
readonly
controllers: TypedRegistry<DatasetController>readonly
elements: TypedRegistry<Element>readonly
plugins: TypedRegistry<Plugin>readonly
scales: TypedRegistry<Scale>Methods
add(...args: ChartComponentLike[]): void
remove(...args: ChartComponentLike[]): void
addControllers(...args: ChartComponentLike[]): void
addElements(...args: ChartComponentLike[]): void
addPlugins(...args: ChartComponentLike[]): void
addScales(...args: ChartComponentLike[]): void
getController(id: string): DatasetController | undefined
getPlugin(id: string): Plugin | undefined
getScale(id: string): Scale | undefined