Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.BarOptions

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

Properties

base: number

The base value for the bar in data units along the value axis.

borderSkipped:
| "start"
| "end"
| "left"
| "right"
| "bottom"
| "top"
| "middle"
| boolean

Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top', 'middle', false (none) or true (all).

borderRadius: number | BorderRadius

Border radius

inflateAmount: number | "auto"

Amount to inflate the rectangle(s). This can be used to hide artifacts between bars. Unit is pixels. 'auto' translates to 0.33 pixels when barPercentage * categoryPercentage is 1, else 0.

borderWidth: number | { top?: number; right?: number; bottom?: number; left?: number; }

Width of the border, number for all sides, object to specify width for each side specifically