差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| javascript:google_charts [2020/04/26 10:02] – 作成 ともやん | javascript:google_charts [2020/04/26 17:51] (現在) – [サンプル] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | < | ||
| + | <script type=" | ||
| + | </ | ||
| ====== Google Charts ====== | ====== Google Charts ====== | ||
| 本家: [[https:// | 本家: [[https:// | ||
| + | |||
| + | ===== サンプル ===== | ||
| + | < | ||
| + | <div id=" | ||
| + | < | ||
| + | google.charts.load(' | ||
| + | google.charts.setOnLoadCallback(drawChart); | ||
| + | | ||
| + | function drawChart() { | ||
| + | var data = google.visualization.arrayToDataTable([ | ||
| + | [' | ||
| + | [' | ||
| + | [' | ||
| + | [' | ||
| + | [' | ||
| + | ]); | ||
| + | | ||
| + | var options = { | ||
| + | chart: { | ||
| + | title: ' | ||
| + | subtitle: ' | ||
| + | } | ||
| + | }; | ||
| + | | ||
| + | var chart = new google.charts.Bar(document.getElementById(' | ||
| + | | ||
| + | chart.draw(data, | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== 参考文献 ===== | ||
| + | [[https:// | ||