Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.ControllerDatasetOptions

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

Properties

indexAxis: "x" | "y"

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

clip: number | ChartArea | false

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

label: string

The label for the dataset which appears in the legend and tooltips.

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.