Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

highcharts-rails

Simple gem to include Highcharts in a Rails 3.1 (or above) app

Subscribe to updates I use highcharts-rails


Statistics on highcharts-rails

Number of watchers on Github 193
Number of open issues 2
Average time to close an issue 18 days
Main language JavaScript
Average time to merge a PR about 17 hours
Open pull requests 5+
Closed pull requests 9+
Last commit over 2 years ago
Repo Created over 8 years ago
Repo Last Updated over 2 years ago
Size 4.08 MB
Organization / Authorperfectlynormal
Latest Releasev6.0.3
Contributors8
Page Updated
Do you use highcharts-rails? Leave a review!
View open issues (2)
View highcharts-rails activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating highcharts-rails for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Highcharts-Rails

This gem just includes Highcharts as an asset in the Rails 3.1 (or newer) asset pipeline. Highcharts is not free for commercial use, so make sure you have a valid license to use Highcharts.

If you are looking to include Highstock, Justin Kuepper has made highstock-rails, so check it out.

Installation

Add the gem to the Gemfile

gem "highcharts-rails"
# The gem version mirrors the included version of Highcharts

Changes

We have a tiny changelog for this gem, but since it's just a tiny wrapper gem, refer to the Highcharts changelog for the important things.

Usage

In your JavaScript manifest (e.g. application.js)

//= require highcharts
// to get the new features in 2.3.0:
//= require highcharts/highcharts-more

Including the modules you want and need

//= require highcharts/modules/annotations
//= require highcharts/modules/data
//= require highcharts/modules/drilldown
//= require highcharts/modules/exporting
//= require highcharts/modules/funnel
//= require highcharts/modules/heatmap
//= require highcharts/modules/no-data-to-display
//= require highcharts/modules/offline-exporting

Or one of the themes

//= require highcharts/themes/dark-blue
//= require highcharts/themes/dark-green
//= require highcharts/themes/gray
//= require highcharts/themes/grid
//= require highcharts/themes/skies

Some of the modules are meant to be loaded by Highcharts on-demand, such as canvas-tools (https://github.com/highcharts/highcharts/issues/2311#issuecomment-25685317), so don't require them on your own.

Other than that, refer to the Highcharts documentation

Licensing

Highcharts, which makes up the majority of this gem, has its own, separate licensing.

The gem itself is released under the MIT license

Signing

Release tags and all released gems (from 3.0.0 onwards) is signed using rubygems-openpgp using my personal key, and the fingerprint is also included below.

pub   4096R/C9A283C9 2017-11-10 [expires: 2021-11-10]
      Key fingerprint = 18C6 2780 9B69 5EAC 0183  69B1 DD27 0F98 C9A2 83C9
uid       Per Christian Bechstrm Viken <perchr@northblue.org>
uid       [jpeg image of size 9212]
sub   4096R/AFA535FE 2017-11-10 [expires: 2021-11-10]
highcharts-rails open issues Ask a question     (View All Issues)
  • about 5 years canvas-tools: Cannot read property 'prototype' of undefined
  • about 5 years Running 'rake assets:precompile' in dev mode makes Rails include Highchart code twice (Uncaught Highcharts error #16)
  • about 5 years Modules are not being loaded
  • almost 7 years License missing from gemspec
  • about 7 years Move export endpoint to a separate gem
highcharts-rails open pull requests (View All Pulls)
  • Update ```map.js```, delete ```annotation.js```, add Highmaps and add Highstock
  • upgrade to 5.0.2
  • Upgrade Highcharts to 5.0.10
  • Highcharts upgrade to 5.0.9
  • Upgrade Highchats to 5.0.8
highcharts-rails questions on Stackoverflow (View All Questions)
  • Highcharts Rails Pie Chart, How to pass label data in to pie chart?
  • How to push array into highcharts rails
  • Heroku and HighCharts Rails Gem -
  • highcharts & rails
  • Iterating through a users attributes for highcharts rails
  • Highcharts - Rails array includes empty date entries
highcharts-rails list of languages used
More projects by PerfectlyNormal View all
Other projects in JavaScript