Skip to content

GC.title() ​

Add a title and subtitle to the chart.

Usage ​

python
chart.title(
    title,
    subtitle,
    style,
    subtitle_font,
    title_font,
    show,
    height,
    align,
    spacing,
    **options,
)

An argument shown without a default is optional too: left out, the chart keeps its default.

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
title, subtitlestr, optionalThe texts; HTML is allowed.
styledictCSS styles of the title container.
subtitle_font, title_fontdictFont options, e.g. {"fontSize": "18px"}.
showboolWhether to show the title. Default True.
heightstr or float, optionalHeight of the title, e.g. "40px". Default: from the text.
alignstr, optional"left", "center" or "right". Default "center".
spacingfloat, optionalPixels between the title and the subtitle.
**optionsFurther options, e.g. position.

Value ​

GC: The chart.