Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.FontSpec

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

Properties

family: string

Default font family for all text, follows CSS font-family options.

size: number

Default font size (in px) for text. Does not apply to radialLinear scale point labels.

style:
| "normal"
| "italic"
| "oblique"
| "initial"
| "inherit"

Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)

weight: string | null

Default font weight (boldness). (see MDN).

lineHeight: number | string

Height of an individual line of text (see MDN).