finds.dev

michelson/lazy_high_charts

Make highcharts a la ruby , works in rails 5.X / 4.X / 3.X, and other ruby web frameworks

View on GitHubHomepage ↗

★ 1,045RubyMITupdated Feb 2023

// the take

A Ruby DSL that wraps Highcharts, letting you build chart configs in Ruby objects instead of hand-writing JS/JSON. Built for Rails but also works with Sinatra and Nanoc through a shared core. Useful if you want server-side chart configuration without touching Highcharts' JS API directly.

The DSL maps closely to Highcharts' own option names (series, xAxis, yAxis, chart, etc.), so anyone who already knows Highcharts can be productive immediately without learning a new abstraction. It isn't Rails-locked — the core gem is framework-agnostic with separate helpers for Sinatra and Nanoc, backed by real dummy apps for each in the spec suite. The `rake highcharts:update` task pulls the JS library straight from code.highcharts.com, decoupling gem releases from Highcharts' own release cycle.

Last commit is from February 2023 — no Rails 6/7 story here, and the install instructions still assume classic Sprockets (`//= require`), which doesn't work out of the box with import maps or jsbundling-rails on current Rails defaults. Highcharts itself requires a paid license for commercial use, and that's easy to forget since the gem just vendors the JS for you with no license-check or warning at runtime. CI is Travis CI, which stopped offering free OSS builds in 2021, so that badge is dead and there's no visible evidence of the test suite passing on anything from the last several years. Because the JS is fetched live from Highcharts' CDN at update time, there's a real risk of drift between what the Ruby DSL exposes and whatever options the currently-vendored Highcharts version actually supports.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,045
Forks
238
Language
Ruby
License
MIT
Last commit
11 Feb 2023

// nearby

If lazy_high_charts isn't quite it.

All repos →