gruff 0.0.4 → 0.0.5
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/assets/plastik-yellow.png +0 -0
- data/lib/gruff/base.rb +4 -4
- data/test/line_test.rb +0 -2
- metadata +3 -2
Binary file
|
data/lib/gruff/base.rb
CHANGED
@@ -17,7 +17,7 @@ require 'yaml'
|
|
17
17
|
|
18
18
|
module Gruff
|
19
19
|
|
20
|
-
VERSION = '0.0.
|
20
|
+
VERSION = '0.0.5'
|
21
21
|
|
22
22
|
class Base
|
23
23
|
|
@@ -271,13 +271,13 @@ protected
|
|
271
271
|
# Draws a legend with the names of the datasets matched to the colors used to draw them.
|
272
272
|
def draw_legend
|
273
273
|
return unless @show_legend
|
274
|
-
|
275
|
-
@color_index = 0
|
276
|
-
@legend_labels = @norm_data.collect {|item| item[0] }
|
277
274
|
|
278
275
|
# Sort norm_data with avg largest values set first (for display)
|
279
276
|
sort_norm_data()
|
280
277
|
|
278
|
+
@color_index = 0
|
279
|
+
@legend_labels = @norm_data.collect {|item| item[0] }
|
280
|
+
|
281
281
|
legend_square_width = 20 # small square with color of this item
|
282
282
|
|
283
283
|
# May fix legend drawing problem at small sizes
|
data/test/line_test.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: gruff
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2005-11-
|
6
|
+
version: 0.0.5
|
7
|
+
date: 2005-11-17 00:00:00 -08:00
|
8
8
|
summary: Beautiful graphs for one or multiple datasets.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- lib/gruff/line.rb
|
42
42
|
- lib/gruff/pie.rb
|
43
43
|
- assets/bubble.png
|
44
|
+
- assets/plastik-yellow.png
|
44
45
|
- test/area_test.rb
|
45
46
|
- test/bar_test.rb
|
46
47
|
- test/line_test.rb
|