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

x/fresh_charts/deps.ts>ChartJs.ArcElement

A server-side-rendered charting library for Fresh
Go to Latest
class ChartJs.ArcElement
extends Element<ArcProps, ArcOptions>
import { ChartJs } from "https://deno.land/x/fresh_charts@0.3.0/deps.ts";
const { ArcElement } = ChartJs;

Constructors

new
ArcElement(cfg: any)

Properties

circumference: number
endAngle: number
fullCircles: number
innerRadius: number
outerRadius: number
pixelMargin: number
startAngle: number

Methods

draw(ctx: CanvasRenderingContext2D): void
getCenterPoint(useFinalPosition: boolean): { x: number; y: number; }
inRange(
chartX: number,
chartY: number,
useFinalPosition: boolean,
): boolean
tooltipPosition(useFinalPosition: boolean): { x: number; y: number; }

Static Properties

defaultRoutes: { backgroundColor: string; }
defaults: { borderAlign: string; borderColor: string; borderDash: any[]; borderDashOffset: number; borderJoinStyle: any; borderRadius: number; borderWidth: number; offset: number; spacing: number; angle: any; circular: boolean; }
descriptors: { _scriptable: boolean; _indexable: (name: any) => boolean; }
id: string