Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.Element

A server-side-rendered charting library for Fresh
Go to Latest
class ChartJs.Element
Re-export
import { ChartJs } from "https://deno.land/x/fresh_charts@0.2.1/deps.ts";
const { Element } = ChartJs;

Type Parameters

optional
T = AnyObject
optional
O = AnyObject

Properties

$animations: Record<keyof T, Animation>
active: boolean
options: O
x: number
y: number

Methods

getProps<P extends (keyof T)[]>(props: P, final?: boolean): Pick<T, P[number]>

Gets the current or final value of each prop. Can return extra properties (whole object).

getProps<P extends string>(props: P[], final?: boolean): Partial<Record<P, unknown>>
hasValue(): boolean
tooltipPosition(useFinalPosition: boolean): Point$1

Static Properties

defaultRoutes: any
defaults: { }