Skip to content

Title

Configure the graph title text and alignment.

Options

OptionTypeDefaultDescription
drawbooleantrueShow/hide the title
contentstring"Graph"Title text
alignmentstart|center|endcenterHorizontal alignment
fontFamilystring"monospace"Font family
fontSizenumber24Font size in pixels
colourstring"black"Text color

Alignment

ValueDescription
startLeft-aligned
centerCentered
endRight-aligned

No Title

Hide the title with draw: false:

Type Reference

See TitleOptions for full TypeScript definitions.

Released under the ISC License.