Options

    Example:

    Example:

    1. color: [
    2. 'blue', // color for data at index 1
    3. 'black', // color for data at index 3
    4. //...

    The context object contains the following properties:

    • : the associated chart
    • dataIndex: index of the current data
    • dataset: dataset at index datasetIndex
    • : index of the current dataset
      Important: since the context can represent different types of entities (dataset, data, etc.), some properties may be undefined so be sure to test any context property before using it.