{"id":2575,"date":"2013-02-12T21:31:29","date_gmt":"2013-02-12T12:31:29","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=2575"},"modified":"2018-03-06T12:02:58","modified_gmt":"2018-03-06T03:02:58","slug":"post-2575","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/d3-js\/2575","title":{"rendered":"\u3010D3.js\u3011 SVG\u3067\u8def\u7dda\u56f3\u3092\u63cf\u304f"},"content":{"rendered":"<p><a href=\"http:\/\/shimz.me\/example\/d3js\/geo_example\/geo5\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/rosen1.jpg\" alt=\"rosen1\" width=\"673\" height=\"622\" class=\"aligncenter size-full wp-image-2576\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/rosen1.jpg 673w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/rosen1-162x150.jpg 162w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/shimz.me\/example\/d3js\/geo_example\/geo5\/\">example<\/a><\/p>\n<p>\u4eca\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u5185\u5bb9\u306e\u5fa9\u7fd2\u306b\u3001D3.js\u3092\u4f7f\u3063\u3066\u8def\u7dda\u56f3\u3092\u63cf\u3044\u3066\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u5f53\u521d\u306f\u3001\u30d0\u30b9\u306e\u8def\u7dda\u56f3\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u7fa4\u99ac\u770c\u5185\u306b\u7d5e\u3063\u3066\u3082\u30d0\u30b9\u505c\u3084\u30d0\u30b9\u30eb\u30fc\u30c8\u306e\u60c5\u5831\u91cf\u304c\u591a\u304f\u3001\u91cd\u304f\u3066\u5927\u5909\u3060\u3063\u305f\u306e\u3067\u9014\u4e2d\u3067\u8def\u7dda\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u9244\u9053\u30c7\u30fc\u30bf\u306f\u3001\u3044\u3064\u3082\u306e\u3054\u3068\u304f<a href=\"http:\/\/nlftp.mlit.go.jp\/ksj\/gml\/datalist\/KsjTmplt-N02.html\">\u56fd\u571f\u6570\u5024\u60c5\u5831<\/a>\u3088\u308a\u3002<\/p>\n<p>*Quantum GIS\u306f\u6b63\u5f0f\u306bQGIS\u306b\u540d\u79f0\u304c\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/qgis.org\/ja\/site\/\">QGIS<\/a><\/p>\n<p>\u9244\u9053\u30c7\u30fc\u30bf(Shape)\u3092<a href=\"https:\/\/www.qgis.org\/ja\/site\/\">QGIS<\/a>\u306b\u8aad\u307f\u8fbc\u307f\u3001\u7fa4\u99ac\u770c\u5185\u3092\u9078\u629e\u3001\u9078\u629e\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u3092\u3044\u3063\u305f\u3093\u5207\u308a\u51fa\u3057Shape\u3067\u4fdd\u5b58\u3001<a href=\"http:\/\/mapshaper.org\/\">MapShaper<\/a>\u3067\u7c21\u7d20\u5316\u3002<br \/>\n\u518d\u5ea6\u3001Quantum GIS\u306b\u8aad\u307f\u8fbc\u3093\u3067GeoJSON\u306b\u5909\u63db\u3002<br \/>\n\u307e\u305f\u3001\u9244\u9053(\u7dda)\u30c7\u30fc\u30bf\u3060\u3051TopoJSON\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n(\u70b9\u30c7\u30fc\u30bf\u306fTopoJSON\u306b\u5909\u63db\u3057\u3066\u3082\u3055\u307b\u3069\u8efd\u91cf\u5316\u306e\u6069\u6075\u304c\u5f97\u3089\u308c\u306a\u3044\u307f\u305f\u3044\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u3064\u304b\u3063\u3066\u307e\u3059\uff09<br \/>\n\u9014\u4e2d\u3001Quantum GIS\u306e\u5c5e\u6027\u30c7\u30fc\u30bf\u306e\u6587\u5b57\u5316\u3051\u554f\u984c\u306b\u60a9\u307e\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u4e0b\u8a18\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3082\u3089\u3044\u89e3\u6c7a\u3002<br \/>\n<a href=\"https:\/\/sites.google.com\/site\/qgismemo\/010-dao-ru\/qgis1-8no-wen-zi-huake-dui-chu-fa\">QGIS1.8\u306e\u6587\u5b57\u5316\u3051\u5bfe\u51e6\u6cd5<\/a><br \/>\n\u3068\u308a\u3042\u3048\u305a\u3001\u5f62\u306b\u306f\u306a\u3063\u305f\u304b\u306a\u3068\u3002<br \/>\n\u30d1\u30f3\uff0f\u30ba\u30fc\u30e0\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306fviewBox\u5c5e\u6027\u3092\u4f7f\u7528\u3002<br \/>\nprojection\u306escale\u3092\u4f7f\u3063\u305f\u65b9\u304c\u6b63\u78ba\u3060\u3057\u898b\u3084\u3059\u304f\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u3059\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u6700\u63cf\u753b\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u91cd\u304f\u306a\u308b\u306e\u3067\u3002<br \/>\n(\u3067\u3082\u3001\u9244\u9053\u30c7\u30fc\u30bf\u306f\u30d0\u30b9\u30c7\u30fc\u30bf\u306b\u6bd4\u3079\u3066\u5927\u5206\u5c0f\u3055\u304f\u306a\u3063\u305f\u306e\u3067\u3001scale\u4f7f\u3063\u3066\u3082\u3055\u307b\u3069\u91cd\u304f\u306a\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093)<\/p>\n<p>\u3053\u306e\u8fba\u308a\u306e\u884c\u7a0b\u306f\u3001\u904e\u53bb\u8a18\u4e8b\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/gunmagisgeek.com\/blog\/d3-js\/2351\">\u9db4\u821e\u3046\u5f62\u306e\u7fa4\u99ac\u770c\u3092SVG\u3067\u63cf\u3044\u3066\u307f\u308b<\/a><br \/>\n<span class=\"removed_link\" title=\"https:\/\/gunmagisgeek.com\/blog\/d3-js\/2379\">Google Map\u306bSVG\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3059\u308b(SHAPE\u30c7\u30fc\u30bf\u8efd\u91cf\u5316)<\/span><br \/>\n<a href=\"https:\/\/gunmagisgeek.com\/blog\/d3-js\/2526\">viewBox\u5c5e\u6027\u3092\u4f7f\u3063\u305fPan\/Zoon<\/a><\/p>\n<p>\u25a0\u4eca\u5f8c\u306e\u8ab2\u984c<\/p>\n<ul>\n<li>viewBox\u5c5e\u6027\u3092\u4f7f\u3063\u305f\u30d1\u30f3\uff0f\u30ba\u30fc\u30e0\u3060\u3068\u30e9\u30d9\u30eb\u306e\u4f4d\u7f6e\u6307\u5b9a\u304c\u96e3\u3057\u3044\u3002<\/li>\n<li>svg\u8981\u7d20\u304c\u91cd\u306a\u308a\u5408\u3046\u6642\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb(z-index\u304csvg\u3067\u306f\u52b9\u304b\u306a\u3044\u306e\u3067\u2026\u2026\u3069\u3046\u3057\u3088\u3046\uff09<\/li>\n<li>\u30d0\u30b9\u306e\u30c7\u30fc\u30bf\u307f\u305f\u3044\u306b\u60c5\u5831\u91cf\u304c\u591a\u3044\u5834\u5408\u306f\u300c\u898b\u3048\u3066\u3044\u308b\u7bc4\u56f2\u5185\u306e\u30c7\u30fc\u30bf\u3060\u3051\u8aad\u307f\u8fbc\u3080\u300d\u3088\u3046\u306a\u51e6\u7406\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<p><s>\u5f53\u9762\u3001\u4e00\u756a\u306e\u554f\u984c\u306f\u91cd\u306a\u308a\u5408\u3044\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u3059\u304b\u306d\u3002<br \/>\nDOM\u306b\u8ffd\u52a0\u3059\u308b\u9806\u756a\u3067\u91cd\u306a\u308a\u5408\u3044\u3092\u64cd\u4f5c\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001d3.json\u306a\u3069\u975e\u540c\u671f\u3067\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u4e00\u756a\u4e0a\u306b\u7f6e\u304d\u305f\u3044\u8981\u7d20\u304c\u3001\u4ed6\u306e\u8981\u7d20\u306e\u4e0b\u306b\u96a0\u308c\u3066\u3057\u307e\u3063\u305f\u308a\u3057\u307e\u3059\u3002<br \/>\n\u3042\u3068\u306f\u3001\u8ffd\u52a0\u5f8c\u306bDOM\u3092\u4e26\u3079\u66ff\u3048\u308b\u304b\u3002<br \/>\n\u53c2\u7167\uff1a<a href=\"http:\/\/stackoverflow.com\/questions\/6566406\/svg-re-ordering-z-index-raphael-optional\">SVG re-ordering z-index (Raphael optional)<\/a><br \/>\n\u3046\u301c\u3093\u3001\u3081\u3093\u3069\u304f\u3055\u3044\u3002<br \/>\n<\/s><br \/>\n\u59cb\u3081\u306b\u30ec\u30a4\u30e4\u30fc\u69cb\u9020\u3092\u542b\u3093\u3060svg\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\u305d\u3053\u306b\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3060\u3051\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\uff08\uff3e\uff3e\uff1b\uff09<br \/>\n\u5b8c\u5168\u306b\u5931\u5ff5\u3057\u3066\u3044\u3066\u3001Twitter\u3067\u6559\u3048\u3066\u3082\u3089\u3046\u307e\u3067\u307e\u3063\u305f\u304f\u6c17\u4ed8\u304d\u307e\u305b\u3093\u3067\u3057\u305f orz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>example \u4eca\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u5185\u5bb9\u306e\u5fa9\u7fd2\u306b\u3001D3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2576,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-2575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-d3-js","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=2575"}],"version-history":[{"count":1,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2575\/revisions"}],"predecessor-version":[{"id":2577,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2575\/revisions\/2577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/2576"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=2575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=2575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=2575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}