Options
Example:
Example:
color: [
'blue', // color for data at index 1
'black', // color for data at index 3
//...
The context object contains the following properties:
- : the associated chart
dataIndex
: index of the current datadataset
: dataset at indexdatasetIndex
- : index of the current dataset
Important: since the context can represent different types of entities (dataset, data, etc.), some properties may beundefined
so be sure to test any context property before using it.