Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.Registry

A server-side-rendered charting library for Fresh
Go to Latest
interface ChartJs.Registry
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.2.2/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$1<DatasetController$1>
readonly
elements: TypedRegistry$1<Element>
readonly
plugins: TypedRegistry$1<Plugin>
readonly
scales: TypedRegistry$1<Scale$2>

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$1 | undefined
getElement(id: string): Element | undefined
getPlugin(id: string): Plugin | undefined
getScale(id: string): Scale$2 | undefined