Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.BarControllerDatasetOptions

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

Properties

xAxisID: string

The ID of the x axis to plot this dataset on.

yAxisID: string

The ID of the y axis to plot this dataset on.

barPercentage: number

Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.

categoryPercentage: number

Percent (0-1) of the available width each category should be within the sample width.

barThickness: number | "flex"

Manually set width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.

maxBarThickness: number

Set this to ensure that bars are not sized thicker than this.

minBarLength: number

Set this to ensure that bars have a minimum length in pixels.

pointStyle: PointStyle

Point style for the legend

grouped: boolean

Should the bars be grouped on index axis