Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.TitleOptions

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

Properties

align: Align

Alignment of the title.

display: boolean

Is the title shown?

position:
| "top"
| "left"
| "bottom"
| "right"

Position of title

color: Color

Color of text

fullSize: boolean

Marks that this box should take the full width/height of the canvas (moving other boxes). If set to false, places the box above/beside the chart area

padding: number | { top: number; bottom: number; }

Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.

text: string | string[]

Title text to display. If specified as an array, text is rendered on multiple lines.