{"id":22928,"date":"2025-06-08T17:43:48","date_gmt":"2025-06-08T08:43:48","guid":{"rendered":"https:\/\/cg-method.com\/google\/?p=22928"},"modified":"2026-10-28T21:46:33","modified_gmt":"2026-10-28T12:46:33","slug":"spreadsheet-hierarchy-visualization","status":"publish","type":"post","link":"https:\/\/cg-method.com\/google\/spreadsheet-hierarchy-visualization\/","title":{"rendered":"Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u7d44\u7e54\u56f3\u3084UI\u69cb\u9020\u306e\u60c5\u5831\u3092\u30d3\u30b8\u30e5\u30a2\u30eb\u5316\uff01\u968e\u5c64\u8868\u793a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<strong>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u968e\u5c64\u30c7\u30fc\u30bf<\/strong>\u3092\u3001D3.js\u3092\u4f7f\u3063\u3066<strong>\u30d6\u30e9\u30a6\u30b6\u4e0a\u306b\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u53ef\u8996\u5316<\/strong>\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"swl-fz u-fz-l\">\u8868\u793a\u30a4\u30e1\u30fc\u30b8<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u753b\u50cf\u306f\u65e7\u7248\u306e\u53c2\u8003\u3067\u3059\u3002\u4eca\u56de\u306e\u4fee\u6b63\u7248\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u753b\u9762\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u306f\u5f8c\u8ff0\u306e\u8868\u3092\u4f7f\u3044\u3001\u4e88\u7d04\u7ba1\u7406\u306eparentId\u306fsample\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"663\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-1024x663.png\" alt=\"\u968e\u5c64\u8868\u793a\u3092\u884c\u3046\u5143\u30c7\u30fc\u30bf\u3068\u306a\u308bGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4f8b\u3002\" class=\"wp-image-22931\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-1024x663.png 1024w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-300x194.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-768x497.png 768w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u60c5\u5831\u3092\u5143\u306b\u968e\u5c64\u8868\u793a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-1024x464.png\" alt=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u60c5\u5831\u3092\u5143\u306b\u968e\u5c64\u8868\u793a\u3055\u308c\u305f\u30d3\u30b8\u30e5\u30a2\u30eb\u30a4\u30e1\u30fc\u30b8\u3002\" class=\"wp-image-22930\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-1024x464.png 1024w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-300x136.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-768x348.png 768w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02.png 1491w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6b63\u7248\u306f\u30eb\u30fc\u30c81\u4ef6\u30fb\u898b\u51fa\u3057\u3092\u9664\u304f100\u884c\u4ee5\u5185\u306e\u591a\u968e\u5c64\u30c7\u30fc\u30bf\u3092\u6271\u3044\u307e\u3059\u3002\u8907\u6570\u306e\u72ec\u7acb\u3057\u305f\u30c4\u30ea\u30fc\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<strong>\u30ce\u30fc\u30c9\u3092\u30db\u30d0\u30fc\u3057\u305f\u969b\u306b\u88dc\u8db3\u60c5\u5831\u3092\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3067\u8868\u793a<\/strong>\u3059\u308b\u4ed5\u69d8\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7df4\u7fd2\u7528\u306e\u968e\u5c64\u56f3\u3092\u4f5c\u308b\u624b\u9806<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u6210\u306e\u9806\u756a\u3067\u3059\u3002\u5185\u5bb9\u306f\u3001\u3053\u306e\u8a18\u4e8b\u306e\u8aac\u660e\u3068\u30b3\u30fc\u30c9\u306b\u3082\u3068\u3065\u304f\u76ee\u5b89\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306f\u3001\u5916\u90e8\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\uff08D3.js\uff09\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3084\u914d\u5e03\u5143\u306f\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u4f7f\u3046\u524d\u306b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30fc\u30c9\u306f\u3001doGet\u3092\u4f7f\u3046\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3001Google Apps Script\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3068\u3057\u3066\u516c\u958b\u3059\u308b\u64cd\u4f5c\u304c\u5fc5\u8981\u3067\u3059\u3002\u516c\u958b\u306e\u7bc4\u56f2\uff08\u81ea\u5206\u3060\u3051\u304b\u3001\u4ed6\u306e\u4eba\u3082\u304b\uff09\u306f\u3001Google\u306e\u516c\u5f0f\u306e\u6848\u5185\u3092\u78ba\u8a8d\u3057\u3001\u614e\u91cd\u306b\u6c7a\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>\u968e\u5c64\u69cb\u9020\u3092\u5b9a\u7fa9\u3059\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7528\u610f\u3059\u308b\u3002\u8a18\u4e8b\u306e\u69cb\u6210\u4f8b\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u3001nodeId\u3001parentId\u3001\u30ce\u30fc\u30c9\u540d\u3001\u88dc\u8db3\u60c5\u5831\u306e\u5217\u3002<\/li>\n\n\n\n<li>\u89aa\u306e\u30ce\u30fc\u30c9\u306eID\u3092\u3001parentId\u306b\u5165\u308c\u3066\u3001\u968e\u5c64\u3092\u8868\u3059\u3002\u8a18\u4e8b\u3067\u306f\u3001\u591a\u968e\u5c64\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3068\u8aac\u660e\u3057\u3066\u3044\u308b\u3002<\/li>\n\n\n\n<li>\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u62e1\u5f35\u6a5f\u80fd\u300d\u2192\u300cApps Script\u300d\u3067\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304f\u3002<\/li>\n\n\n\n<li>\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u5168\u6587\u3092\u3001index.html\u3001css.html\u3001js.html\u3001main.gs\u306e4\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3059\u308b\u3002<\/li>\n\n\n\n<li>main.gs\u306eTREE_SHEET_ID\u306b\u7df4\u7fd2\u7528\u30b7\u30fc\u30c8\u306eID\u3001TREE_SHEET_NAME\u306b\u30b7\u30fc\u30c8\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u3002ID\u306fURL\u306e\/d\/\u3068\/edit\u306e\u9593\u3002<\/li>\n\n\n\n<li>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3068\u3057\u3066\u5b9f\u884c\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u4e0a\u306b\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u8868\u793a\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002\u30ce\u30fc\u30c9\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b\u3068\u3001\u88dc\u8db3\u60c5\u5831\u304c\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3067\u8868\u793a\u3055\u308c\u308b\u3002<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d44\u7e54\u56f3\u306a\u3069\u306e\u60c5\u5831\u3092\u6271\u3046\u5834\u5408\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u516c\u958b\u7bc4\u56f2\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u500b\u4eba\u60c5\u5831\u3084\u793e\u5916\u79d8\u306e\u60c5\u5831\u3092\u3001\u610f\u56f3\u305b\u305a\u516c\u958b\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u67b6\u7a7a\u306e\u60c5\u5831\u3060\u3051\u3092\u5165\u308c\u305f\u7df4\u7fd2\u7528\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002A1:E1\u306f\u8868\u306e\u898b\u51fa\u3057\u3068\u4e00\u81f4\u3055\u305b\u30012\u884c\u76ee\u304b\u3089\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002nodeId\u306f\u5168\u884c\u3067\u4e00\u610f\u3001parentId\u306f\u65e2\u5b58\u306enodeId\u306b\u5408\u308f\u305b\u3001\u30eb\u30fc\u30c8\u306e1\u884c\u3060\u3051\u7a7a\u6b04\u306b\u3057\u307e\u3059\u3002A\u5217\u306e\u30b0\u30eb\u30fc\u30d7\u540d\u306f\u4eca\u56de\u306e\u63cf\u753b\u3067\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u69cb\u6210\u4f8b\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u30b0\u30eb\u30fc\u30d7\u540d<\/th><th>nodeId<\/th><th>parentId<\/th><th>\u30ce\u30fc\u30c9\u540d<\/th><th>\u88dc\u8db3\u60c5\u5831<\/th><\/tr><\/thead><tbody><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample<\/td><td><\/td><td>\u5e97\u8217\u672c\u90e8<\/td><td>\u4f4f\u6240\u3001\u8cac\u4efb\u8005\u3001\u55b6\u696d\u6642\u9593<\/td><\/tr><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample\/\u732b\u7ba1\u7406<\/td><td>sample<\/td><td>\u732b\u7ba1\u7406\u30a8\u30ea\u30a2<\/td><td>\u540d\u524d\u3001\u5e74\u9f62\u3001\u6027\u683c<\/td><\/tr><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample\/\u732b\u7ba1\u7406\/\u30df\u30b1<\/td><td>sample\/\u732b\u7ba1\u7406<\/td><td>\u30df\u30b1<\/td><td>3\u6b73\u3001\u7518\u3048\u3093\u574a\u3001\u2640<\/td><\/tr><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample\/\u732b\u7ba1\u7406\/\u30bf\u30de<\/td><td>sample\/\u732b\u7ba1\u7406<\/td><td>\u30bf\u30de<\/td><td>2\u6b73\u3001\u6d3b\u767a\u3001\u2642<\/td><\/tr><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample\/\u8a2d\u5099\u7ba1\u7406<\/td><td>sample<\/td><td>\u8a2d\u5099\u7ba1\u7406<\/td><td>\u7a7a\u8abf\u3001\u6e05\u6383\u3001\u5099\u54c1<\/td><\/tr><tr><td>\u732b\u30ab\u30d5\u30a7\u306b\u3083\u3093\u305f<\/td><td>sample\/\u4e88\u7d04\u7ba1\u7406<\/td><td>sample<\/td><td>\u4e88\u7d04\u30fb\u9867\u5ba2\u7ba1\u7406<\/td><td>\u4e88\u7d04\u4e00\u89a7\u3001\u4f1a\u54e1\u30ab\u30fc\u30c9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u62e1\u5f35\u6a5f\u80fd\u300d\u304b\u3089\u300cApps Script\u300d\u3092\u9078\u629e\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"663\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-1024x663.png\" alt=\"\u30e1\u30cb\u30e5\u30fc\u306e\u62e1\u5f35\u6a5f\u80fd\u304b\u3089Apps Script\u3092\u9078\u629e\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304f\u624b\u9806\u306e\u753b\u9762\u3002\" class=\"wp-image-22931\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-1024x663.png 1024w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-300x194.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28-768x497.png 768w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_28.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u2502\u30b3\u30fc\u30c9\u306e\u69cb\u6210<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>index.html<\/code>\u3067<code>&lt;svg&gt;<\/code>\u3092\u914d\u7f6e<\/li>\n\n\n\n<li><code>css.html<\/code>\u306b\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a\u3092\u8a18\u8ff0<\/li>\n\n\n\n<li><code>js.html<\/code>\u306b D3.js \u306b\u3088\u308b\u63cf\u753b\u30ed\u30b8\u30c3\u30af\u3092\u8a18\u8ff0<\/li>\n\n\n\n<li><code>main.gs<\/code>\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"432\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_17h37_07.png\" alt=\"HTML\u3084JavaScript\u3001GAS\u30d5\u30a1\u30a4\u30eb\u3067\u69cb\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306e\u69cb\u6210\u30a4\u30e1\u30fc\u30b8\u3002\" class=\"wp-image-22932\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_17h37_07.png 602w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_17h37_07-300x215.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u5168\u6587<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5404\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u95a2\u9023\u64cd\u4f5c\u306b\u3064\u3044\u3066\u306f\u3001\u307e\u3068\u3081\u306e\u30ea\u30f3\u30af\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2026\/09\/google-apps-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-apps-matome\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30fb\u30c9\u30e9\u30a4\u30d6\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff5c\u95a2\u6570\u3068GAS<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u306e\u64cd\u4f5c\u3092\u300c\u4f55\u3092\u3057\u305f\u3044\u304b\u300d\u304b\u3089\u63a2\u305b\u308b\u30ac\u30a4\u30c9\u3067\u3059\u3002 \u307e\u305a\u6a19\u6e96\u306e\u753b\u9762\u64cd\u4f5c\u3084\u95a2\u6570\u3067\u89e3\u6c7a\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u7e70\u308a\u8fd4\u3059\u51e6\u7406\u306bGAS\u3092\u4f7f\u3044\u307e\u3059\u3002 \u76ee\u7684\u304b\u3089\u624b\u9806\u3092\u9078\u3076 \u3084\u308a\u305f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h3 class=\"wp-block-heading\">index.html<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!doctype html&gt;\n&lt;html lang=&quot;ja&quot;&gt;&lt;head&gt;&lt;base target=&quot;_top&quot;&gt;&lt;meta charset=&quot;UTF-8&quot;&gt;\n&lt;script src=&quot;https:\/\/d3js.org\/d3.v7.min.js&quot;&gt;&lt;\/script&gt;\n&lt;?!= include(&#x27;css&#x27;); ?&gt;\n&lt;\/head&gt;&lt;body&gt;&lt;p id=&quot;status&quot; role=&quot;status&quot;&gt;\u8aad\u307f\u8fbc\u307f\u4e2d&lt;\/p&gt;\n&lt;div id=&quot;container&quot;&gt;&lt;svg aria-label=&quot;\u968e\u5c64\u56f3&quot;&gt;&lt;\/svg&gt;&lt;\/div&gt;\n&lt;p&gt;\u88dc\u8db3\u60c5\u5831\uff1a&lt;span id=&quot;detail&quot;&gt;\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044&lt;\/span&gt;&lt;\/p&gt;\n&lt;?!= include(&#x27;js&#x27;); ?&gt;\n&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">css.html<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>&lt;style&gt;\nbody {font-family:sans-serif;margin:16px;}\n#container {overflow:auto;max-width:100%;}\nsvg {display:block;}\n.node {cursor:pointer;}\n.node:focus rect {stroke:#1264a3;stroke-width:3;}\n#detail {white-space:pre-wrap;overflow-wrap:anywhere;}\n&lt;\/style&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">js.html<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>&lt;script&gt;\nconst status = document.getElementById(&#x27;status&#x27;);\nfunction showFailure(error) {\n  status.textContent = &#x27;\u8868\u793a\u3067\u304d\u307e\u305b\u3093\uff1a&#x27; + (error.message || String(error));\n}\nfunction drawTree(nodes) {\n  try {\n    const root = d3.stratify().id(d =&gt; d.id).parentId(d =&gt; d.parent || null)(nodes);\n    d3.tree().nodeSize([64, 240])(root);\n    const all = root.descendants();\n    const min = Math.min(...all.map(d =&gt; d.x));\n    const max = Math.max(...all.map(d =&gt; d.x));\n    const svg = d3.select(&#x27;svg&#x27;).attr(&#x27;width&#x27;, (root.height + 1) * 240 + 40).attr(&#x27;height&#x27;, max - min + 90);\n    svg.selectAll(&#x27;*&#x27;).remove();\n    const g = svg.append(&#x27;g&#x27;).attr(&#x27;transform&#x27;, `translate(20,${35-min})`);\n    g.selectAll(&#x27;path&#x27;).data(root.links()).join(&#x27;path&#x27;)\n      .attr(&#x27;fill&#x27;,&#x27;none&#x27;).attr(&#x27;stroke&#x27;,&#x27;#777&#x27;)\n      .attr(&#x27;d&#x27;,d =&gt; `M${d.source.y+190},${d.source.x}H${d.source.y+215}V${d.target.x}H${d.target.y}`);\n    const n = g.selectAll(&#x27;.node&#x27;).data(all).join(&#x27;g&#x27;).attr(&#x27;class&#x27;,&#x27;node&#x27;)\n      .attr(&#x27;transform&#x27;,d =&gt; `translate(${d.y},${d.x})`).attr(&#x27;tabindex&#x27;,0).attr(&#x27;role&#x27;,&#x27;button&#x27;)\n      .attr(&#x27;aria-label&#x27;,d =&gt; d.data.name + &#x27;\uff1a&#x27; + d.data.comps);\n    const show = (event,d) =&gt; { document.getElementById(&#x27;detail&#x27;).textContent = d.data.name + &#x27;\uff1a&#x27; + (d.data.comps || &#x27;\u88dc\u8db3\u60c5\u5831\u306a\u3057&#x27;); };\n    n.on(&#x27;mouseenter&#x27;,show).on(&#x27;focus&#x27;,show).on(&#x27;click&#x27;,show)\n      .on(&#x27;keydown&#x27;,(event,d) =&gt; {if (event.key===&#x27;Enter&#x27; || event.key===&#x27; &#x27;) {event.preventDefault();show(event,d);}});\n    n.append(&#x27;rect&#x27;).attr(&#x27;y&#x27;,-18).attr(&#x27;width&#x27;,190).attr(&#x27;height&#x27;,36).attr(&#x27;fill&#x27;,&#x27;#fff&#x27;).attr(&#x27;stroke&#x27;,&#x27;#333&#x27;);\n    n.append(&#x27;text&#x27;).attr(&#x27;x&#x27;,8).attr(&#x27;y&#x27;,5).attr(&#x27;font-size&#x27;,13)\n      .text(d =&gt; {const a=Array.from(d.data.name);return a.length&gt;12?a.slice(0,12).join(&#x27;&#x27;)+&#x27;\u2026&#x27;:d.data.name;});\n    n.append(&#x27;title&#x27;).text(d =&gt; d.data.name + &#x27;\uff1a&#x27; + d.data.comps);\n    status.textContent = nodes.length + &#x27;\u4ef6\u3092\u8868\u793a\u3002\u30b7\u30fc\u30c8\u5909\u66f4\u5f8c\u306f\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27;;\n  } catch (error) {showFailure(error);}\n}\nif (typeof d3 === &#x27;undefined&#x27;) showFailure(new Error(&#x27;D3.js\u3092\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f&#x27;));\nelse google.script.run.withSuccessHandler(drawTree).withFailureHandler(showFailure).getPrefabTreeData();\n&lt;\/script&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">main.gs<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const TREE_SHEET_ID = &#x27;COPY_SPREADSHEET_ID&#x27;;\nconst TREE_SHEET_NAME = &#x27;\u30b7\u30fc\u30c81&#x27;;\nfunction doGet() {\n  return HtmlService.createTemplateFromFile(&#x27;index&#x27;).evaluate()\n    .addMetaTag(&#x27;viewport&#x27;, &#x27;width=device-width, initial-scale=1&#x27;)\n    .setTitle(&#x27;\u968e\u5c64\u30d3\u30e5\u30fc&#x27;);\n}\nfunction include(file) {\n  if (![&#x27;css&#x27;, &#x27;js&#x27;].includes(file)) throw new Error(&#x27;\u4e0d\u660e\u306a\u30d5\u30a1\u30a4\u30eb&#x27;);\n  return HtmlService.createHtmlOutputFromFile(file).getContent();\n}\nfunction getPrefabTreeData() {\n  const sheet = SpreadsheetApp.openById(TREE_SHEET_ID).getSheetByName(TREE_SHEET_NAME);\n  if (!sheet) throw new Error(&#x27;\u6307\u5b9a\u3057\u305f\u30b7\u30fc\u30c8\u304c\u3042\u308a\u307e\u305b\u3093&#x27;);\n  const last = sheet.getLastRow();\n  if (last &lt; 2 || last &gt; 101) throw new Error(&#x27;\u898b\u51fa\u3057\u3092\u9664\u304d1\u301c100\u884c\u306b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  return validateTree_(sheet.getRange(1, 1, last, 5).getDisplayValues());\n}\nfunction validateTree_(data) {\n  const headers = [&#x27;\u30b0\u30eb\u30fc\u30d7\u540d&#x27;, &#x27;nodeId&#x27;, &#x27;parentId&#x27;, &#x27;\u30ce\u30fc\u30c9\u540d&#x27;, &#x27;\u88dc\u8db3\u60c5\u5831&#x27;];\n  if (headers.some((h,i) =&gt; data[0][i].trim() !== h)) throw new Error(&#x27;A1:E1\u306e\u898b\u51fa\u3057\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  const rows = data.slice(1).filter(r =&gt; r.some(v =&gt; v.trim()));\n  if (!rows.length) throw new Error(&#x27;\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093&#x27;);\n  const nodes = rows.map(r =&gt; ({id:r[1].trim(), parent:r[2].trim(), name:r[3].trim(), comps:r[4]}));\n  const map = new Map();\n  for (const n of nodes) {\n    if (!n.id || !n.name || n.id.length &gt; 200 || n.parent.length &gt; 200 || n.name.length &gt; 80 || n.comps.length &gt; 1000) throw new Error(&#x27;ID\u30fb\u540d\u524d\u306e\u7a7a\u6b04\u307e\u305f\u306f\u6587\u5b57\u6570\u4e0a\u9650\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n    if (map.has(n.id)) throw new Error(&#x27;nodeId\u304c\u91cd\u8907\u3057\u3066\u3044\u307e\u3059&#x27;);\n    map.set(n.id, n);\n  }\n  for (const n of nodes) {\n    const seen = new Set();\n    let cur = n;\n    while (cur) {\n      if (seen.has(cur.id)) throw new Error(&#x27;\u89aa\u5b50\u95a2\u4fc2\u304c\u5faa\u74b0\u3057\u3066\u3044\u307e\u3059&#x27;);\n      seen.add(cur.id);\n      if (cur.parent &amp;&amp; !map.has(cur.parent)) throw new Error(&#x27;\u5b58\u5728\u3057\u306a\u3044parentId\u304c\u3042\u308a\u307e\u3059&#x27;);\n      cur = cur.parent ? map.get(cur.parent) : null;\n    }\n  }\n  if (nodes.filter(n =&gt; !n.parent).length !== 1) throw new Error(&#x27;parentId\u304c\u7a7a\u306e\u30eb\u30fc\u30c8\u306f1\u4ef6\u306b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  return nodes;\n}\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u753b\u9762\u5e45\u3068\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\u306fmain.gs\u306edoGet\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/html\/html-output\">HtmlOutput\u306e\u516c\u5f0f\u4ed5\u69d8<\/a>\u3067\u306f\u3001HTML\u30d5\u30a1\u30a4\u30eb\u5185\u306emeta\u30bf\u30b0\u3068title\u8981\u7d20\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002viewport\u306faddMetaTag\u3001\u30bf\u30a4\u30c8\u30eb\u306fsetTitle\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u753b\u9762\u53f3\u4e0a\u306e\u300c\u30c7\u30d7\u30ed\u30a4\u300d\u304b\u3089\u300c\u65b0\u3057\u3044\u30c7\u30d7\u30ed\u30a4\u300d\u2192\u300c\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u300d\u3092\u9078\u3073\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306f\u81ea\u5206\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3082\u81ea\u5206\u3060\u3051\u306b\u3057\u307e\u3059\u3002\u305d\u306e\u9078\u629e\u80a2\u304c\u306a\u3044\u74b0\u5883\u3067\u306f\u516c\u958b\u7bc4\u56f2\u3092\u5e83\u3052\u3066\u4ee3\u7528\u305b\u305a\u3001\u7ba1\u7406\u8005\u306e\u5236\u9650\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b7\u30fc\u30c8\u306e\u300c\u30a6\u30a7\u30d6\u306b\u516c\u958b\u300d\u3084\u30ea\u30f3\u30af\u5171\u6709\u306e\u62e1\u5927\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u767a\u884c\u3055\u308c\u305f\/exec\u306eURL\u3092\u958b\u304d\u3001\u4f8b\u306e6\u4ef6\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3001\u89aa\u5b50\u95a2\u4fc2\u3001\u88dc\u8db3\u60c5\u5831\u3001\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3001\u9577\u3044\u540d\u524d\u306e\u7701\u7565\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30b7\u30fc\u30c8\u5909\u66f4\u306f\u30da\u30fc\u30b8\u518d\u8aad\u307f\u8fbc\u307f\u3067\u53cd\u6620\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u5909\u66f4\u306f\u65e2\u5b58\u30c7\u30d7\u30ed\u30a4\u3092\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u66f4\u65b0\u3057\u307e\u3059\u3002\u7df4\u7fd2\u3092\u7d42\u3048\u308b\u3068\u304d\u306f\u30c7\u30d7\u30ed\u30a4\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-1024x464.png\" alt=\"\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3068\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3057\u3001\u767a\u884c\u3055\u308c\u305fURL\u3067\u6b63\u5e38\u306b\u968e\u5c64\u69cb\u9020\u304c\u8868\u793a\u3055\u308c\u305f\u753b\u9762\u3002\" class=\"wp-image-22930\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-1024x464.png 1024w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-300x136.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02-768x348.png 768w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/2025-06-08_15h35_02.png 1491w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f\u3001GitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/google\/spreadsheet-hierarchy-visualization\">MOTOKI-LLC\/cg-method-code<\/a>\u306b\u3082\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">GAS\u3067\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/11\/sheets-gas-sync-multi-key-rows-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/sheets-gas-sync-multi-key-rows\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u25022\u3064\u306e\u30b7\u30fc\u30c8\u3092\u81ea\u52d5\u540c\u671f\u3059\u308bGAS\u306e\u4f5c\u308a\u65b9<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30b7\u30fc\u30c82\u306e\u884c\u9806\u3068A\u301cC\u5217\u3092\u30b7\u30fc\u30c81\u3078\u53cd\u6620\u3057\u3001\u540c\u3058\u30ad\u30fc\u306e\u884c\u306b\u3042\u308bD\u5217\u4ee5\u964d\u306e\u624b\u5165\u529b\u5024\u3092\u5f15\u304d\u7d99\u3050GAS\u306e\u4f8b\u3067\u3059\u3002\u521d\u671f\u72b6\u614b\u306f\u4e0b\u898b\u3060\u3051\u3067\u3001\u66f8\u304d\u63db\u3048\u306f\u884c\u3044\u307e\u305b\u3093\u3002\u81ea\u52d5\u5b9f\u884c\u30c8\u30ea\u30ac&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-sheets-gas-get-a1-value-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-sheets-gas-get-a1-value\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eA1\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u672c\u7a3f\u306fWeb\u7248Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u7df4\u7fd2\u8868\u3067\u3001\u64cd\u4f5c\u3068\u7d50\u679c\u3092\u78ba\u304b\u3081\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 A1\u306e\u5024\u306f getRange(&#8220;A1&#8221;).getValue() \u3067\u53d6\u5f97\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u3001\u30b7\u30fc\u30c8\u540d\u3001\u30bb&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-sheets-copy-template-check-checkbox-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-sheets-copy-template-check-checkbox\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u65e5\u4ed8\u5225\u306b\u8907\u88fd\uff06\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u51e6\u7406\u3082\u81ea\u52d5\u5316\u3059\u308b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google Apps Script\uff08GAS\uff09\u3067\u3001\u6b21\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002 \u65e5\u4ed8\u3092\u3082\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4ed8\u3051\u3066 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u78ba&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2026\/01\/google-sheets-delete-sheets-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-sheets-delete-sheets\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u4e0d\u8981\u306a\u30b7\u30fc\u30c8\u3092\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u6b8b\u3059\u30b7\u30fc\u30c8\u540d\u3092\u6307\u5b9a\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u30b7\u30fc\u30c8\u3092GAS\u3067\u524a\u9664\u3059\u308b\u624b\u9806\u3067\u3059\u3002\u524a\u9664\u524d\u306b\u5bfe\u8c61\u4e00\u89a7\u3092\u4e0b\u898b\u3057\u3001\u5b9f\u884c\u6642\u306f\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u3063\u3066\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002\u6700\u521d\u306f\u672c\u756a\u30d5\u30a1\u30a4&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30fc\u30bf\u53d6\u5f97\u306b\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/html\/communication\">google.script.run<\/a>\u3092\u4f7f\u3044\u3001\u63cf\u753b\u306b\u306f<a href=\"https:\/\/d3js.org\/d3-hierarchy\/stratify\">D3\u306estratify<\/a>\u3092\u4f7f\u3044\u307e\u3059\u3002\u5f93\u6765\u306e\u516c\u958b\u30b7\u30fc\u30c8\u53d6\u5f97URL\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002\u91cd\u8907ID\u30fb\u89aaID\u306e\u6b20\u843d\u30fb\u5faa\u74b0\u30fb\u8907\u6570\u30eb\u30fc\u30c8\u306f\u30a8\u30e9\u30fc\u3068\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002ID\u3068\u89aaID\u306f\u5404200\u6587\u5b57\u3001\u540d\u524d\u306f80\u6587\u5b57\u3001\u88dc\u8db3\u306f1000\u6587\u5b57\u307e\u3067\u3067\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670828\u65e5\u306b\u3001\u5165\u529b\u691c\u8a3c\u3068HtmlOutput\u3078\u306e\u8a2d\u5b9a\u3092\u30ed\u30fc\u30ab\u30eb\u6a21\u64ec\u30c6\u30b9\u30c8\u3067\u78ba\u8a8d\u3057\u3001JavaScript\u69cb\u6587\u3082\u691c\u67fb\u3057\u307e\u3057\u305f\u3002Apps Script\u3067\u306e\u6a29\u9650\u627f\u8a8d\u30fb\u30c7\u30d7\u30ed\u30a4\u30fb\u30b7\u30fc\u30c8\u53d6\u5f97\u3001D3\u306e\u5b9f\u63cf\u753b\u3001\u30b9\u30de\u30db\u30fb\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002\u65e2\u5b58\u753b\u50cf\u306f\u65e7\u7248\u306e\u53c2\u8003\u3067\u3042\u308a\u3001\u4fee\u6b63\u7248\u306e\u5b9f\u6a5f\u78ba\u8a8d\u306e\u8a3c\u62e0\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002GitHub\u5074\u306e\u65e7\u30b3\u30fc\u30c9\u3068\u5dee\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u672c\u6587\u306e4\u30d5\u30a1\u30a4\u30eb\u3092\u30bb\u30c3\u30c8\u3067\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>D3.js\u3068\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001<strong>\u30b7\u30fc\u30c8\u7de8\u96c6\u306e\u307f\u3067\u4fdd\u5b88\u3067\u304d\u308b\u968e\u5c64\u30d3\u30b8\u30e5\u30a2\u30e9\u30a4\u30b6\u30fc<\/strong>\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u3067\u3001\u7d44\u7e54\u56f3\u3084UI\u69cb\u6210\u56f3\u3001\u30ab\u30c6\u30b4\u30ea\u30c4\u30ea\u30fc\u306a\u3069\u306e\u53ef\u8996\u5316\u306b\u5fdc\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff1a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u968e\u5c64\u3092\u30c4\u30ea\u30fc\u8868\u793a\u3059\u308b\u3068\u304d\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u3067\u3001\u4f55\u304c\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u968e\u5c64\u30c7\u30fc\u30bf\u3092\u3001D3.js\u3092\u4f7f\u3063\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u306b\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u53ef\u8996\u5316\u3067\u304d\u307e\u3059\u3002\u30eb\u30fc\u30c81\u4ef6\u3001\u898b\u51fa\u3057\u3092\u9664\u304f100\u884c\u4ee5\u5185\u306e\u591a\u968e\u5c64\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002\u88dc\u8db3\u60c5\u5831\u306f\u30de\u30a6\u30b9\u30fb\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30d5\u30a9\u30fc\u30ab\u30b9\u30fb\u30af\u30ea\u30c3\u30af\u3067\u8868\u793a\u3057\u307e\u3059\u3002\u5b9f\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u306e\u8868\u793a\u78ba\u8a8d\u306f\u672a\u5b9f\u65bd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306f\u3001\u3069\u3046\u4f5c\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u968e\u5c64\u69cb\u9020\u3092\u5b9a\u7fa9\u3059\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u8a18\u4e8b\u306e\u69cb\u6210\u4f8b\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u3001nodeId\u3001parentId\u3001\u30ce\u30fc\u30c9\u540d\u3001\u88dc\u8db3\u60c5\u5831\u306e\u5217\u3067\u3059\u3002parentId\u306b\u89aa\u306e\u30ce\u30fc\u30c9\u306eID\u3092\u5165\u308c\u3066\u3001\u968e\u5c64\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306f\u3001\u3069\u3046\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">index.html\u3067svg\u3092\u914d\u7f6e\u3057\u3001css.html\u306b\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3057\u3001js.html\u306bD3.js\u306b\u3088\u308b\u63cf\u753b\u30ed\u30b8\u30c3\u30af\u3092\u8a18\u8ff0\u3057\u3001main.gs\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b7\u30fc\u30c8\u540d\u304c\u9055\u3046\u3068\u304d\u306f\u3001\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">main.gs\u306eTREE_SHEET_NAME\u3092\u81ea\u5206\u306e\u30b7\u30fc\u30c8\u540d\u306b\u3001TREE_SHEET_ID\u3092\u7df4\u7fd2\u7528\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eID\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u304d\u306f\u3001\u4f55\u3092\u78ba\u8a8d\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u306e\u5217\uff08nodeId\u3001parentId\u306a\u3069\uff09\u3068\u3001\u30b7\u30fc\u30c8\u540d\u3001\u30b3\u30fc\u30c9\u306e\u8cbc\u308a\u4ed8\u3051\u5148\uff084\u3064\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306f\u5916\u90e8\u306eD3.js\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u63a5\u7d9a\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8aad\u307f\u8fbc\u307f\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u793e\u5185\u306e\u7d44\u7e54\u56f3\u306b\u4f7f\u3063\u3066\u3082\u3001\u5b89\u5168\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u7df4\u7fd2\u306f\u67b6\u7a7a\u30c7\u30fc\u30bf\u3068\u81ea\u5206\u3060\u3051\u306e\u516c\u958b\u7bc4\u56f2\u3067\u884c\u3044\u307e\u3059\u3002\u5b9f\u884c\u8005\u306e\u6a29\u9650\u3067\u8aad\u307f\u53d6\u3063\u305f\u30b7\u30fc\u30c8\u5185\u5bb9\u3092\u753b\u9762\u3078\u8fd4\u3059\u305f\u3081\u3001\u30a2\u30af\u30bb\u30b9\u7bc4\u56f2\u3092\u5e83\u3052\u308b\u3068\u30b7\u30fc\u30c8\u306e\u76f4\u63a5\u5171\u6709\u3068\u7570\u306a\u308b\u7d4c\u8def\u3067\u60c5\u5831\u304c\u898b\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5916\u90e8\u306eD3.js\u3082\u30da\u30fc\u30b8\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u308b\u306e\u3067\u3001\u793e\u5185\u60c5\u5831\u3067\u306e\u904b\u7528\u3092\u78ba\u8a8d\u6e08\u307f\u3068\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u968e\u5c64\u30c7\u30fc\u30bf\u3092\u3001D3.js\u3092\u4f7f\u3063\u3066\u30d6\u30e9\u30a6\u30b6\u4e0a\u306b\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u8868\u793a\u30a4\u30e1\u30fc\u30b8 \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 \u4ee5\u4e0b\u306e\u753b\u50cf\u306f\u65e7\u7248\u306e\u53c2\u8003\u3067\u3059\u3002\u4eca\u56de\u306e\u4fee\u6b63\u7248\u30b3\u30fc\u30c9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22929,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u968e\u5c64\u8868\u793a\u306e\u624b\u9806\uff5cD3.js\u30c4\u30ea\u30fc\u69cb\u9020\u53ef\u8996\u5316","ssp_meta_description":"Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u968e\u5c64\u30c7\u30fc\u30bf\u3092D3.js\u3068GAS\u3067\u30c4\u30ea\u30fc\u69cb\u9020\u306b\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002index.html\u306a\u30694\u3064\u306e\u30b3\u30fc\u30c9\u5168\u6587\u3092\u63b2\u8f09\u3057\u3001\u30ce\u30fc\u30c9\u306e\u30db\u30d0\u30fc\u6642\u306b\u88dc\u8db3\u60c5\u5831\u3092\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u8868\u793a\u3059\u308b\u5b9f\u88c5\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002"},"categories":[16],"tags":[18],"class_list":["post-22928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-applications","tag-gas"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/22928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/comments?post=22928"}],"version-history":[{"count":11,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/22928\/revisions"}],"predecessor-version":[{"id":23861,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/22928\/revisions\/23861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media\/22929"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media?parent=22928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/categories?post=22928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/tags?post=22928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}