标题(Title)
Previous
event
Next
Axis
Loading...
Title in G2 is used to specify the title of the chart.
Titles can be configured at the level of mark:
({type: 'interval',title: {title: 'hello',subtitle: 'world',},});
// APIchart.interval().title({title: 'hello',subtitle: 'world',});
Titles can also be configured at the level of view:
({type: 'view',title: {title: 'hello',subtitle: 'world',},});
// APIchart.title({ title: 'hello', subtitle: 'world' });
More options about title, see the API document of title.