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
| Argument | Type | Description |
|---|---|---|
title, subtitle | str, optional | The texts; HTML is allowed. |
style | dict | CSS styles of the title container. |
subtitle_font, title_font | dict | Font options, e.g. {"fontSize": "18px"}. |
show | bool | Whether to show the title. Default True. |
height | str or float, optional | Height of the title, e.g. "40px". Default: from the text. |
align | str, optional | "left", "center" or "right". Default "center". |
spacing | float, optional | Pixels between the title and the subtitle. |
**options | Further options, e.g. position. |
Value
GC: The chart.
