Skip to content

Annotations are not drawn if the id is animations or label #625

@stockiNail

Description

@stockiNail

If you set an annotation with id is equals animations or label, the annotations is not drawn on the chart.

Config example:

annotations: {
  label: {
    type: 'point',
    xScaleID: 'x',
    yScaleID: 'y',
    xValue: 5,
    yValue: 5
  }
}

This seems to be related to the fallback because animations and label are 2 properties of annotations defaults and are objects.

Codepen: https://codepen.io/stockinail/pen/JjrmRBR

EDIT: the annotations are not drawn because drawTime is undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions