Language
Login
Language Setting
X
English
日本語 [Japanese]
about this App
宮城県石巻市 年齢階級別人口
useful
0
Loading...
window.onload = function() { aaa(); } function ccc() { //alert("ccc"); var bunbo; var bunshi; var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" // Work loop $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { // Subject loop var i = 1; $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = decodeURIComponent(tripleValue.property); prop = prop.split("#"); var obj = tripleValue.object; if ( prop[1] == "年" ) { myTBL3.rows[i].cells[0].innerText = obj; } if ( prop[1] == "女-小計" ) { myTBL3.rows[i].cells[1].innerText = obj; bunbo = Number(obj); } if ( prop[1] == "女-0~14" ) { myTBL3.rows[i].cells[2].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL3.rows[i].cells[5].innerText = bunshi+"%"; } if ( prop[1] == "女-15~64" ) { myTBL3.rows[i].cells[3].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL3.rows[i].cells[6].innerText = bunshi+"%"; } if ( prop[1] == "女-65歳以上" ) { myTBL3.rows[i].cells[4].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL3.rows[i].cells[7].innerText = bunshi+"%"; i++; } }); }); }); }); window.find(highlight); }; function bbb() { //alert("bbb"); var bunbo; var bunshi; var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" // Work loop $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { // Subject loop var i = 1; $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = decodeURIComponent(tripleValue.property); prop = prop.split("#"); var obj = tripleValue.object; if ( prop[1] == "年" ) { myTBL2.rows[i].cells[0].innerText = obj; } if ( prop[1] == "男-小計" ) { myTBL2.rows[i].cells[1].innerText = obj; bunbo = Number(obj); } if ( prop[1] == "男-0~14" ) { myTBL2.rows[i].cells[2].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL2.rows[i].cells[5].innerText = bunshi+"%"; } if ( prop[1] == "男-15~64" ) { myTBL2.rows[i].cells[3].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL2.rows[i].cells[6].innerText = bunshi+"%"; } if ( prop[1] == "男-65歳以上" ) { myTBL2.rows[i].cells[4].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL2.rows[i].cells[7].innerText = bunshi+"%"; i++; } }); }); }); }); ccc(); window.find(highlight); }; function aaa() { var bunbo; var bunshi; var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" // Work loop $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { // Subject loop var i = 1; $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = decodeURIComponent(tripleValue.property); prop = prop.split("#"); var obj = tripleValue.object; if ( prop[1] == "年" ) { myTBL.rows[i].cells[0].innerText = obj; } if ( prop[1] == "総数-合計" ) { myTBL.rows[i].cells[1].innerText = obj; bunbo = Number(obj); } if ( prop[1] == "総数-0~14" ) { myTBL.rows[i].cells[2].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL.rows[i].cells[5].innerText = bunshi+"%"; } if ( prop[1] == "総数-15~64" ) { myTBL.rows[i].cells[3].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL.rows[i].cells[6].innerText = bunshi+"%"; } if ( prop[1] == "総数-65歳以上" ) { myTBL.rows[i].cells[4].innerText = obj; bunshi = Number(obj) / bunbo; bunshi = bunshi * 100; bunshi = bunshi.toFixed(1); myTBL.rows[i].cells[7].innerText = bunshi+"%"; i++; } }); }); }); }); bbb(); window.find(highlight); }; // Get a parameter value in URL (e.g. ?paramString=value ) function getParameterFromURL( paramString ) { var value = ""; var topWindow = top.window.location.search; if( topWindow ){ var q = decodeURIComponent(topWindow.substring(1,topWindow.length)).split("&"); for ( var i = 0; i < q.length; i++ ){ var r = q[i].split("="); if ( r[0] == paramString ) value = r[1]; } } return value; } // Highlight keyword in the string function highlight( string, keyword ) { if ( keyword.length > 0 ) { var ss = string.split(keyword); var len = ss.length; if ( len > 1 ) { string = ss[0]; for ( i = 1; i < len; i++ ) // string += "<font color=\"red\">"+keyword+"</font>"+ss[i]; string += "<span class=\"highlight\">"+keyword+"</span>"+ss[i]; } } return string; } // get the last name of the string separated with # and / function getLastName( string ) { string = decodeURIComponent(string); var sharp = string.split("#"); var slash = sharp[sharp.length-1].split("/"); var lastName = slash[slash.length-1]; return lastName; } // return a link to Google map search function addLinkToMap( latitude, longitude ) { var s = "<br><a target=\"_blank\" href=\"http://www.google.com/maps/?q=" + latitude + "," + longitude + "\">Show map</a>"; return s; } // shortening URL e.g. http://.../123.jpg function shortenURL( url ) { url = decodeURIComponent(url); var slash = url.split("/"); var lastName = slash[slash.length-1]; return url.split(":")[0]+"://.../"+lastName; }
table { width: auto; border-spacing: 0; font-size:12px; } table th { color: #fff; padding: 8px 15px; background: #258; background:-moz-linear-gradient(rgba(34,85,136,0.7), rgba(34,85,136,0.9) 50%); background:-webkit-gradient(linear, 100% 0%, 100% 50%, from(rgba(34,85,136,0.7)), to(rgba(34,85,136,0.9))); font-weight: bold; border-left:1px solid #258; border-top:1px solid #258; border-bottom:1px solid #258; line-height: 120%; text-align: left; text-shadow:0 -1px 0 rgba(34,85,136,0.9); box-shadow: 0px 1px 1px rgba(255,255,255,0.3) inset; } table th:first-child { border-radius: 5px 0 0 0; } table th:last-child { border-radius:0 5px 0 0; border-right:1px solid #258; box-shadow: 2px 2px 1px rgba(0,0,0,0.1),0px 1px 1px rgba(255,255,255,0.3) inset; } table tr td { padding: 8px 15px; border-bottom: 1px solid #84b2e0; border-left: 1px solid #84b2e0; text-align: left; } table tr td:last-child { border-right: 1px solid #84b2e0; box-shadow: 2px 2px 1px rgba(0,0,0,0.1); } table tr { background: #fff; } table tr:nth-child(2n+1) { background: #f1f6fc; } table tr:last-child td { box-shadow: 2px 2px 1px rgba(0,0,0,0.1); } table tr:last-child td:first-child { border-radius: 0 0 0 5px; } table tr:last-child td:last-child { border-radius: 0 0 5px 0; } table tr:hover { background: #bbd4ee; cursor:pointer; }
<script type="text/javascript"> </script> <body><H2>石巻市 年齢階級(3区分)別人口</H2> <table id="myTBL" border="1"> <h3> 総数(男女計)</h3> <tbody> <tr> <th>年</th> <th>人口総数</th> <th>人口(0~14)</th> <th>人口(15~64)</th> <th>人口(65歳以上)</th> <th>人口比率(0~14)</th> <th>人口比率(15~64)</th> <th>人口比率(65歳以上)</th> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tbody> </table> <table id="myTBL2" border="1"> <h3> 男_小計</h3> <tbody> <tr> <th>年</th> <th>人口総数</th> <th>人口(0~14)</th> <th>人口(15~64)</th> <th>人口(65歳以上)</th> <th>人口比率(0~14)</th> <th>人口比率(15~64)</th> <th>人口比率(65歳以上)</th> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tbody> </table> <table id="myTBL3" border="1"> <h3> 女_小計</h3> <tbody> <tr> <th>年</th> <th>人口総数</th> <th>人口(0~14)</th> <th>人口(15~64)</th> <th>人口(65歳以上)</th> <th>人口比率(0~14)</th> <th>人口比率(15~64)</th> <th>人口比率(65歳以上)</th> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tbody> </table> </body> </body>
Preview
Input Data
ReadMe
Snapshots
LinkData Work
Table Data
宮城県石巻市 住民基本台帳による人口推移 年齢3区分別人口
Contributor:石巻市, ICT総合推進課
Update:Dec 26, 2019
259 Downloads, 1 Applications
1.住民基本台帳による年齢3区分別の人口推移、単位:人 ファイル名:nenrei_3kubunbetu_jinkou 各年9月末日現在 ※平成24年7月9日の住基法等の改正により、平成24年分から 外国人住民も住民基本台帳に加えられています。 資料:石巻市市民課 2.住民基本台帳による年齢3区分別の人口推移(旧石巻市)、単位:人 ファイル名:nenrei_3kubunbetu_jinkou_kyuushi 各年12月31日現在
nenrei_3kubunbetu_jinkou
nenrei_3kubunbetu_jinkou_kyuushi
[
]
Add LinkData work(LinkData)
Link http://app.linkdata.org/run/app1s1374i?tab=readme
jquery-1.11.2.min.js
Work
Add
Clear
insert work id or work name.