Title Plugin
Reference External Link
The chart title defines text to draw at the top of the chart.
Namespace:
options.plugins.title
.Options(o => o
.Plugins(p => p
.Title(t => t
.Text("Chart Title")
.Color("blue")
.Position(TitlePosition.Top))))Align
Alignment of the title. default 'center'
.Align(TitleAlign.Center)Color
Color of text.
.Color("rgb(75, 192, 192)")Display
Is the title shown? default false
.Display(true)FullSize
Marks that this box should take the full width/height of the canvas. If false, the box is sized and placed above/beside the chart area. default false.
.FullSize(true)Position
Position of title. default 'top'
.Position(TitlePosition.Top)Font
See font configuration. Link
.Font(f => f.Family("...").Size(10))Padding
Padding around the title.
.Padding(5)See padding configuration. Link
.Padding(p => p.Top(5).Bottom(10))Text
The string title.
.Text("Chart Title")Define multiple title.
.Text("Title 1", "Title 2")