lazy_high_charts icon indicating copy to clipboard operation
lazy_high_charts copied to clipboard

uncaught exception: Highcharts error #16: www.highcharts.com/errors/16

Open jhugon61 opened this issue 9 years ago • 3 comments
trafficstars

Rails 4.2 app Gemfile: gem 'lazy_high_charts', '~> 1.5', '>= 1.5.4'

Per the README, I added the following lines to my application.js //= require highcharts/highcharts //= require highcharts/highcharts-more //= require highcharts/highstock

I can create charts just fine, but I noticed that the browser console reported the above error: uncaught exception: Highcharts error #16: www.highcharts.com/errors/16 on every page which loads application .js. Removing the last line //= require highcharts/highstock from application.js fixes the error, but I am not sure this is the right solution. Am I missing a step in my installation? Or did I just misunderstand that all three require lines should be included?

jhugon61 avatar Feb 23 '16 13:02 jhugon61

After looking at the error page, it doesn't seem to be a huge issue if you want to leave in all three lines.

However, I agree, the docs need to be updated to deal with this error.

excel-tricks avatar Feb 23 '16 17:02 excel-tricks

Thanks for the quick response. I agree. I was mostly concerned that I might be doing something wrong (and I had some JS loading after these lines, which stopped working when I added High Charts, confusing the heck out of me). I appreciate the help, and the very helpful gem.

jhugon61 avatar Feb 23 '16 17:02 jhugon61

Thanks for report this , yes the README doc have to be updated

michelson avatar Mar 01 '16 04:03 michelson