Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.ChartData

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

TData represents the data point type. If unspecified, a default is provided based on the chart type. TLabel represents the label type

Type Parameters

optional
TType extends ChartType = ChartType
optional
TData = DefaultDataPoint<TType>
optional
TLabel = unknown

Properties

optional
labels: TLabel[]
datasets: ChartDataset<TType, TData>[]