Skip to main content
Module

x/fresh_charts/mod.ts>ChartConfiguration

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

The configuration options that are settable when rendering a chart.

Type Parameters

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

Properties

optional
width: number

The width, in pixels, of the chart.

Defaults to 768.

optional
height: number

The height, in pixels, of the chart.

Defaults to 384.

optional
type: ChartJs.ChartType

The type of chart.

Defaults to "line".

data: ChartJs.ChartData<TType, TData, TLabel>

Data to be rendered in the chart.

optional
options: ChartOptions

Options which can be configured on the chart.

optional
plugins: ChartJs.Plugin[]

Chart plugins to be registered for the chart.