Browse files

adding support for google chart api pie graphs

  • Loading branch information...
1 parent 6534456 commit 45b8493f49afe1a91c7189b0085dceeaca871143 @addyosmani committed May 1, 2011
Showing with 6 additions and 1 deletion.
  1. +3 −0 css/application.css
  2. +3 −1 index.html
View
3 css/application.css
@@ -149,4 +149,7 @@ h1 {
overflow: hidden;
width: 420px;
word-wrap: break-word
+}
+
+.gchart{
}
View
4 index.html
@@ -49,7 +49,9 @@
<h1>Click Statistics</h1>
<h1 class="longUrl">${long_url}</h1>
-
+ {{if stats}}
+ <img class="gchart" src="http://chart.apis.google.com/chart?chs=350x250&cht=p&chd=t:${stats.global_clicks},${stats.user_clicks}&chdl=Global+clicks|User+clicks&chtt=Global+vs.+User+Clicks" width="350" height="250" alt="Global vs. User Clicks" />
+ {{/if}}
<p>Short URL:
{{if short_url}}
<a href="${short_url}">${short_url}</a>

0 comments on commit 45b8493

Please sign in to comment.