michelson / lazy_high_charts

Make highcharts a la ruby , works in rails 5.X / 4.X / 3.X, and other ruby web frameworks

Home Page:http://www.suipit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jhugon61 opened this issue · comments

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?

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.

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.

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