Skip to content

Title

Reference

A scale title is the label that appears alongside the axes (scales) of the chart, providing descriptive information about the data represented by that axis. It helps users understand the context of the chart by explaining what the axis values mean.

1
2
3
4
5
6
7
8
.Options(o => o
    .Scales(s => s
        .ScaleId("y")
        .BeginAtZero(true)
        .Title(t => t
            .Display(true)
            .Color("#191")
            .Text("Value"))))

Display

If true, display the axis title. Default false

.Display(true)

Align

Alignment of the axis title. Possible options are 'start', 'center' and 'end'. Default 'center'

.Align(TitleAlign.Start)

Text

The text for the title. (i.e. "# of People" or "Response Choices").

.Text("Response Choices")
The text for the title(s).
.Text("text1", "text2")

Color

Color of label.

.Color("#191")

Font

See font configuration. 🔗

.Font(f => f.Family("Helvetica").Size(10))

Padding

Padding to apply around scale labels. Only top, bottom and y are implemented. Default 4

.Padding(2)
See padding configuration. 🔗
.Padding(p => p.Top(5).Bottom(10))