anchor.diff:  %>
   <script type="text/javascript">
   google.load("visualization", "1", {packages:["corechart"]});
  -google.setOnLoadCallback(fetchData);
  +google.setOnLoadCallback(drawChart);
   function fetchData() {
  -  $j.getJSON('<%= url_for :path => params[:path] %>.json', {when: '<%= @when %>'}, function(res) {
  +  $j.getJSON('<%= url_for :path => params[:path] %>.json', {when: '<%= jh @when %>'}, function(res) {
                          var data = new google.visualization.DataTable(res.table, res.version);
                          for(var i=0; i<res.urls.length; i++ ) { data.setRowProperty(i, 'url', res.urls[i]); }
                          drawBarChart('chart_div', res.title, data);
  
positive.code: }
  
  function drawBarChart(ele_id, title, data) {
    var width = 1000;
    var height = data.getNumberOfRows() * 36 + 80;
    var maxValue = 0;
    for(var i=1; i<data.getNumberOfColumns(); i++) {
      maxValue = Math.max(maxValue, data.getColumnRange(i).max);
  
negative.code:       }
     }
    });
  
    $j(window).resize(function() {
      chartOptions.width = $j('#' + ele_id).width();
      chart.draw(data, chartOptions);
    });
  }
  
  </script>
  