ChartHeader

The <ChartHeader> is a component which combines the chart title and year. It is shown above the chart.

Both title and year are optional. When neither is provided then the component renders no DOM element.

In many cases the <ChartHeader> will display both the title and year, or just the year.

As a percentage of GDP
2019
Title and year
2019
Only the year

The <ChartHeader> above multi-line charts (time series) will include only the title and no year.

As a percentage of GDP; Information industries (D26+D58T63)
Showing only the title without year

Note: The <ChartHeader> component includes bottom margin!