Skip to content

Instantly share code, notes, and snippets.

@jwill
Created July 3, 2009 06:08
Show Gist options
  • Save jwill/139948 to your computer and use it in GitHub Desktop.
Save jwill/139948 to your computer and use it in GitHub Desktop.
Your original URL string:
http://chart.apis.google.com/chart?cht=bhs&chs=500x600&chco=FF9900|FF3300&chxt=r,x,t&chxl=0:|ManningBooks|groovymag|graemerocher|iamthechad|ldaley|GeertjanW|HamletDRC|snaglepus|daveklein|gr8conf|RobertFischer|dima767|glaforge|grailsmx|mittie|grailsframework|wangjammer5|grailspodcast|hansamann|aalmiray&chd=t:27,20,20,18,16,15,15,15,13,12,10,10,9,9,8,8,8,7,7,7
Tweaked URL string:
http://chart.apis.google.com/chart?cht=bhs&chs=500x600&chco=FF9900|FF3300&chxt=r,x,t&chxl=0:|ManningBooks|groovymag|graemerocher|iamthechad|ldaley|GeertjanW|HamletDRC|snaglepus|daveklein|gr8conf|RobertFischer|dima767|glaforge|grailsmx|mittie|grailsframework|wangjammer5|hansamann|grailspodcast|aalmiray|1:|0|10|20|27|2:|0|10|20|27&chd=t:27,20,19,18,16,15,15,15,13,12,10,10,9,9,8,8,8,7,7,7&chds=0,27
What I added:
scale="${[min1, max1, minN, maxN]}" (translates to chds in the final string)
add axis-labels for axis 1 and 2 (translates to chxl in the final string)
I'd suggest a constructing it using intervals over the range from the min to max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment