<p><img src="http://chart.apis.google.com/chart?chs=300x300&chd=t:10,15,4,60,45|30,23,73,24,87&cht=lc&chco=ff0000,0000ff" alt=""/></p>
#freeze
 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
 <script type="text/javascript">
  google.load("visualization", "1", {packages:["corechart"]});
  google.setOnLoadCallback(drawChart);
  function drawChart() {
   var options = {
    title: '${title=}',
    vAxis: {
      viewWindow: {
       min: ${min=0}
      },
      gridlines: {
       count: ${gridcount=5}
      }
    }
   };
   var legend = '${legend=}'.split('|');
   legend.unshift('-');
   var idata = '${data=}'.split('||');
   var data = new Array(idata.length+1);
   data[0] = legend;
   for (var i = 0; i < idata.length; i++) {
    data[i+1] = idata[i].split('|');
    for (var j = 1; j < data[i+1].length; j++) {
     data[i+1][j] = parseInt(data[i+1][j]);
    }
   }
   var pdata = google.visualization.arrayToDataTable(data);
   var chart = new google.visualization.LineChart(document.getElementById('${id=}'));
   chart.draw(pdata, options);
  }
 </script>
 <div id="${id=}" style="width: ${width=500px}; height: ${height=250px};"></div>


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS