Highstocks-Rails
This gem just includes Highstocks as an asset in the Rails 3.1 (or newer) asset pipeline.
The gem currently uses Highstock 2.1.5
What is Highstock?
Highstock lets you create stock or general timeline charts in pure JavaScript, including sophisticated navigation options like a small navigator series, preset date ranges, date picker, scrolling and panning.
Highstock is not free for commercial use, so make sure you have a valid license to use Highstocks.
Will including this gem also give Higcharts features?
The answer is here in this link: Yes, all features of Highcharts are included in Highstock.
Here is a Sample Application showing the usage and also plotting both highstocks and highcharts. 👍
Installation
Add the gem to the Gemfile:
gem "highstocks-rails"
Usage
Note: v2.1.5 onwards there is a renaming of highstocks
to highstock
.
This is just done to keep the similar naming convention. The impact of this
will be changing your require highstocks
to require highstock
.
In your JavaScript manifest (e.g. application.js
):
//= require highstock
To include one of the other adapters:
//= require highstock/adapters/standalone-framework
To include one of the other modules:
//= require highstock/modules/canvas-tools
//= require highstock/modules/data
//= require highstock/modules/drilldown
//= require highstock/modules/exporting
//= require highstock/modules/funnel
//= require highstock/modules/heatmap
//= require highstock/modules/solid-gauge
//= require highstock/modules/no-data-to-display
To include one of the other themes:
//= require highstock/themes/dark-blue
//= require highstock/themes/dark-green
//= require highstock/themes/dark-unica
//= require highstock/themes/gray
//= require highstock/themes/grid
//= require highstock/themes/grid-light
//= require highstock/themes/sand-signika
//= require highstock/themes/skies
Supports both highstocks and highcharts
Licensing
Highstocks, has its own, separate licensing.
The gem itself is released under the MIT license
🙏