February 2019
Beginner to intermediate
284 pages
6h 20m
English
Labels can be generated with the generateLabels callback property. They should return an item object (the same object that is passed to an onClick function), which contains the properties listed as follows:
|
Object |
Value |
Description |
|
text |
String |
The text of the label |
|
datasetIndex |
Number |
The index of the label |
|
fillStyle, strokeStyle, lineCap, lineJoin, lineDash, lineWidth, lineDashOffset |
The same values as the corresponding Canvas commands |
Fill and stroke attributes for the legend box |
|
pointStyle |
circle, cross, crossRot, dash, line, rect, rectRounded, rectRot, star, triangle |
If legend.labels.usePointStyle is true, the label will use the same point style as the chart. This allows you to ... |
Read now
Unlock full access