bruce-bumpspark 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +20 -8
- data/TODO.markdown +1 -0
- data/VERSION +1 -1
- data/bumpspark.gemspec +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -1,26 +1,38 @@
|
|
1
1
|
# Bumpspark
|
2
2
|
|
3
|
-
|
4
|
-
collaborated on at [RedHanded] [1], built out a gem suitable for
|
5
|
-
inclusion in Rails projects (and standalone Ruby code).
|
6
|
-
|
7
|
-
This version of the library generates a transparent PNG.
|
3
|
+
Generate "bumpspark"-style sparklines from Ruby & Rails.
|
8
4
|
|
9
|
-
|
5
|
+
Note: This library is based on _why's `bumpspark' code, originally discussed and
|
6
|
+
collaborated on at [RedHanded] [1]. It has been refactored and built out as
|
7
|
+
a gem suitable for inclusion in Rails projects (and standalone Ruby code).
|
8
|
+
|
9
|
+
Bumpsparks are sparklines which show discrete data points and highlight
|
10
|
+
extremes. If you like Tufte and _why, you'll probably like these.
|
11
|
+
|
12
|
+
## Credits
|
13
|
+
|
14
|
+
Thanks to the various collaborators on _why's original post:
|
10
15
|
|
11
16
|
* _why (concept, BMP implementation)
|
12
17
|
* jzp (png)
|
13
18
|
* MenTaLguY (transparency)
|
14
19
|
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
sudo gem install bruce-bumpspark --source http://gems.github.com
|
23
|
+
|
15
24
|
## Usage
|
16
25
|
|
17
26
|
### From Rails
|
18
27
|
|
19
|
-
1. Include the gem as a dependency.
|
28
|
+
1. Include the gem as a dependency in `config/environment.rb`
|
29
|
+
|
30
|
+
config.gem 'bruce-bumpspark', :lib => 'bumpspark', :source => 'http://gems.github.com'
|
31
|
+
|
20
32
|
2. Use `bumpspark_tag` from your views or helpers, passing it the data points
|
21
33
|
you'd like graphed.
|
22
34
|
|
23
|
-
|
35
|
+
<%= bumpspark_tag [12, 34, 12, 42, 12, 23] %>
|
24
36
|
|
25
37
|
## From Ruby
|
26
38
|
|
data/TODO.markdown
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/bumpspark.gemspec
CHANGED