{"id":2256,"date":"2026-07-03T09:26:10","date_gmt":"2026-07-03T09:26:10","guid":{"rendered":"https:\/\/www.vpascode.com\/tw\/docs\/uncategorized\/mermaid-js-treemap-diagram-syntax-layout-guide\/"},"modified":"2026-07-03T09:26:10","modified_gmt":"2026-07-03T09:26:10","slug":"mermaid-js-treemap-diagram-syntax-layout-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/","title":{"rendered":"Mermaid.js \u6a39\u72c0\u5716\u5716\u793a\u8a9e\u6cd5\u8207\u4f48\u5c40\u6307\u5357"},"content":{"rendered":"<p>\u6a39\u72c0\u5716\u4ee5\u4e00\u7d44\u5d4c\u5957\u7684\u77e9\u5f62\u986f\u793a\u5c64\u6b21\u7d50\u69cb\u8cc7\u6599\u3002\u6a39\u7684\u6bcf\u500b\u5206\u652f\u7531\u4e00\u500b\u77e9\u5f62\u8868\u793a\uff0c\u7136\u5f8c\u4ee5\u8f03\u5c0f\u7684\u77e9\u5f62\u9032\u884c\u92ea\u6392\uff0c\u4ee3\u8868\u5b50\u5206\u652f\u3002\u6bcf\u500b\u77e9\u5f62\u7684\u5927\u5c0f\u8207\u5176\u6578\u503c\u5b8c\u5168\u6210\u6bd4\u4f8b\uff0c\u4f7f\u5176\u6210\u70ba\u5728\u8907\u96dc\u5206\u985e\u5c64\u7d1a\u4e2d\u6bd4\u8f03\u6574\u9ad4\u5404\u90e8\u5206\u7684\u512a\u79c0\u6587\u5b57\u8f49\u5716\u793a\u9078\u64c7\u3002<\/p>\n<h2>\u57fa\u672c\u8a9e\u6cd5\u7d50\u69cb<\/h2>\n<p>\u6bcf\u500b\u6a39\u72c0\u5716\u90fd\u4ee5<code>treemap-beta<\/code>\u5ba3\u544a\u958b\u59cb\u3002\u63a5\u8457\u4f7f\u7528\u5f15\u865f\u5305\u8986\u7684\u540d\u7a31\u5ba3\u544a\u7d50\u69cb\u4e0a\u7684\u7236\u7bc0\u9ede\uff0c\u4e26\u900f\u904e\u6a19\u6e96\u7e2e\u6392\u7a7a\u683c\u5c07\u500b\u5225\u7684\u5b50\u8449\u7bc0\u9ede\u5206\u7d44\u65bc\u5176\u4e0b\uff0c\u518d\u52a0\u4e0a\u5192\u865f\u8207\u5176\u6578\u503c\u6b0a\u91cd\u4f86\u9032\u884c\u5c0d\u61c9\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VLyTczMU3BOLElNzy+qVPBLzE1V4uVSUFAKLk3ShQs7KlkpmJhiijsBxY0NMMWdgeJGpgC66x6O\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VJ6smP3i2WNLxfOe9qx9OmE3ucrNirxcikoKD1dOwEiqOCoZKVgYoom6AQUNDZAE3QGChqZAgCRJypB\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">treemap-beta\r\n\"\u4e3b\u8981\u985e\u5225\u540d\u7a31\"\r\n  \"\u5b50\u985e\u5225 A\": 45\r\n  \"\u5b50\u985e\u5225 B\": 30\r\n  \"\u5b50\u985e\u5225 C\": 25<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VJ6smP3i2WNLxfOe9qx9OmE3ucrNirxcikoKD1dOwEiqOCoZKVgYoom6AQUNDZAE3QGChqZAgCRJypB\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VLyTczMU3BOLElNzy+qVPBLzE1V4uVSUFAKLk3ShQs7KlkpmJhiijsBxY0NMMWdgeJGpgC66x6O\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"EIQKumD\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-920\" decoding=\"async\" fetchpriority=\"high\" height=\"371\" sizes=\"(max-width: 996px) 100vw, 996px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png 996w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc-300x112.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc-768x286.png 768w\" width=\"996\"\/><\/p>\n<h2>\u8a9e\u6cd5\u53c3\u8003<\/h2>\n<p>\u4e0b\u8868\u5206\u89e3\u4e86\u5728 Mermaid.js \u4e2d\u5efa\u7acb\u6a39\u72c0\u5716\u4f48\u5c40\u6240\u4f7f\u7528\u7684\u4e3b\u683c\u5f0f\u8981\u6c42\u3002<\/p>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>\u5143\u4ef6<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>\u8a9e\u6cd5\u898f\u5247<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u5ba3\u544a<\/strong><\/td>\n<td>\u521d\u59cb\u5316\u5d4c\u5957\u77e9\u5f62\u8cc7\u6599\u96c6\u7684\u4f48\u5c40\u7d50\u69cb\u5f15\u64ce\u3002<\/td>\n<td><code>treemap-beta<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u7236\u7bc0\u9ede<\/strong><\/td>\n<td>\u5b9a\u7fa9\u4e00\u500b\u7fa4\u7d44\u908a\u754c\u6216\u7236\u985e\u5225\u3002\u6587\u5b57\u5fc5\u9808\u59cb\u7d42\u7528\u96d9\u5f15\u865f\u5305\u8986\u3002<\/td>\n<td><code>\"\u96f2\u7aef\u57fa\u790e\u8a2d\u65bd\"<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u8449\u7bc0\u9ede<\/strong><\/td>\n<td>\u4e00\u500b\u5177\u6709\u7279\u5b9a\u503c\u6b0a\u91cd\u7684\u5d4c\u5957\u8cc7\u6599\u5143\u7d20\u3002<\/td>\n<td>\u4f7f\u7528\u5c3e\u96a8\u5192\u865f\u8207\u6b63\u6578\uff0c\u7e2e\u6392\u65bc\u7236\u7bc0\u9ede\u4e4b\u4e0b\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>\u5c64\u6b21\u8cc7\u6599<\/strong><\/td>\n<td>\u4f7f\u7528\u6587\u5b57\u6df1\u5ea6\u4f86\u6c7a\u5b9a\u54ea\u4e9b\u5143\u7d20\u5c6c\u65bc\u7279\u5b9a\u7fa4\u7d44\u3002<\/td>\n<td>\u5b8c\u5168\u900f\u904e\u6a19\u6e96\u7e2e\u6392\u5c64\u7d1a\uff08\u7a7a\u683c\u6216\u6a19\u7c64\uff09\u63a7\u5236\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr\/>\n<h2>\u9032\u968e\u8cc7\u6599\u683c\u5f0f\u5316\uff08\u6307\u4ee4\uff09<\/h2>\n<p>\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0cMermaid \u6703\u986f\u793a\u539f\u59cb\u7684\u6578\u503c\u8a08\u6578\u3002\u7136\u800c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>valueFormat<\/code> \u5c6c\u6027\uff0c\u7528\u65bc\u5c07\u6578\u5b57\u683c\u5f0f\u5316\u70ba\u8ca8\u5e63\u3001\u5c0f\u6578\u6216\u767e\u5206\u6bd4\u3002<\/p>\n<h3>\u5e38\u898b\u7684\u683c\u5f0f\u7bc4\u5f0f<\/h3>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>\u683c\u5f0f\u5b57\u4e32<\/th>\n<th>\u7d50\u679c\u985e\u578b<\/th>\n<th>\u7bc4\u4f8b\u8f38\u51fa<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>'$0,0'<\/code><\/td>\n<td>\u4f7f\u7528\u6a19\u6e96\u5343\u4f4d\u5206\u9694\u7b26\u7684\u7f8e\u5143\u7b26\u865f\u3002<\/td>\n<td>$400,000<\/td>\n<\/tr>\n<tr>\n<td><code>'.1f'<\/code><\/td>\n<td>\u986f\u793a\u6070\u597d\u4e00\u4f4d\u5c0f\u6578\u7684\u6578\u5b57\u3002<\/td>\n<td>45.2<\/td>\n<\/tr>\n<tr>\n<td><code>'.1%'<\/code><\/td>\n<td>\u5c07\u539f\u59cb\u91cd\u91cf\u503c\u8f49\u63db\u70ba\u767e\u5206\u6bd4\u986f\u793a\u3002<\/td>\n<td>35.4%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8ca1\u52d9\u8cc7\u6599\u85cd\u5716<\/h3>\n<p>\u6b64\u85cd\u5716\u793a\u7bc4\u5982\u4f55\u5229\u7528\u81ea\u8a02\u8ca1\u52d9\u5b57\u4e32\u53c3\u6578\u4f86\u683c\u5f0f\u5316\u71df\u904b\u4f01\u696d\u9810\u7b97\uff1a<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpNjsFqwzAMhu+BvIMwg15myCiBkdvapmWHssH2AmqjuqaJZRQle\/3ZWwPVSfB\/3y9Za8vizOHiXVMWACpEA8a\/HWDGfqI9y4DawOqpeq5WZWGzcufsiRTLwmxZIgsqwWbqHKnJvmmD84FIfHDwESnlnsNo\/ruzQ\/AeLoKjynTWScg0UFd57siOZuo5mfDN3I8pfqmX2ByEf\/QKR5QbaTqx9H6i7+Ctgy0OEb0LWVvXD63tTEHhK6ZfWMarj5l4zcAv571NKQ==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNrT1dXl5UrOz0vLTLfi5VJQKClKTc1NLACzFRTKEnNKU93yi3ITS6wU1FUMdAzUebl0QVqg6nSTUksSebmUnuxpfLZ07csFE56vm64E0qv0dPvS5yu6n7fPf9nYrQQxTenZgh1P9zc\/nb\/r+ZK+FyvWPpu2V8lKwdQABKAqXk7rfj5zz4uGVqD2p63bgdKGpjBppWcdE15O3f5iYc\/Lru0wI5\/snvFi0+6nuxc\/ndj1bMvup91TgXqMTZGMhIi+2NL1tGslUM4CJAUABB9kdA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">---\r\nconfig:\r\n  treemap:\r\n    valueFormat: '$0,0'\r\n---\r\ntreemap-beta\r\n\"\u4f01\u696d\u9810\u7b97\"\r\n  \"\u5de5\u7a0b\u71df\u904b\"\r\n    \"\u6838\u5fc3\u57fa\u790e\u8a2d\u65bd\": 500000\r\n    \"\u958b\u767c\u8005\u5de5\u5177\": 150000\r\n  \"\u6210\u9577\u884c\u92b7\"\r\n    \"\u4ed8\u8cbb\u5ee3\u544a\u6d3b\u52d5\": 350000\r\n    \"\u6d3b\u52d5\u8d0a\u52a9\": 80000<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNrT1dXl5UrOz0vLTLfi5VJQKClKTc1NLACzFRTKEnNKU93yi3ITS6wU1FUMdAzUebl0QVqg6nSTUksSebmUnuxpfLZ07csFE56vm64E0qv0dPvS5yu6n7fPf9nYrQQxTenZgh1P9zc\/nb\/r+ZK+FyvWPpu2V8lKwdQABKAqXk7rfj5zz4uGVqD2p63bgdKGpjBppWcdE15O3f5iYc\/Lru0wI5\/snvFi0+6nuxc\/ndj1bMvup91TgXqMTZGMhIi+2NL1tGslUM4CJAUABB9kdA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpNjsFqwzAMhu+BvIMwg15myCiBkdvapmWHssH2AmqjuqaJZRQle\/3ZWwPVSfB\/3y9Za8vizOHiXVMWACpEA8a\/HWDGfqI9y4DawOqpeq5WZWGzcufsiRTLwmxZIgsqwWbqHKnJvmmD84FIfHDwESnlnsNo\/ruzQ\/AeLoKjynTWScg0UFd57siOZuo5mfDN3I8pfqmX2ByEf\/QKR5QbaTqx9H6i7+Ctgy0OEb0LWVvXD63tTEHhK6ZfWMarj5l4zcAv571NKQ==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"qqeROFF\"><img alt=\"\" class=\"alignnone size-full wp-image-921\" decoding=\"async\" height=\"371\" sizes=\"(max-width: 996px) 100vw, 996px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47815ca7348.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47815ca7348.png 996w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47815ca7348-300x112.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47815ca7348-768x286.png 768w\" width=\"996\"\/><\/p>\n<hr\/>\n<h2>\u81ea\u8a02\u7bc0\u9ede\u6a23\u5f0f\uff08\u985e\u5225\uff09<\/h2>\n<p>\u70ba\u4e86\u5f37\u8abf\u6587\u4ef6\u4e2d\u7684\u95dc\u9375\u7bc0\u9ede\u3001\u7570\u5e38\u503c\u6216\u9ad8\u98a8\u96aa\u5340\u57df\uff0c\u60a8\u53ef\u4ee5\u5728\u7a0b\u5f0f\u78bc\u5340\u584a\u5167\u4f7f\u7528\u300cclassDef\u300d\u898f\u5247\u539f\u751f\u5b9a\u7fa9\u4e26\u5957\u7528 CSS \u81ea\u8a02\u6a23\u5f0f\uff1a<code>classDef<\/code>\u898f\u5247\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNo1jkELwjAMhe+D\/Ycwrw7GUMF6UgfiRYZDPGdd5oqdG22m9t9bxb7b+5K8FzZEPY5pTYxxlFTOMvVwJjtMRhJcLN4oiSOA5Eo1VGSeSpL9Ec+25REOyPRClwhYLAOeuAu7nq+XQghpFCuJ+pdVIGONlqDiwYQGz0ujejQOih3sUXbf41X2n51p1D4AKveQcBoa\/4WA3FfGkdRobUEthBJoldZi1rbSa27ZDHf62szrb9OXargT+fjefAAxAk4y\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VJ6vnn3860bX2xuf7ZrwpO9+59PWfGsufXZ5kYlXi4FBaXn2za92L7+2Zzep90zwSJAMccATwWg+Mvpc5SsFExMoaIvV05\/sbYTqtJKwdLUysoquSizJDM5MQdsFMiKaTOf7lr9tGXT07UzYKY92bH7xbJGhOT+1U\/7pwENMDOAKnixpP3ZnDVPJ\/Q8W7v0+fqGl7vnAWWNgNbyciXnJBYXu6SmKcAsUkjLzMmxUk5LSwYCneKSovzsVBDXAAigXN3yzJSSDCujggprABt4dhE=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">treemap-beta\r\n\"\u7cfb\u7d71\u8cc7\u6e90\u4f7f\u7528\u60c5\u6cc1\"\r\n  \"\u7db2\u8def\u670d\u52d9\"\r\n    \"API \u7db2\u95dc\": 45\r\n    \"\u9a57\u8b49\u670d\u52d9\": 95:::critical\r\n  \"\u8cc7\u6599\u5eab\u5132\u5b58\"\r\n    \"\u4e3b\u8981\u8cc7\u6599\u5eab\u5feb\u53d6\": 60\r\n    \"\u8907\u672c\u540c\u6b65\u7bc0\u9ede\": 25\r\n\r\nclassDef critical fill:#ffcccc,stroke:#ff0000,stroke-width:2px;<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorKUpNzU0s0E1KLUnk5VJ6vnn3860bX2xuf7ZrwpO9+59PWfGsufXZ5kYlXi4FBaXn2za92L7+2Zzep90zwSJAMccATwWg+Mvpc5SsFExMoaIvV05\/sbYTqtJKwdLUysoquSizJDM5MQdsFMiKaTOf7lr9tGXT07UzYKY92bH7xbJGhOT+1U\/7pwENMDOAKnixpP3ZnDVPJ\/Q8W7v0+fqGl7vnAWWNgNbyciXnJBYXu6SmKcAsUkjLzMmxUk5LSwYCneKSovzsVBDXAAigXN3yzJSSDCujggprABt4dhE=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNo1jkELwjAMhe+D\/Ycwrw7GUMF6UgfiRYZDPGdd5oqdG22m9t9bxb7b+5K8FzZEPY5pTYxxlFTOMvVwJjtMRhJcLN4oiSOA5Eo1VGSeSpL9Ec+25REOyPRClwhYLAOeuAu7nq+XQghpFCuJ+pdVIGONlqDiwYQGz0ujejQOih3sUXbf41X2n51p1D4AKveQcBoa\/4WA3FfGkdRobUEthBJoldZi1rbSa27ZDHf62szrb9OXargT+fjefAAxAk4y\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7de8\u8f2f Mermaid<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"KabaMcp\"><img alt=\"\" class=\"alignnone size-full wp-image-922\" decoding=\"async\" height=\"371\" sizes=\"(max-width: 996px) 100vw, 996px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47819db27af.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47819db27af.png 996w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47819db27af-300x112.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47819db27af-768x286.png 768w\" width=\"996\"\/><\/p>\n<p><em><strong>\u8a9e\u6cd5\u63d0\u793a\uff1a<\/strong> \u82e5\u8981\u5c07\u985e\u5225\u5b9a\u7fa9\u5957\u7528\u81f3\u5305\u542b\u6578\u503c\u7684\u8449\u7bc0\u9ede\uff0c\u8acb\u4f7f\u7528\u4e09\u500b\u5192\u865f\uff08<code>:::className<\/code>) \u5728\u6a19\u7c64\u540d\u7a31\u4e4b\u5f8c\u7acb\u5373\u51fa\u73fe\uff0c\u4f46\u4f4d\u65bc\u5192\u865f\u503c\u5206\u9694\u7b26\u865f\u4e4b\u524d\u3002<\/em><\/p>\n<hr\/>\n<h2>\u5e38\u898b\u8a9e\u6cd5\u9677\u9631\u8207\u9650\u5236<\/h2>\n<p>\u7531\u65bc\u6a39\u72c0\u5716\u6a21\u5f0f\u5229\u7528\u7d50\u69cb\u5316\u6587\u5b57\u7e2e\u6392\uff0c\u5fae\u5c0f\u7684\u683c\u5f0f\u932f\u8aa4\u53ef\u80fd\u5c0e\u81f4\u4f48\u5c40\u6e32\u67d3\u554f\u984c\u3002\u8acb\u8a18\u4f4f\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<ul>\n<li><strong>\u7981\u6b62\u8ca0\u503c\uff1a<\/strong>\u6a39\u72c0\u5716\u4f9d\u8cf4\u6bd4\u4f8b\u7a7a\u9593\u586b\u5145\uff0c\u6578\u5b78\u4e0a\u7121\u6cd5\u5448\u73fe\u8ca0\u6578\u6216\u96f6\u6b0a\u91cd\u3002\u8acb\u78ba\u4fdd\u6240\u6709\u8cc7\u6599\u503c\u5747\u70ba\u6b63\u6574\u6578\u6216\u5c0f\u6578\u3002<\/li>\n<li><strong>\u5f15\u865f\u5305\u570d\uff1a<\/strong> \u6bcf\u500b\u7bc0\u9ede\u63cf\u8ff0\u2014\u2014\u7121\u8ad6\u662f\u7236\u5206\u652f\u9084\u662f\u5fae\u5c0f\u7684\u8449\u7bc0\u9ede\u2014\u2014\u90fd\u5fc5\u9808\u4e7e\u6de8\u5730\u7528\u96d9\u5f15\u865f\u5305\u570d\u3002\u7701\u7565\u5f15\u865f\u6703\u7acb\u5373\u5c0e\u81f4\u8a9e\u6cd5\u932f\u8aa4\u3002<\/li>\n<li><strong>\u7a7a\u767d\u7b26\u865f\u4e00\u81f4\u6027\uff1a<\/strong> \u5d4c\u5957\u7684\u7236\u7bc0\u9ede-\u5b50\u7bc0\u9ede\u95dc\u4fc2\u50c5\u7531\u884c\u9996\u7684\u7a7a\u683c\u6578\u91cf\u6c7a\u5b9a\u3002\u8acb\u9075\u5faa\u4e00\u81f4\u7684\u88fd\u8868\u7b26\u6216\u7a7a\u683c\u9577\u5ea6\u898f\u5247\uff08\u4f8b\u5982\u6bcf\u7d1a\u5169\u7a7a\u683c\uff09\uff0c\u4ee5\u9632\u6b62\u7bc0\u9ede\u843d\u5165\u932f\u8aa4\u7684\u7fa4\u7d44\u3002<\/li>\n<li><strong>\u6a19\u7c64\u53ef\u898b\u6027\uff1a<\/strong> \u6df1\u5c64\u7d1a\u5225\u7d50\u69cb\u4e2d\u7684\u6975\u5c0f\u503c\u53ef\u80fd\u5c0e\u81f4\u6975\u5c0f\u7684\u77e9\u5f62\u5716\u584a\uff0c\u4f7f\u6587\u5b57\u6ea2\u51fa\u6216\u5b8c\u5168\u7121\u6cd5\u8fa8\u8b58\u3002\u5efa\u8b70\u5c07\u5c0f\u9805\u76ee\u5408\u4f75\u81f3\u300c\u5176\u4ed6\u300d\u985e\u5225\u4e0b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6a39\u72c0\u5716\u4ee5\u4e00\u7d44\u5d4c\u5957\u7684\u77e9\u5f62\u986f\u793a\u5c64\u6b21\u7d50\u69cb\u8cc7\u6599\u3002\u6a39\u7684\u6bcf\u500b\u5206\u652f\u7531\u4e00\u500b\u77e9\u5f62\u8868\u793a\uff0c\u7136\u5f8c\u4ee5\u8f03\u5c0f\u7684&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":14,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2256","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mermaid Treemap Syntax | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Treemap Syntax | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/\",\"name\":\"Mermaid Treemap Syntax | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a47814e082dc.png\",\"datePublished\":\"2026-07-03T09:26:10+00:00\",\"description\":\"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a47814e082dc.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a47814e082dc.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-treemap-diagram-syntax-layout-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mermaid.js \u6a39\u72c0\u5716\u5716\u793a\u8a9e\u6cd5\u8207\u4f48\u5c40\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid Treemap Syntax | VPasCode Text to Diagram Guide","description":"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/","og_locale":"zh_TW","og_type":"article","og_title":"Mermaid Treemap Syntax | VPasCode Text to Diagram Guide","og_description":"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u9810\u4f30\u95b1\u8b80\u6642\u9593":"3 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/","url":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/","name":"Mermaid Treemap Syntax | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/tw\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png","datePublished":"2026-07-03T09:26:10+00:00","description":"Visualize hierarchical nested data structures using Mermaid treemaps in VPasCode, an online diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a47814e082dc.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-treemap-diagram-syntax-layout-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/tw\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/tw\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Mermaid.js \u6a39\u72c0\u5716\u5716\u793a\u8a9e\u6cd5\u8207\u4f48\u5c40\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/tw\/#website","url":"https:\/\/www.vpascode.com\/tw\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/tw\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/tw\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/tw\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.vpascode.com\/tw\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/tw\/wp-content\/uploads\/sites\/2\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/tw\/wp-content\/uploads\/sites\/2\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/tw\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/ld_docs\/2256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/media?parent=2256"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/ld_collection?post=2256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}