{"id":4330,"date":"2015-06-20T19:21:36","date_gmt":"2015-06-20T10:21:36","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=4330"},"modified":"2015-06-20T19:26:59","modified_gmt":"2015-06-20T10:26:59","slug":"post-4330","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/d3-js\/4330","title":{"rendered":"D3.js\u3067\u4f5c\u3063\u305f\u5730\u7403\u5100\u306bSVG\u30d5\u30a3\u30eb\u30bf\u30fc\u30a8\u30d5\u30a7\u30af\u30c8\u3092\u9069\u7528\u3059\u308b\u3002"},"content":{"rendered":"<p>D3\u306e\u63cf\u753b\u6a5f\u80fd\u306bsvg\u306e\u753b\u50cf\u52b9\u679c\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u591a\u5f69\u306a\u8868\u73fe\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u4eca\u56de\u306f\u3001D3\u3067\u3064\u304f\u3063\u305f\u5730\u7403\u5100\u306b\u30d5\u30a3\u30eb\u30bf\u30fc\u30a8\u30d5\u30a7\u30af\u30c8\u3092\u9069\u7528\u3057\u3066\u3044\u308d\u3044\u308d\u9762\u767d\u3044\u63cf\u753b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>SVG\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u30b5\u30a4\u30c8\u306b\u8a73\u7d30\u60c5\u5831\u304c\u3059\u3070\u3089\u3057\u304f\u307e\u3068\u307e\u3063\u3066\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.h2.dion.ne.jp\/~defghi\/svgMemo\/svgMemo_11.htm\">svg\u8981\u7d20\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u307e\u3068\u3081<\/a><\/p>\n<h2>\u5730\u7403\u5100\uff13\u7a2e<\/h2>\n<p>D3\u306e\u30b3\u30fc\u30c9\u306f\uff13\u3064\u3068\u3082\u6b86\u3069\u540c\u3058\u306a\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306b\u9069\u7528\u3057\u305fSVG\u30d5\u30a3\u30eb\u30bf\u30fc\u3060\u3051\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nchrome\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u307e\u3059\u304c\u3001IE\u306f\u591a\u5206ver.10\u4ee5\u4e0a\u306a\u3044\u3068\u30c0\u30e1\u304b\u3082\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\uff13\u3064\u3068\u3082\u30de\u30a6\u30b9\u3067\u30b0\u30ea\u30b0\u30ea\u52d5\u304b\u305b\u307e\u3059\u3002<\/p>\n<h3>\u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30a6<\/h3>\n<p>\u3061\u3087\u3063\u3068\u6d6e\u3044\u3066\u3044\u308b\u98a8\u306b\u3002<\/p>\n<p><a href=\"http:\/\/bl.ocks.org\/shimizu\/526c02f7c3336e2f97d7\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_dorpshadow.jpg\" alt=\"globe dorpshadow\" width=\"590\" height=\"307\" class=\"aligncenter size-full wp-image-4327 border\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_dorpshadow.jpg 590w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_dorpshadow-288x150.jpg 288w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/bl.ocks.org\/shimizu\/526c02f7c3336e2f97d7\">example<\/a><\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"dorp sahow effect \" >&lt;defs&gt;\r\n\t&lt;filter id=\"drop-shadow\" width=\"150%\" height=\"150%\"&gt;\r\n\t\t&lt;feGaussianBlur in=\"SourceAlpha\" result=\"blur\" stdDeviation=\"2\"&gt;&lt;\/feGaussianBlur&gt;\r\n\t\t&lt;feOffset result=\"offsetBlur\" dx=\"4\" dy=\"4\"&gt;&lt;\/feOffset&gt;&lt;feBlend in=\"SourceGraphic\" in2=\"offsetBlur\" mode=\"normal\"&gt;&lt;\/feBlend&gt;\r\n\t&lt;\/filter&gt;\t\r\n&lt;\/defs&gt;\t<\/pre>\n<h3>\u91dd\u91d1\u7d30\u5de5<\/h3>\n<p>\u3061\u3087\u3063\u3068\u30e1\u30bf\u30ea\u30c3\u30af\u306a\u30d1\u30a4\u30d7\u611f\u306e\u3042\u308b\u30a8\u30d5\u30a7\u30af\u30c8\u3002<br \/>\n<a href=\"http:\/\/bl.ocks.org\/shimizu\/8a32984c6813137069c2\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_wirework.jpg\" alt=\"globe wirework\" width=\"590\" height=\"307\" class=\"aligncenter size-full wp-image-4328 boder\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_wirework.jpg 590w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globe_wirework-288x150.jpg 288w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/bl.ocks.org\/shimizu\/8a32984c6813137069c2\">example<\/a><\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"wirework effect\" >&lt;defs&gt;\r\n    &lt;filter id=\"wirework\" filterUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"960\" height=\"500\"&gt;\r\n      &lt;feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"4\" result=\"blur\" \/&gt;\r\n      &lt;feOffset in=\"blur\" dx=\"4\" dy=\"4\" result=\"offsetBlur\" \/&gt;\r\n      &lt;feSpecularLighting in=\"blur\" surfaceScale=\"5\" specularConstant=\".75\" specularExponent=\"20\" lighting-color=\"#bbbbbb\" result=\"specOut\"&gt;\r\n        &lt;fePointLight x=\"-5000\" y=\"-10000\" z=\"20000\" \/&gt;\r\n      &lt;\/feSpecularLighting&gt;\r\n      &lt;feComposite in=\"specOut\" in2=\"SourceAlpha\" operator=\"in\" result=\"specOut\" \/&gt;\r\n      &lt;feComposite in=\"SourceGraphic\" in2=\"specOut\" operator=\"arithmetic\" k1=\"0\" k2=\"1\" k3=\"1\" k4=\"0\" result=\"litPaint\" \/&gt;\r\n      &lt;feMerge&gt;\r\n        &lt;feMergeNode in=\"offsetBlur\" \/&gt;\r\n        &lt;feMergeNode in=\"litPaint\" \/&gt;\r\n      &lt;\/feMerge&gt;\r\n    &lt;\/filter&gt;\t\r\n&lt;\/defs&gt;\t<\/pre>\n<h3>\u30a8\u30f3\u30dc\u30b9<\/h3>\n<p>\u30a8\u30f3\u30dc\u30b9\u98a8\u306b\u8868\u73fe\u2026\u2026\u306e\u306f\u305a\u304c\u3001\u3053\u308c\u304c\u4e00\u756a\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u3063\u3066\u898b\u3048\u65b9\u304c\u9055\u3046\u3053\u3068\u306b\u3002<br \/>\n\u4e0b\u8a18\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306fChrome\u3067\u898b\u305f\u5834\u5408\u3001Firefox\u3067\u898b\u308b\u3068\u6563\u3005\u306a\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u307e\u3059\u3002IE10\u3067\u3082\u3001\u307e\u305f\u9055\u3063\u305f\u611f\u3058\u3067\u5fae\u5999\u306a\u898b\u3048\u65b9\u306b\u306a\u3063\u3066\u307e\u3059\u3002<br \/>\n\u898b\u6bd4\u3079\u3066\u307f\u308b\u3068\u9762\u767d\u3044\u2026\u2026\u304b\u3082\uff1f \u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n<a href=\"http:\/\/bl.ocks.org\/shimizu\/6e2ce31f2b865c639ce3\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globle_emboss.jpg\" alt=\"globle emboss\" width=\"590\" height=\"307\" class=\"aligncenter size-full wp-image-4329 border\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globle_emboss.jpg 590w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2015\/06\/globle_emboss-288x150.jpg 288w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/bl.ocks.org\/shimizu\/6e2ce31f2b865c639ce3\">example <\/a><\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"emboss effect\" >&lt;defs&gt;\r\n    &lt;filter id=\"MyFilter\" filterUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"960\" height=\"500\"&gt;\r\n      &lt;feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"2\" result=\"blur\" \/&gt;\r\n      &lt;feOffset in=\"blur\" dx=\"4\" dy=\"4\" result=\"offsetBlur\" \/&gt;\r\n      &lt;feSpecularLighting in=\"blur\" surfaceScale=\"5\" specularConstant=\".75\" specularExponent=\"20\" lighting-color=\"#fff\" result=\"specOut\"&gt;\r\n        &lt;fePointLight x=\"-5000\" y=\"-10000\" z=\"20000\" \/&gt;\r\n      &lt;\/feSpecularLighting&gt;\r\n    &lt;\/filter&gt;\t\t\r\n&lt;\/defs&gt;\t<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>D3\u306e\u63cf\u753b\u6a5f\u80fd\u306bsvg\u306e\u753b\u50cf\u52b9\u679c\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u591a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4328,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,50],"tags":[],"class_list":["post-4330","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-d3-js","category-svg","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/4330","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=4330"}],"version-history":[{"count":0,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/4330\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/4328"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=4330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=4330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=4330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}