This gem just includes Highcharts as an asset in the Rails 3.1 asset pipeline. Highcharts is not free for commercial use, so make sure you have a valid license to use Highcharts.
Add the gem to the Gemfile
gem "highcharts-rails", "~> 0.1.0"
In your JavaScript manifest (e.g. application.js
)
//= require highcharts
To include one of the other adapters
//= require highcharts/adapters/mootools
//= require highcharts/adapters/prototype
Or the Exporting module
//= require highcharts/modules/exporting
Or one of the themes
//= require highcharts/themes/dark-blue
//= require highcharts/themes/dark-green
//= require highcharts/themes/gray
//= require highcharts/themes/grid
Other than that, refer to the Highcharts documentation
Highcharts, which makes up the majority of this gem, has its own, separate licensing.
The gem itself is released under the MIT license