grosser-db_graph 0.1.3 → 0.1.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 CHANGED
@@ -19,14 +19,14 @@ Or as Rails plugin:
19
19
 
20
20
  Usage
21
21
  =====
22
- Static interface for single lines
23
22
  DBGraph::Line.url(:weeks, User, :created_at, :at=>Time.now)
24
23
 
25
24
  Or instance interface for multiple lines
25
+ #everything
26
26
  g = DBGraph::Line.new(:weeks)
27
27
 
28
- #minutes/hours/days/weeks/months in a selected interval (:at is expanded to a interval, here: 2009-2010)
29
- g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'))
28
+ #selected interval (:at is expanded to a interval, here: 2009-2010)
29
+ g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'), :show_legend=>false)
30
30
 
31
31
  g.add(User, :created_at)
32
32
  g.add(Item, :sold_at, :label=>'Things we sold')
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
data/lib/db_graph/line.rb CHANGED
@@ -37,6 +37,7 @@ module DBGraph
37
37
  end
38
38
  line.axis :x, :labels => x_labels
39
39
  line.axis :y, :labels => y_labels
40
+ line.show_legend = (@options[:show_legend]!=false)
40
41
  end.to_url
41
42
  end
42
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grosser-db_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-26 00:00:00 -07:00
12
+ date: 2009-05-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency