Last active
May 21, 2016 08:28
-
-
Save geojackass/1754116482405d5f747a41120d356828 to your computer and use it in GitHub Desktop.
fish_price
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.charts.load('current', { | |
'packages': ['geochart'] | |
}); | |
google.charts.setOnLoadCallback(drawRegionsMap); | |
function drawRegionsMap() { | |
var data = google.visualization.arrayToDataTable([ | |
['都道府県', '海面漁獲物等販売金額(総額)_増減率'], | |
["北海道", -17.9357], | |
["青森", -30.0529], | |
["岩手", -49.023], | |
["宮城", -44.1335], | |
["秋田", -23.5018], | |
["山形", -26.7871], | |
["福島", -53.9628], | |
["茨城", -5.84], | |
["千葉", -20.8375], | |
["東京", -35.5953], | |
["神奈川", -35.2788], | |
["新潟", -23.614], | |
["富山", -9.9776], | |
["石川", -21.0128], | |
["福井", -17.6986], | |
["静岡", -18.726], | |
["愛知", -8.3646], | |
["三重", -25.3196], | |
["京都", -20.0876], | |
["大阪", -15.0684], | |
["兵庫", -7.4797], | |
["和歌山", -23.4136], | |
["鳥取", -16.1082], | |
["島根", -6.5337], | |
["岡山", 5.3186], | |
["広島", -11.6321], | |
["山口", -34.9768], | |
["徳島", -23.7418], | |
["香川", -5.1433], | |
["愛媛", -24.475], | |
["高知", -18.0049], | |
["福岡", -15.5984], | |
["佐賀", -10.8238], | |
["長崎", -19.3847], | |
["熊本", -26.9598], | |
["大分", -38.4015], | |
["宮崎", -30.7618], | |
["鹿児島", -22.7907], | |
["沖縄", -20.2818] | |
]); | |
var options = { | |
region: 'JP', | |
resolution: 'provinces', | |
colorAxis: { | |
colors: ['#ff00ff', '#d3d3d3'] | |
} | |
} // orange to blue}; | |
var chart = new google.visualization.GeoChart(document.getElementById('regions_div')); | |
chart.draw(data, options); | |
} | |
</script> | |
</head> | |
<body> | |
<div id="regions_div" style="width: 100%; height: 100%;"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment