README.markdown in grosser-db_graph-0.1.3 vs README.markdown in grosser-db_graph-0.1.4
- old
+ new
@@ -17,17 +17,17 @@
./script/plugins install git://github.com/grosser/db_graph.git
Usage
=====
-Static interface for single lines
DBGraph::Line.url(:weeks, User, :created_at, :at=>Time.now)
Or instance interface for multiple lines
+ #everything
g = DBGraph::Line.new(:weeks)
- #minutes/hours/days/weeks/months in a selected interval (:at is expanded to a interval, here: 2009-2010)
- g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'))
+ #selected interval (:at is expanded to a interval, here: 2009-2010)
+ g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'), :show_legend=>false)
g.add(User, :created_at)
g.add(Item, :sold_at, :label=>'Things we sold')
g.add(Product, :sold_at, :conditions=>['merchandise = ?',false])
...
\ No newline at end of file