Skip to content

gristmill/gauges

Repository files navigation

Installation

Add to your project Gemfile

gem 'gauge', git: 'git@github.com:AgilionApps/gauges.git'

gauge requires Raphael Javascript library. It is bundled with this Gem in case you don't already use it. Just add the following dependencies to your app/assets/javascripts/application.js file

//= require raphael
//= require gauge

Usage

To draw a gauge call the gauge erb tag with div, percent, fill and highlight properties like so...


<%= gauge div: "my-div", percent: "50", fill: "red", highlight: "blue" %>

It's Pretty

gauge

Releases

No releases published

Packages

No packages published

Languages