Tomas Barry edited this page Dec 18, 2017 · 12 revisions

User Guide for lazy_high_charts gem

Demo Project && site

https://github.com/xiaods/highcharts-bootstrap

Installation

To install it, you just need to add it to your Gemfile:

gem 'lazy_high_charts'

then run

bundle install

to install the lazy_high_charts gem.

Configuration

in your app/assets/application.js (or to the active_admin.js to use in Active Admin)

//= require highcharts/highstock
//= require highcharts/highcharts                                                           
//= require highcharts/highcharts-more                                                         

highcharts js files location:

  • vendor/assets/javascripts/highcharts/highcharts.js
  • vendor/assets/javascripts/highcharts/highcharts-more.js
  • vendor/assets/javascripts/highcharts/modules/exporting.js
  • vendor/assets/javascripts/highcharts/adapters/mootools-adapter.js
  • vendor/assets/javascripts/highcharts/adapters/prototype-adapter.js

highstock js files location:

  • vendor/assets/javascripts/highcharts/highstock.js
  • vendor/assets/javascripts/highcharts/stock/highcharts-more.js
  • vendor/assets/javascripts/highcharts/stock/modules/exporting.js
  • vendor/assets/javascripts/highcharts/stock/adapters/mootools-adapter.js
  • vendor/assets/javascripts/highcharts/stock/adapters/prototype-adapter.js

Examples

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.