Skip to content
Young edited this page May 15, 2015 · 3 revisions

HighStock is great for timeseries-type graphics, with selectable periods and everything, but it won't work

in fact, it's quite easy for Rails4+

  • First change the sequence in the app/assets/javascripts/application.js: //= require highcharts/highstock
    //= require highcharts/highcharts
    //= require highcharts/highcharts-more
    //= require highcharts/modules/exporting

  • Then in your view:

<%= high_stock("my_id", @h) %>

Just use the same Controller functions as for regular HighCharts.

Clone this wiki locally