title: Rails, placing Ruby variable's into Javascript for Google Calendar
body: <p>hi i am wondering if anyone has played with google charts before its great for the lazy programmer to pump up his analytic's in any site. i am very new to javascript in fact today was my first day using it. so i have some javascript from google that generates these charts to insert the base data it supplies you with bare bones, in javascript like this:</p>
  
  <pre><code>// Create the data table.
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Name');
      data.addColumn('number', 'Velocity');
      data.addRows([
        ['Gary', 9],
        ['Hannes', 11],
        ['Sandra', 5],
        ['Rob', 3],
  </code></pre>
  
  <p>this is all between &lt; script > tags. now i am just playing with it. but having static data in here is about useful as a hole in a boat. how could i append the numbers with say this haml table i made:</p>
  
  <pre><code>%table.gap
    - test = sprint.work_by_developer
    %tr
      - test.each do |data|
        %td.column.developer_name
          = data.name
          \:
        %td.type_of_work
          Features:
          %span.indicator_color
            #{data.features} points
          %br/
          Chores: 
          %span.indicator_color
            = data.chores
          %br/
          bugs:
          %span.indicator_color
            = data.bugs
  </code></pre>
  
  <p>is it possible to loop through the javascript do something like this:</p>
  
  <pre><code>......
        [data.name, data.features],
        ])
  </code></pre>
  
  <p>so that if new people join in the team or the amount of features changes on the fly the chart will adjust in real time??</p>
  
  <p>cool, thanks in advance. this would be a really cool feature.</p>