Skip to content

annotation does not shown in Vue environment #265

Description

@kenmasumitsu

Annotation is not shown in Vue project.

It is the demonstration codes of the problem. (chartjs-plugin-annotation 0.5.7)
https://jsfiddle.net/kenmasu/Lgt7vpyx/1/

It is similar codes without Vue. It shows annotations expectedly.
https://jsfiddle.net/kenmasu/hm6p0ou3/1/

It seems that Vue automatically change normal objects to Vue Observable objects.
So that, the plugin failed to merge annotations (default annotations and given annotations) in initConfig() in helper.js.

I modified initConfig() and confirmed it fixed.
kenmasumitsu@3f5315f
https://jsfiddle.net/kenmasu/r1xz9tLj/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions