Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.LegendItem

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

Properties

text: string

Label that will be displayed

optional
borderRadius: number | BorderRadius

Border radius of the legend box

optional
datasetIndex: number

Index of the associated dataset

optional
index: number

Index the associated label in the labels array

optional
fillStyle: Color

Fill style of the legend box

optional
fontColor: Color

Font color for the text Defaults to LegendOptions.labels.color

optional
hidden: boolean

If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect

optional
lineCap: CanvasLineCap

For box border.

optional
lineDash: number[]

For box border.

optional
lineDashOffset: number

For box border.

optional
lineJoin: CanvasLineJoin

For box border.

optional
lineWidth: number

Width of box border

optional
strokeStyle: Color

Stroke style of the legend box

optional
pointStyle: PointStyle

Point style of the legend box (only used if usePointStyle is true)

optional
rotation: number

Rotation of the point in degrees (only used if usePointStyle is true)

optional
textAlign: TextAlign

Text alignment