Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check "Scales" options first to continue #49

Closed
yusufozturk opened this issue Dec 29, 2016 · 1 comment
Closed

Check "Scales" options first to continue #49

yusufozturk opened this issue Dec 29, 2016 · 1 comment
Labels

Comments

@yusufozturk
Copy link
Contributor

Before processing, need to check "Scales" options if it's null or not. Some charts like "Pie chart" etc. may not have "Scales" options.

image

Error line:
https://github.com/chartjs/chartjs-plugin-annotation/blob/master/src/annotation.js#L36,L37

@lefterisnik
Copy link

A quick workaround about this until PR to be merged is:

scales:{
  yAxes: [],
  xAxes: []
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants