-
Notifications
You must be signed in to change notification settings - Fork 0
kukkuk/Google-Charts-API-for-Rails
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The aim of this project is to make it simple to use the Google Charts API in your Rails App I've only just started, but will push changes a I go along. My aim is to write an DSL for Google Charts API. This DSL can be used in views like this: GChart.line do |l| l.size :width => 250, :height => 200 l.data :source => @users, :labels => "username", :values => "age" end Where @users is an array of ActiveRecord objects. This should then draw the chart in your view by inserting something like this: <img src="http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=t:40,60,60,45,47,75,70,72"/>
About
Google Charts API for Rails
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published