Skip to content

Instantly share code, notes, and snippets.

@klochner
Created February 24, 2011 22:23
Show Gist options
  • Save klochner/843025 to your computer and use it in GitHub Desktop.
Save klochner/843025 to your computer and use it in GitHub Desktop.
def chart(chds,chxr,data)
str=%Q{http://chart.apis.google.com/chart?chxt=y,r&chbh=a&chs=200x200&cht=bvg&chf=bg,s,efefef}
str+= %Q{&chds=0,#{chds}&chxr=0,0,#{chxr}}
str += %Q{&chd=t:#{data}}
str
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment