SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
今わたしが使いたいツール

Google Chart Tools
トライデントコンピュータ専門学校

Webデザイン学科 1年

林田 実樹
林田 実樹
- はやしだ みき -


トライデントコンピュータ専門学校 Webデザイン学科
プロフィール
好きなこと → ゲーム、寝る事
アルバイト中
ブログ → http://miki-weblog.com
子
猫
2
匹


飼
っ
て
い
ま
す
7%
8%
10%
11%
29%
35%
0
7.5
15
22.5
30
0 4 8 12 16
0
25
50
75
100
4 月 5 月 6 月 7 月
4 月
5 月
6 月
7 月
0 25 50 75 100
0
25
50
75
100
4 月 5 月 6 月 7 月
みなさんはどのように

グラフを作成しますか?
Excel
画像でしか載せられない
データの変更がめんどう
グラフのサイズを変更できない
Excalの難点
Google Chart Tools
JavaScriptで記述する

SVGを使ったグラフツール
Google Chart Tools とは
データの書き換えも楽
マウスをのせると詳細が見れる
サイズ・色の変更が可能
表との連動ができる
フィルタリングができる
Google Chart Tools のメリット
円グラフ     縦棒グラフ      横棒グラフ
        
折れ線グラフ    面グラフ        
  
            複合グラフ・階段グラフ・散布図 など
7%
8%
10%
11%
29%
35%
0
25
50
75
100
4 月 5 月 6 月 7 月
4 月
5 月
6 月
7 月
0 25 50 75 100
0
25
50
75
100
4 月 5 月 6 月 7 月
0
7.5
15
22.5
30
0 4 8 12 16
0
25
50
75
100
4 月 5 月 6 月 7 月
バブルチャート
Google Chart Tools 一般的なグラフ
ローソク足          ゲージメーター
地図チャート         ツリーマップ
                    表(テーブル)など
Google Chart Tools 特殊なグラフ
<script src= https://www.google.com/jsapi ></script>
google.setOnLoadCallback(drawChart);
↑ GoogleのサイトからAjax APIのロードをする
↑ ロード時のコールバック関数の設定
google.load('visualization', '1', {packages:[ corechart']});
Google Chart Tools
function drawChart(){
// ==================== データ指定 ====================
var data = google.visualization.arrayToDataTable([
['キャラ名', 'HP', '攻撃力'],
['キャラA', 588, 364],
['キャラB', 523, 238],
['キャラC', 529, 216],
['キャラD', 254, 221]
]);
Google Chart Tools
// ============= オプションの指定 =================
var options = {
title: 'キャラ(メイン使用)',
width: 1200,
height: 800,
colors: [ #0F0','#F00'],
backgroundColor: '#eee'
};
サイズ・色の変更
←グラフの背景
←グラフ内のチップの色
Google Chart Tools
var chart = 

new google.visualization.

ColumnChart(document.getElementById( character ));
縦棒グラフ
Google Chart Tools
<div id= character"></div>
HTML上
・空のdivを用意する
・IDをつける
chart.draw(data, options);
Google Chart Tools
HTML上
・空のdivを用意する
・IDをつける
var chart = 

new google.visualization.

ColumnChart(document.getElementById( character ));
縦棒グラフ
Google Chart Tools
<div id="character"></div>
例:
LineChart(折れ線グラフ)
PieChart(円グラフ)
BarChart(横棒グラフ)
Gauge(ゲージーメーター)
ComboChart(複合グラフ)
AreaChart(面グラフ)
GeoChart(地図チャート)
Googleサイトからjsapiの読み込み

コールバック関数の設定
パッケージの読み込み
配列の宣言とデータの格納
オプションの指定
グラフのオブジェクトの作成
グラフの描画
Google Chart Tools
地図上にバブルを配置できる
Google Chart Tools だけの機能
ネットが繋がる環境では扱いやすいグラフ
初心者から上級者まで簡単に作れる
Excelにはない機能が実装可能
Google Chart Tools のまとめ
http://miki-weblog.com
miki s weblog
詳しくはブログに……!
ご清聴ありがとうございました!

Contenu connexe

En vedette (16)

recruitment_Ipad_draft_2
recruitment_Ipad_draft_2recruitment_Ipad_draft_2
recruitment_Ipad_draft_2
 
Maven part 1
Maven part 1Maven part 1
Maven part 1
 
Educacion digital
Educacion digitalEducacion digital
Educacion digital
 
Newsaccess Brochure
Newsaccess BrochureNewsaccess Brochure
Newsaccess Brochure
 
Eiffel
EiffelEiffel
Eiffel
 
CUNY Financial Aid
CUNY Financial AidCUNY Financial Aid
CUNY Financial Aid
 
Marketing Loves Sales 2016 Presentation
Marketing Loves Sales 2016 PresentationMarketing Loves Sales 2016 Presentation
Marketing Loves Sales 2016 Presentation
 
096-099_News_UP_2
096-099_News_UP_2096-099_News_UP_2
096-099_News_UP_2
 
Data weave
Data weave Data weave
Data weave
 
Octavo
OctavoOctavo
Octavo
 
Sem5 physics
Sem5 physicsSem5 physics
Sem5 physics
 
IN.PRS
IN.PRSIN.PRS
IN.PRS
 
Quotes
QuotesQuotes
Quotes
 
MOKOInvestorPresentationAug2016
MOKOInvestorPresentationAug2016MOKOInvestorPresentationAug2016
MOKOInvestorPresentationAug2016
 
Math 2007 pspm3
Math 2007 pspm3Math 2007 pspm3
Math 2007 pspm3
 
Kimia 2007 pspm
Kimia 2007 pspmKimia 2007 pspm
Kimia 2007 pspm
 

WCAN winter2015 LT hayashida