import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.0/deps.ts";
const { CoreChartOptions } = ChartJs;
Type Parameters
Properties
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}
Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.
Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.
The events option defines the browser events that the chart should listen to for tooltips and hovering.
Methods
Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.
Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.