Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3.0/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[]
optional
xLabels: TLabel[]
optional
yLabels: TLabel[]
datasets: ChartDataset<TType, TData>[]