<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=}' };
   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=500}px; height: ${height=250}px;"></div>


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