{"id":2100,"date":"2026-05-26T08:05:44","date_gmt":"2026-05-26T08:05:44","guid":{"rendered":"https:\/\/www.vpascode.com\/cn\/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\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","title":{"rendered":"Mermaid.js \u65f6\u95f4\u7ebf\u8bed\u6cd5\u6307\u5357"},"content":{"rendered":"<h2>\u4ec0\u4e48\u662f\u65f6\u95f4\u7ebf\u56fe\uff1f<\/h2>\n<p>\u4e00\u4e2a<strong>\u65f6\u95f4\u7ebf\u56fe<\/strong>\u662f\u4e00\u79cd\u6309\u65f6\u95f4\u987a\u5e8f\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u7528\u4e8e\u5728\u4e00\u6761\u7ebf\u6027\u65f6\u95f4\u8def\u5f84\u4e0a\u7ed8\u5236\u4e8b\u4ef6\u6216\u9879\u76ee\u91cc\u7a0b\u7891\u3002\u867d\u7136\u7518\u7279\u56fe\u5904\u7406\u590d\u6742\u7684\u4efb\u52a1\u4f9d\u8d56\u5173\u7cfb\u548c\u6301\u7eed\u65f6\u95f4\uff0c\u4f46\u65f6\u95f4\u7ebf\u56fe\u5219\u4e13\u6ce8\u4e8e<em>\u4f55\u65f6<\/em>\u2014\u2014\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6e05\u6670\u3001\u6613\u4e8e\u626b\u63cf\u7684\u9879\u76ee\u6f14\u8fdb\u6216\u7cfb\u7edf\u53d1\u5e03\u5468\u671f\u7684\u53d9\u8ff0\u3002<\/p>\n<p>\u4f7f\u7528<strong>Mermaid.js<\/strong>\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u79cd\u7b80\u5355\u3001\u5206\u5c42\u7684\u6587\u672c\u683c\u5f0f\u6765\u5b9a\u4e49\u4f60\u7684\u65f6\u95f4\u7ebf\u3002\u5f15\u64ce\u4f1a\u81ea\u52a8\u5904\u7406\u95f4\u8ddd\u3001\u65e5\u671f\u6216\u65f6\u95f4\u6bb5\u6807\u7b7e\u7684\u683c\u5f0f\u5316\uff0c\u4ee5\u53ca\u4e8b\u4ef6\u6807\u8bb0\u5728\u4e2d\u5fc3\u65f6\u95f4\u8f74\u4e0a\u7684\u5bf9\u9f50\u3002<\/p>\n<h2>\u6838\u5fc3\u8bed\u6cd5\u6307\u5357<\/h2>\n<p>\u8981\u8bbe\u8ba1\u4e00\u4e2a\u6709\u6548\u4e14\u53ef\u8fd0\u884c\u7684\u65f6\u95f4\u7ebf\uff0c\u4f60\u5fc5\u987b\u5b9a\u4e49\u8f74\u7684\u5468\u671f\uff0c\u5e76\u5c06\u4e8b\u4ef6\u6620\u5c04\u5230\u7279\u5b9a\u7684\u7ae0\u8282\u3002<\/p>\n<h3>1. \u521d\u59cb\u5316\u65f6\u95f4\u7ebf<\/h3>\n<p>\u4f60\u4f7f\u7528<code>timeline<\/code>\u5173\u952e\u5b57\u6765\u521d\u59cb\u5316\u753b\u5e03\u3002\u7ed3\u6784\u901a\u8fc7\u5b9a\u4e49\u7ae0\u8282\uff08\u4f5c\u4e3a\u5206\u7ec4\uff09\u5e76\u5c06\u4e8b\u4ef6\uff08\u6216\u65e5\u671f\uff09\u6620\u5c04\u5230\u8fd9\u4e9b\u7ae0\u8282\u6765\u6784\u5efa\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\u7f16\u8f91 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+XlUgCCksySnFSF55t3P989\/+mehqf9E5\/2tT3t3wSRLU5NLsnMz1MwMjAyhYiAQKChgpWCY05BRqICSP2OZgzFZkiKjYCKnVJLYGoBxtwsCg==\" \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\u7edf\u5f00\u53d1\u5386\u53f2\r\n    section 2025\r\n        Q1 : Alpha \u53d1\u5e03\r\n    section 2026\r\n        Q2 : Beta \u53d1\u5e03<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorycxNzcnMS+XlUgCCksySnFSF55t3P989\/+mehqf9E5\/2tT3t3wSRLU5NLsnMz1MwMjAyhYiAQKChgpWCY05BRqICSP2OZgzFZkiKjYCKnVJLYGoBxtwsCg==\" \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\u7f16\u8f91 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. \u4e3a\u4e8b\u4ef6\u6dfb\u52a0\u8be6\u7ec6\u4fe1\u606f<\/h3>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5192\u53f7\u5206\u9694\u7684\u5217\u8868\uff0c\u4e3a\u5355\u4e2a\u65f6\u95f4\u6807\u8bb0\u6dfb\u52a0\u591a\u4e2a\u8be6\u7ec6\u4fe1\u606f\u3002\u8fd9\u5bf9\u4e8e\u603b\u7ed3\u4e0e\u7279\u5b9a\u65e5\u671f\u6216\u65f6\u95f4\u6bb5\u76f8\u5173\u7684\u5173\u952e\u6210\u679c\u6216\u7248\u672c\u53f7\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\u7f16\u8f91 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+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBK4VnD8hfNe59N2fli\/2xs8k\/XdT5tXfFi4dInOxoBcN0kLA==\" \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\u8fdb\r\n                : \u5b89\u5168\u8865\u4e01<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorycxNzcnMS+XlUgCC4tTkksz8PIVAYwUjAyMziCAIBKXmpCYWpypYKZQZ6hnoGSBkYMBK4VnD8hfNe59N2fli\/2xs8k\/XdT5tXfFi4dInOxoBcN0kLA==\" \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\u7f16\u8f91 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>\u73b0\u5b9e\u4e16\u754c\u4e2d\u7684 Mermaid.js \u65f6\u5e8f\u56fe\u793a\u4f8b\uff1a\u4ea7\u54c1\u53d1\u5e03\u8def\u7ebf\u56fe<\/h2>\n<p>\u6b64\u84dd\u56fe\u6a21\u62df\u4e86\u591a\u5e74\u7684\u4ea7\u54c1\u8def\u7ebf\u56fe\uff0c\u6309\u8d22\u653f\u5e74\u5ea6\u5206\u7ec4\u53d1\u5e03\uff0c\u5e76\u7a81\u51fa\u663e\u793a\u6bcf\u4e2a\u5468\u671f\u7684\u5173\u952e\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\u7f16\u8f91 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:eNpdkD0KwkAQhXvBO+wFBI1gwM7SQtDG80TCxjViVFQSCIJaaLSIiuaHIMllnP25hauCkbxiinnvG3hD7VDYd5Zk5RKSopuh2DnomRxgMeDRWRrgpkipKo2KHOo3JXQPiPHZfhdv9WqoiWA6Z9ZFOCH1g9ySkhY5Mtdkbgz4xjXM\/YxfyB+uyEyn30Xw0OSVAkw3MWQ6anXbiPsp97d\/YP193MA0GEsOYr2AsqVHSQTTidgTSE\/MOhdLqMUS2BPr3TM2f2\/JS2CPzXQ6OsJ19QLbO4BC\" \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\">\u65f6\u95f4\u7ebf\r\n    \u6807\u9898 \u4ea7\u54c1\u8def\u7ebf\u56fe 2026-2027\r\n    \u90e8\u5206 2026\r\n        Q1 : \u53d1\u73b0\u9636\u6bb5\r\n           : \u5229\u76ca\u76f8\u5173\u8005\u8bbf\u8c08\r\n        Q2 : MVP \u5f00\u53d1\r\n           : \u6838\u5fc3 API \u8bbe\u8ba1\r\n        Q3 : \u5185\u6d4b\u53d1\u5e03\r\n           : \u7528\u6237\u53cd\u9988\u5faa\u73af\r\n    \u90e8\u5206 2027\r\n        Q1 : \u5168\u9762\u4e0a\u7ebf\r\n           : \u5168\u7403\u6269\u5c55<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpdkD0KwkAQhXvBO+wFBI1gwM7SQtDG80TCxjViVFQSCIJaaLSIiuaHIMllnP25hauCkbxiinnvG3hD7VDYd5Zk5RKSopuh2DnomRxgMeDRWRrgpkipKo2KHOo3JXQPiPHZfhdv9WqoiWA6Z9ZFOCH1g9ySkhY5Mtdkbgz4xjXM\/YxfyB+uyEyn30Xw0OSVAkw3MWQ6anXbiPsp97d\/YP193MA0GEsOYr2AsqVHSQTTidgTSE\/MOhdLqMUS2BPr3TM2f2\/JS2CPzXQ6OsJ19QLbO4BC\" \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\u7f16\u8f91 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>\u65f6\u95f4\u7ebf\u7684\u6700\u4f73\u5b9e\u8df5<\/h2>\n<ul>\n<li><strong>\u4fdd\u6301\u5206\u7c7b\u7b80\u6d01\uff1a<\/strong> \u4f7f\u7528 <code>\u90e8\u5206<\/code> \u6765\u8868\u793a\u9ad8\u5c42\u6b21\u7684\u5206\u7ec4\uff08\u5982\u5e74\u4efd\u6216\u4e3b\u8981\u9636\u6bb5\uff09\uff0c\u540c\u65f6\u786e\u4fdd\u4e0b\u65b9\u7684\u5b9e\u9645\u4e8b\u4ef6\u5177\u4f53\u4e14\u53ef\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u65e5\u671f\u683c\u5f0f\u4fdd\u6301\u4e00\u81f4\uff1a<\/strong> \u786e\u4fdd\u4f60\u7684\u65f6\u95f4\u7ebf\u4e8b\u4ef6\u5728\u4ee3\u7801\u4e2d\u6309\u65f6\u95f4\u987a\u5e8f\u6392\u5217\uff0c\u56e0\u4e3a Mermaid \u5f15\u64ce\u4f1a\u6839\u636e\u4f60\u7684\u811a\u672c\u987a\u5e8f\u6765\u786e\u5b9a\u5e03\u5c40\u4f4d\u7f6e\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7ec6\u8282\u63d0\u4f9b\u4e0a\u4e0b\u6587\uff1a<\/strong> \u4e0d\u8981\u5728\u4e2d\u5fc3\u8f74\u4e0a\u5806\u53e0\u8fc7\u591a\u6587\u5b57\u3002\u4f7f\u7528\u591a\u884c\u4e8b\u4ef6\u683c\u5f0f\u6765\u5206\u89e3\u201c\u53d1\u751f\u4e86\u4ec0\u4e48\u201d\uff0c\u800c\u4e0d\u662f\u8ba9\u65e5\u671f\u6807\u7b7e\u672c\u8eab\u8fc7\u957f\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662f\u65f6\u95f4\u7ebf\u56fe\uff1f \u4e00\u4e2a\u65f6\u95f4\u7ebf\u56fe\u662f\u4e00\u79cd\u6309\u65f6\u95f4\u987a\u5e8f\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u7528\u4e8e\u5728\u4e00\u6761\u7ebf\u6027\u65f6\u95f4\u8def\u5f84&#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-2100","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\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\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\/cn\/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=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/\",\"name\":\"Mermaid Timeline Syntax | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/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\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/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\\\/cn\\\/docs\\\/vpascode-docs\\\/mermaid-js-timeline-syntax-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mermaid.js \u65f6\u95f4\u7ebf\u8bed\u6cd5\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#\\\/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\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","og_locale":"zh_CN","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\/cn\/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":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","url":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/","name":"Mermaid Timeline Syntax | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/cn\/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\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.vpascode.com\/cn\/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\/cn\/docs\/vpascode-docs\/mermaid-js-timeline-syntax-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/cn\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/cn\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Mermaid.js \u65f6\u95f4\u7ebf\u8bed\u6cd5\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/cn\/#website","url":"https:\/\/www.vpascode.com\/cn\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/cn\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.vpascode.com\/cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/cn\/wp-content\/uploads\/sites\/3\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/cn\/wp-content\/uploads\/sites\/3\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/cn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_docs\/2100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/users\/4"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/media?parent=2100"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_collection?post=2100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}