Sha256: 34f30dc8c53aca2f6b14a2501fe6e52c4305e7abb0b7465a15067562fdd17c13

Contents?: true

Size: 977 Bytes

Versions: 1

Compression:

Stored size: 977 Bytes

Contents

**********************************
** Spark Graph Library for Ruby **
**********************************

Geoffrey Grosenbach
boss@topfunky.com
http://nubyonrails.topfunky.com

Daniel Nugent
nugend@gmail.com


*** What is it? ***

A library for generating small sparkline graphs from Ruby. Use it in desktop apps or Rails apps. See the samples in the 'samples' directory.


*** How do I use it? ***

Read the meager documentation in the enclosed 'docs' folder.

In Rails, copy the included files (sparklines_controller.rb, sparklines_helper.rb, sparklines.rb) into your controller, helper, and lib directories, respectively.

In your custom controller, do
	require_dependency 'sparklines'
and 
	helper :sparklines

In your view, call it like this:

<%= sparklines_tag [1,2,3,4,5,6] %> <!-- Gives you a smooth graph -->

Or specify details:

<%= sparklines_tag [1,2,3,4,5,6], :type => 'discrete', :height => 10, :upper => 80, :above_color => 'green', :below_color => 'blue' %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sparklines-0.2.7 README