Home > @plotex/chart-def > IChartTitle

IChartTitle interface#

Sets the title for the chart.

Signature:
export interface IChartTitle

Properties#

PropertyTypeDescription
align?"left" | "right" | "center"(Optional) Sets the alignment for the title.
floating?boolean(Optional) Set to true to float the text on top of the chart.
font?IFontConfig(Optional) Configures the title's font.
margin?number(Optional) Vertical spacing around the title.
offsetX?number(Optional) Sets the left offset for title text.
offsetY?number(Optional) Sets the top offset for title text.
textstringText for the title.