February 2019
Beginner to intermediate
284 pages
6h 20m
English
You can add a label or title for each axis in any Cartesian chart using the axis.scaleLabel property (for example, options.scales.xAxes[0].scaleLabel configures the title for the first x axis). The following table lists the configurable properties of a scaleLabel object:
|
Property |
Value |
Description |
|
display |
true or false (default) |
Displays or hides the axis title |
|
labelString |
String (default is '') |
The title for the axis |
|
lineHeight |
Number |
Spacing above and below the text |
|
fontColor, fontFamily, fontStyle |
String |
CSS font attributes |
|
fontSize |
Number |
Font size in pixels |
|
padding |
Number |
Spacing before and after the text |
Read now
Unlock full access