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

Should throw better errors when using invalid chart type #324

Closed
awsmsrc opened this issue Aug 17, 2015 · 1 comment
Closed

Should throw better errors when using invalid chart type #324

awsmsrc opened this issue Aug 17, 2015 · 1 comment

Comments

@awsmsrc
Copy link

awsmsrc commented Aug 17, 2015

I copied the parseRawData example for my app which used a chartType of 'metric'
I switched this to 'line' it should have been 'linechart' (My fault rtfm)

I got a pure js error Uncaught TypeError: Cannot read property 'initialize' of undefined (line number 4680)

It would have been nice (and a timesaver) to have a more appropriate error message

@dustinlarimer
Copy link
Contributor

👍 good call, @awsmsrc - thanks for the suggestion! We'll add some messaging around this over the next few patch releases.

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

No branches or pull requests

2 participants