Skip to content
Pretty gauges for your rails app http://rubygems.org/gems/gauge
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app/views/gauges
lib
test
vendor/assets/javascripts
.gitignore
Gemfile
README.md
Rakefile
gauge.gemspec

README.md

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

Something went wrong with that request. Please try again.