import { type ChartJs } from "https://deno.land/x/fresh_charts@0.2.1/deps.ts";
const { LegendOptions } = ChartJs;
Type Parameters
TType extends ChartType
Properties
Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.
labels: { boxWidth: number; boxHeight: number; boxPadding: number; color: Color; font: ScriptableAndScriptableOptions<Partial<FontSpec>, ScriptableChartContext>; padding: number; pointStyle: PointStyle; textAlign?: TextAlign; usePointStyle: boolean; useBorderRadius: boolean; borderRadius: number; generateLabels(chart: Chart$4): LegendItem[]; filter(item: LegendItem, data: ChartData): boolean; sort(): number; }
This will force the text direction 'rtl' or 'ltr' on the canvas for rendering the legend, regardless of the css specified on the canvas
title: { display: boolean; color: Color; font: ScriptableAndScriptableOptions<Partial<FontSpec>, ScriptableChartContext>; position: "center" | "start" | "end"; padding?: number | ChartArea; text: string; }
Methods
A callback that is called when a 'mousemove' event is registered on top of a label item