GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Fix bar graph to list in right order; fit bar graph inside wrapper
kneath (author)
Mon May 12 00:20:24 -0700 2008
commit  a9b39f48c561b9c6971fd0bfe1d89c52e36689a3
tree    7127d4aa114a554836b552e520eb8e0fa1fb63bb
parent  6b66002263043b795a5270767703675c2b6a94b9
...
13
14
15
 
16
17
18
...
13
14
15
16
17
18
19
0
@@ -13,6 +13,7 @@ module Merb
0
         query = "http://chart.apis.google.com/chart?cht=bvs&chs=#{options[:size]}&chco=#{options[:color]}"
0
         query << "&chd=t:" + collection.collect{|d| d.send(y_method) }.join(",")
0
         query << "&chds=0,#{max}"
0
+ query << "&chbh=14"
0
         query << "&chxt=x,y"
0
         query << "&chxl=0:|#{labels.join('|')}|1:|0|#{number_with_delimiter max/4}|#{number_with_delimiter max*2/4}|#{number_with_delimiter max*3/4}|#{number_with_delimiter max}"
0
         query << "&chg=" + [5000, 25, 1, 3].join(',')
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 <h1>Overview</h1>
0
 
0
 <h3>Impressions in the past 30 days</h3>
0
-<p><%= google_bar_graph(@days, :short_date, :impressions) %></p>
0
+<p><%= google_bar_graph(@days.reverse, :short_date, :impressions) %></p>
0
 <table>
0
   <tr>
0
     <th>Date</th>

Comments

    No one has commented yet.