Text
A component that adds a descriptive text, commonly used as axis title or chart title.
Data
Does not support a data source. Text is either set explicitly or extracted from the data source of a scale.
Layout
The component adjusts to the dock
setting and rotates the text to perpendicular
to the docking direction.
Interaction
Interaction is not supported.
Example
Explicitly set text
{ type: 'text', text: 'My title',}
Extract title from the data source of the scale
{ type: 'text', scale: '<name-of-scale>'}
API Reference
For more details, see the API.