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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions