Created
April 4, 2016 14:55
-
-
Save juangesino/b2c387dc929141a79ef6ab073085c3a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GoogleCharts | |
def self.url(options = {}) | |
chs = options[:size] || "250x100" | |
chd = options[:data] || "t:60,40" | |
cht = options[:type] || "p3" | |
chl = options[:labels] || "You|Me" | |
url = "https://chart.googleapis.com/chart?chs=#{chs}&chd=#{chd}&cht=#{cht}&chl=#{chl}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment