{"id":2271,"date":"2026-05-26T08:05:44","date_gmt":"2026-05-26T08:05:44","guid":{"rendered":"https:\/\/www.vpascode.com\/tw\/docs\/uncategorized\/mermaid-js-timeline-syntax-guide\/"},"modified":"2026-05-26T08:05:44","modified_gmt":"2026-05-26T08:05:44","slug":"mermaid-js-timeline-syntax-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","title":{"rendered":"Mermaid.js \u6642\u9593\u8ef8\u8a9e\u6cd5\u6307\u5357"},"content":{"rendered":"<h2>\u4ec0\u9ebc\u662f\u6642\u9593\u8ef8\u5716\u8868\uff1f<\/h2>\n<p>\u4e00\u500b<strong>\u6642\u9593\u8ef8\u5716\u8868<\/strong>\u662f\u4e00\u7a2e\u7528\u65bc\u6cbf\u7dda\u6027\u6642\u9593\u8def\u5f91\u6620\u5c04\u4e8b\u4ef6\u6216\u5c08\u6848\u91cc\u7a0b\u7891\u7684\u6642\u9593\u9806\u5e8f\u53ef\u8996\u5316\u5de5\u5177\u3002\u96d6\u7136\u7518\u7279\u5716\u8655\u7406\u8907\u96dc\u7684\u4efb\u52d9\u4f9d\u8cf4\u95dc\u4fc2\u548c\u6301\u7e8c\u6642\u9593\uff0c\u4f46\u6642\u9593\u8ef8\u5716\u8868\u5c08\u6ce8\u65bc<em>\u4f55\u6642<\/em>\u2014\u2014\u63d0\u4f9b\u5c08\u6848\u6f14\u9032\u6216\u7cfb\u7d71\u767c\u884c\u9031\u671f\u7684\u6e05\u6670\u3001\u6613\u65bc\u6383\u63cf\u7684\u6558\u8ff0\u3002<\/p>\n<p>\u4f7f\u7528<strong>Mermaid.js<\/strong>\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7c21\u55ae\u7684\u5c64\u6b21\u5316\u6587\u5b57\u683c\u5f0f\u4f86\u5b9a\u7fa9\u60a8\u7684\u6642\u9593\u8ef8\u3002\u5f15\u64ce\u6703\u81ea\u52d5\u8655\u7406\u9593\u8ddd\u3001\u65e5\u671f\u6216\u671f\u9593\u6a19\u7c64\u7684\u683c\u5f0f\u5316\uff0c\u4ee5\u53ca\u4e8b\u4ef6\u6a19\u8a18\u6cbf\u4e2d\u592e\u6642\u9593\u8ef8\u7684\u5c0d\u9f4a\u3002<\/p>\n<h2>\u6838\u5fc3\u8a9e\u6cd5\u6307\u5357<\/h2>\n<p>\u8981\u8a2d\u8a08\u4e00\u500b\u6709\u6548\u4e14\u53ef\u57f7\u884c\u7684\u6642\u9593\u8ef8\uff0c\u60a8\u5fc5\u9808\u5b9a\u7fa9\u8ef8\u7684\u671f\u9593\uff0c\u4e26\u5c07\u4e8b\u4ef6\u5c0d\u61c9\u5230\u7279\u5b9a\u7684\u5340\u6bb5\u3002<\/p>\n<h3>1. \u521d\u59cb\u5316\u6642\u9593\u8ef8<\/h3>\n<p>\u60a8\u53ef\u4f7f\u7528<code>timeline<\/code>\u95dc\u9375\u5b57\u4f86\u521d\u59cb\u5316\u756b\u5e03\u3002\u7d50\u69cb\u662f\u900f\u904e\u5b9a\u7fa9\u5340\u6bb5\uff08\u4f5c\u70ba\u5206\u7d44\uff09\u4e26\u5c07\u4e8b\u4ef6\uff08\u6216\u65e5\u671f\uff09\u5c0d\u61c9\u5230\u9019\u4e9b\u5340\u6bb5\u4f86\u5efa\u7acb\u7684\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:eNorycxNzcnMS+XlUgCCksySnFSF4MriktRcBZfUstSc\/ILc1LwSBY\/M4pL8okqIquLU5JLM\/DwFIwMjU4gICAQaKlgpOOYUZCQq+CSW5iVnYCg2Q1JsBFTslFqSqBCUmpOaWJwKAODzJjs=\" 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:eNorycxNzcnMS+XlUgCCksySnFSF55t3P9+68eW07ucz9zxbu\/1p\/yaIbHFqcklmfp6CkYGRKUQEBAINFawUHHMKMhIVgOqf7mjGUGyGpNgIqNgptQSmFgAALiz1\" \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\">timeline\r\n    title \u7cfb\u7d71\u958b\u767c\u6b77\u53f2\r\n    section 2025\r\n        Q1 : Alpha \u767c\u5e03\r\n    section 2026\r\n        Q2 : Beta \u767c\u5e03<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorycxNzcnMS+XlUgCCksySnFSF55t3P9+68eW07ucz9zxbu\/1p\/yaIbHFqcklmfp6CkYGRKUQEBAINFawUHHMKMhIVgOqf7mjGUGyGpNgIqNgptQSmFgAALiz1\" \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:eNorycxNzcnMS+XlUgCCksySnFSF4MriktRcBZfUstSc\/ILc1LwSBY\/M4pL8okqIquLU5JLM\/DwFIwMjU4gICAQaKlgpOOYUZCQq+CSW5iVnYCg2Q1JsBFTslFqSqBCUmpOaWJwKAODzJjs=\" 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=\"KIeoQgR\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-650\" decoding=\"async\" fetchpriority=\"high\" height=\"595\" sizes=\"(max-width: 895px) 100vw, 895px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png 895w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5-300x199.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5-768x511.png 768w\" width=\"895\"\/><\/p>\n<h3>2. \u70ba\u4e8b\u4ef6\u6dfb\u52a0\u7d30\u7bc0<\/h3>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u5192\u865f\u5206\u9694\u7684\u6e05\u55ae\uff0c\u70ba\u55ae\u4e00\u6642\u9593\u6a19\u8a18\u6dfb\u52a0\u591a\u500b\u7d30\u7bc0\u3002\u9019\u5c0d\u65bc\u7e3d\u7d50\u8207\u7279\u5b9a\u65e5\u671f\u6216\u671f\u9593\u76f8\u95dc\u7684\u95dc\u9375\u6210\u679c\u6216\u7248\u672c\u865f\u78bc\u975e\u5e38\u6709\u7528\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:eNorycxNzcnMS+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBKISC1KC2\/KDcxLzlVwTO3oCi\/LDU3Na+kGJva4NTk0qLMkkqFgMSS5IzUYgAC+yLk\" 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:eNorycxNzcnMS+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBK4VnD8hfNe59N2fmyYRM2+afrOp+2rniyf92LxXMAbDgkMg==\" \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\">timeline\r\n    section Q3 2026\r\n        Release : v1.0.0\r\n                : \u6027\u80fd\u6539\u9032\r\n                : \u5b89\u5168\u4fee\u88dc<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorycxNzcnMS+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBK4VnD8hfNe59N2fmyYRM2+afrOp+2rniyf92LxXMAbDgkMg==\" \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:eNorycxNzcnMS+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBKISC1KC2\/KDcxLzlVwTO3oCi\/LDU3Na+kGJva4NTk0qLMkkqFgMSS5IzUYgAC+yLk\" 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=\"Lglvjvx\"><img alt=\"\" class=\"alignnone size-full wp-image-651\" decoding=\"async\" height=\"666\" sizes=\"(max-width: 590px) 100vw, 590px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e537ef9.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e537ef9.png 590w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e537ef9-266x300.png 266w\" width=\"590\"\/><\/p>\n<h2>\u73fe\u5be6\u4e16\u754c\u4e2d\u7684 Mermaid.js \u6642\u9593\u5716\u8868\u793a\u4f8b\uff1a\u7522\u54c1\u767c\u884c\u8def\u7dda\u5716<\/h2>\n<p>\u6b64\u85cd\u5716\u6a21\u64ec\u4e86\u591a\u5e74\u7522\u54c1\u8def\u7dda\u5716\uff0c\u6309\u8ca1\u653f\u5e74\u5ea6\u5206\u7d44\u767c\u884c\uff0c\u4e26\u7a81\u51fa\u986f\u793a\u6bcf\u500b\u9031\u671f\u7684\u95dc\u9375\u4ea4\u4ed8\u6210\u679c\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:eNplUMFqwlAQvBf6D\/sDgk2hgre2oggKUWnv68uQPNy8De9tIv59n3qoxDnsYWd2hlnzLcQHvL5QhnkTUBm16p3RXrlquaNiWnxM8pjdRQnOvIbb+r65YvdGc1r45HRAvFDZcMI\/mzGng\/EJjUqFSOtgiIPHOT1YFFm0\/S1pgQGiXYtgI4tvjaDPcp0lydfh4fY9s18wpj0Ez9k\/KYcugerI7kQb1S49tZmN2ix7EdpwH1wzcluJHlno4Dj\/rv4DiRdUCA==\" 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:eNpdj89qwkAQxu+FvsO8gNCmoOCtxx6EeOnz2IZgqG1SiKbE5NCmCOt\/hC1uNZKXcXZ236KrHrT7HQaG+X7z8cn0WSex2orrKzCSLNVfr+DcOPWaGQ3AX079AuMntV7Seoh5cjLSsnN0nbaD2rfQBBkWxAs9DOXi53wyagIGY8peKBP6I1cdX7GJmnYvcMd4Wo8u6KRHaWnB8lNg5cG9+wCKzRULLsC7w3N\/JsXMcCg8C93vKuozk4jRmx71VMUxD\/6VaNgl5t9YRjJk2N3YJXxG756MOa4Gf03LgFU=\" \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\">\u6642\u9593\u8ef8\r\n    \u6a19\u984c 2026-2027 \u5e74\u7522\u54c1\u8def\u7dda\u5716\r\n    \u7bc0 2026\r\n        Q1 : \u63a2\u7d22\u968e\u6bb5\r\n           : \u5229\u76ca\u76f8\u95dc\u8005\u8a2a\u8ac7\r\n        Q2 : MVP \u958b\u767c\r\n           : \u6838\u5fc3 API \u8a2d\u8a08\r\n        Q3 : \u516c\u6e2c\u767c\u5e03\r\n           : \u4f7f\u7528\u8005\u53cd\u994b\u8ff4\u5708\r\n    \u7bc0 2027\r\n        Q1 : \u6b63\u5f0f\u63a8\u51fa\r\n           : \u5168\u7403\u64f4\u5c55<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpdj89qwkAQxu+FvsO8gNCmoOCtxx6EeOnz2IZgqG1SiKbE5NCmCOt\/hC1uNZKXcXZ236KrHrT7HQaG+X7z8cn0WSex2orrKzCSLNVfr+DcOPWaGQ3AX079AuMntV7Seoh5cjLSsnN0nbaD2rfQBBkWxAs9DOXi53wyagIGY8peKBP6I1cdX7GJmnYvcMd4Wo8u6KRHaWnB8lNg5cG9+wCKzRULLsC7w3N\/JsXMcCg8C93vKuozk4jRmx71VMUxD\/6VaNgl5t9YRjJk2N3YJXxG756MOa4Gf03LgFU=\" \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:eNplUMFqwlAQvBf6D\/sDgk2hgre2oggKUWnv68uQPNy8De9tIv59n3qoxDnsYWd2hlnzLcQHvL5QhnkTUBm16p3RXrlquaNiWnxM8pjdRQnOvIbb+r65YvdGc1r45HRAvFDZcMI\/mzGng\/EJjUqFSOtgiIPHOT1YFFm0\/S1pgQGiXYtgI4tvjaDPcp0lydfh4fY9s18wpj0Ez9k\/KYcugerI7kQb1S49tZmN2ix7EdpwH1wzcluJHlno4Dj\/rv4DiRdUCA==\" 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=\"iytpJGS\"><img alt=\"\" class=\"alignnone size-full wp-image-652\" decoding=\"async\" height=\"670\" sizes=\"(max-width: 1190px) 100vw, 1190px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e878b33.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e878b33.png 1190w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e878b33-300x169.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e878b33-1024x577.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e878b33-768x432.png 768w\" width=\"1190\"\/><\/p>\n<h2>\u6642\u9593\u8ef8\u7684\u6700\u4f73\u5be6\u52d9<\/h2>\n<ul>\n<li><strong>\u4fdd\u6301\u5206\u985e\u7c21\u6f54\uff1a<\/strong> \u4f7f\u7528 <code>\u7bc0<\/code> \u7528\u4f86\u6a19\u793a\u9ad8\u968e\u5206\u7d44\uff08\u4f8b\u5982\u5e74\u4efd\u6216\u4e3b\u8981\u968e\u6bb5\uff09\uff0c\u4e26\u4fdd\u6301\u5176\u4e0b\u7684\u5be6\u969b\u4e8b\u4ef6\u5177\u9ad4\u4e14\u53ef\u57f7\u884c\u3002<\/li>\n<li><strong>\u65e5\u671f\u683c\u5f0f\u4e00\u81f4\uff1a<\/strong> \u78ba\u4fdd\u60a8\u7684\u6642\u9593\u8ef8\u4e8b\u4ef6\u5728\u7a0b\u5f0f\u78bc\u4e2d\u6309\u6642\u9593\u9806\u5e8f\u6392\u5217\uff0c\u56e0\u70ba Mermaid \u5f15\u64ce\u6703\u6839\u64da\u60a8\u7684\u8173\u672c\u9806\u5e8f\u4f86\u6c7a\u5b9a\u4f48\u5c40\u4f4d\u7f6e\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7d30\u7bc0\u63d0\u4f9b\u80cc\u666f\uff1a<\/strong> \u4e0d\u8981\u5728\u4e2d\u592e\u8ef8\u4e0a\u5806\u758a\u592a\u591a\u6587\u5b57\u3002\u4f7f\u7528\u591a\u884c\u4e8b\u4ef6\u683c\u5f0f\u4f86\u5206\u89e3\u300c\u767c\u751f\u4e86\u4ec0\u9ebc\u300d\uff0c\u800c\u4e0d\u662f\u8b93\u65e5\u671f\u6a19\u7c64\u672c\u8eab\u904e\u9577\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u9ebc\u662f\u6642\u9593\u8ef8\u5716\u8868\uff1f \u4e00\u500b\u6642\u9593\u8ef8\u5716\u8868\u662f\u4e00\u7a2e\u7528\u65bc\u6cbf\u7dda\u6027\u6642\u9593\u8def\u5f91\u6620\u5c04\u4e8b\u4ef6\u6216\u5c08\u6848\u91cc\u7a0b\u7891\u7684&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":9,"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-2271","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 Timeline Syntax | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight 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-timeline-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Timeline Syntax | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.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=\"2 \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-timeline-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/\",\"name\":\"Mermaid Timeline 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-timeline-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1904e148fe5.png\",\"datePublished\":\"2026-05-26T08:05:44+00:00\",\"description\":\"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1904e148fe5.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1904e148fe5.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/tw\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-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 \u6642\u9593\u8ef8\u8a9e\u6cd5\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 Timeline Syntax | VPasCode Text to Diagram Guide","description":"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight 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-timeline-syntax-guide\/","og_locale":"zh_TW","og_type":"article","og_title":"Mermaid Timeline Syntax | VPasCode Text to Diagram Guide","og_description":"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u9810\u4f30\u95b1\u8b80\u6642\u9593":"2 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","url":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","name":"Mermaid Timeline 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-timeline-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png","datePublished":"2026-05-26T08:05:44+00:00","description":"Document chronological project histories with Mermaid timeline charts in VPasCode, a lightweight diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1904e148fe5.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/tw\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-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 \u6642\u9593\u8ef8\u8a9e\u6cd5\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\/2271","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\/4"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/media?parent=2271"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/tw\/wp-json\/wp\/v2\/ld_collection?post=2271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}