Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.TimeScale

A server-side-rendered charting library for Fresh
Latest
interface ChartJs.TimeScale
implements Scale<O>
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { TimeScale } = ChartJs;

Methods

format(value: number, format?: string): string
getDataTimestamps(): number[]
getLabelTimestamps(): string[]
normalize(values: number[]): number[]
variable ChartJs.TimeScale
import { ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { TimeScale } = ChartJs;

type

ChartComponent & { prototype: TimeScale; new <O extends TimeScaleOptions = TimeScaleOptions>(cfg: AnyObject): TimeScale<O>; }