Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh_charts/deps.ts>ChartJs.DoughnutControllerChartOptions

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

Properties

circumference: number

Sweep to allow arcs to cover.

cutout: Scriptable<number | string, ScriptableContext<"doughnut">>

The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie) String ending with '%' means percentage, number means pixels.

offset: number | number[]

Arc offset (in pixels).

radius: Scriptable<number | string, ScriptableContext<"doughnut">>

The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.

rotation: number

Starting angle to draw arcs from.

spacing: number

Spacing between the arcs

animation: false | DoughnutAnimationOptions