{"id":2090,"date":"2026-07-07T08:59:56","date_gmt":"2026-07-07T08:59:56","guid":{"rendered":"https:\/\/www.vpascode.com\/de\/docs\/uncategorized\/mermaid-js-xy-chart-syntax-configuration-guide\/"},"modified":"2026-07-07T08:59:56","modified_gmt":"2026-07-07T08:59:56","slug":"mermaid-js-xy-chart-syntax-configuration-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/","title":{"rendered":"Mermaid.js XY-Chart-Syntax- &#038; Konfigurationsleitfaden"},"content":{"rendered":"<p>Ein XY-Chart ist eine umfassende Komponente zur Datenvisualisierung, die verwendet wird, um sowohl Liniendiagramme als auch Balkendiagramme in einer standardm\u00e4\u00dfigen zweidimensionalen Gitterkoordinatenanordnung darzustellen. Eingef\u00fchrt, um \u00e4ltere eigenst\u00e4ndige Diagrammschemata zu ersetzen und zu vereinen, der <code>xychart-beta<\/code> Rendering-Engine verarbeitet dynamisch benutzerdefinierte numerische Datens\u00e4tze, skaliert responsive Struktur-Gitter automatisch und unterst\u00fctzt die gleichzeitige Darstellung mehrerer unabh\u00e4ngiger \u00fcberlagerter Datens\u00e4tze.<\/p>\n<h2>Grundlegende Syntaxstruktur<\/h2>\n<p>Jeder XY-Chart beginnt mit der <code>xychart-beta<\/code> Deklarationskopf. Danach folgt die Konfiguration eines horizontalen X-Achsen-Kategorien-Arrays, eines vertikalen Y-Achsen-Titels oder eines Datenbereichs-Limits sowie mindestens einer expliziten Datenplottingserie (z. B. einer <code>line<\/code> oder <code>bar<\/code> Block).<\/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:eNqrqEzOSCwq0U1KLUnk5VJQKMksyUlVUApOzC0A0gGpRWn5RbmJecmpCs4gdUogNRW6iRWZxQrRXol5OgpuqUk6Cr6JRToKjgVFsSDpSoi0UlBqWWpeaaqCRmiwiyZYY1JikUK0iamBgY6CqRGINDMEsy0MDGIBnPcnPw==\" 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>Mermaid in VPasCode bearbeiten<\/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:eNqrqEzOSCwq0U1KLUnk5VJQKMksyUlVUHJKzSwuyEzN0fUBMkpK89KLUzIT04sSc3OVQKoqdBMrMosVor0S83QU3FKTdBR8Dy8p0lFwLCiKBclXQuSVQnOLE0uqFDRCg100wRqTEosUok1MDQx0FEyNQKSZIZhtYWAQCwBpnSlD\" \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\">xychart-beta\r\n  title \"Beispiel-Leistungsdiagramm\"\r\n  x-axis [Jan, Feb, M\u00e4r, Apr]\r\n  y-axis \"Umsatz (USD)\"\r\n  bar [4500, 5200, 6100, 5800]<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqrqEzOSCwq0U1KLUnk5VJQKMksyUlVUHJKzSwuyEzN0fUBMkpK89KLUzIT04sSc3OVQKoqdBMrMosVor0S83QU3FKTdBR8Dy8p0lFwLCiKBclXQuSVQnOLE0uqFDRCg100wRqTEosUok1MDQx0FEyNQKSZIZhtYWAQCwBpnSlD\" \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:eNqrqEzOSCwq0U1KLUnk5VJQKMksyUlVUApOzC0A0gGpRWn5RbmJecmpCs4gdUogNRW6iRWZxQrRXol5OgpuqUk6Cr6JRToKjgVFsSDpSoi0UlBqWWpeaaqCRmiwiyZYY1JikUK0iamBgY6CqRGINDMEsy0MDGIBnPcnPw==\" 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>Mermaid in VPasCode bearbeiten<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"oUNkvSl\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-931\" decoding=\"async\" fetchpriority=\"high\" height=\"500\" sizes=\"(max-width: 700px) 100vw, 700px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png 700w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7-300x214.png 300w\" width=\"700\"\/><\/p>\n<h2>Syntaxreferenz<\/h2>\n<p>Die folgende Tabelle zeigt die wichtigsten Datendefinitionen und Konfigurationsschl\u00fcssel auf, die erforderlich sind, um einen XY-Chart korrekt in Mermaid.js zu strukturieren.<\/p>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Syntaxkomponente<\/th>\n<th>Akzeptierte Formate<\/th>\n<th>Beschreibung &amp; Nutzungsvorschriften<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Deklaration<\/strong><\/td>\n<td>Schl\u00fcsselwort<\/td>\n<td>Initialisiert den 2D-Layout-Diagrammbereich. Muss genau das <code>xychart-beta<\/code> Zeichenfolgenblock verwenden.<\/td>\n<\/tr>\n<tr>\n<td><strong>Titel<\/strong><\/td>\n<td>Angef\u00fchrte Zeichenfolge<\/td>\n<td>Ein optionaler globaler \u00dcberschrift, der zentriert unmittelbar \u00fcber dem Diagramm-Gitter angezeigt wird.<\/td>\n<\/tr>\n<tr>\n<td><strong>X-Achsen-Konfiguration<\/strong><\/td>\n<td>Liste in eckigen Klammern \/ Bereich<\/td>\n<td>Definiert die Beschriftungen der horizontalen Skala. Akzeptiert kategorische Textzeichenfolgen in eckigen Klammern<code>[A, B, C]<\/code> oder numerische Punktbereiche<code>[100 --&gt; 500]<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Y-Achsen-Konfiguration<\/strong><\/td>\n<td>Titelzeichenfolge \/ Skalenbegrenzungen<\/td>\n<td>Richtet die vertikalen Skaleneinstellungen ein. Kann einfach eine Achsentitelzeichenfolge sein oder angepasst werden, um die unteren\/oberen Wertebereiche mithilfe von<code>\"Titel\" 0 --&gt; 100<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><strong>S\u00e4ulen-Darstellungsserie<\/strong><\/td>\n<td>Numerisches Array<\/td>\n<td>Rendert Datens\u00e4tze als senkrechte S\u00e4ulen. Die Anzahl der Elemente im Datenarray muss genau der L\u00e4nge Ihrer X-Achsen-Kategorie entsprechen.<\/td>\n<\/tr>\n<tr>\n<td><strong>Linien-Darstellungsserie<\/strong><\/td>\n<td>Numerisches Array<\/td>\n<td>Rendert Datens\u00e4tze als kontinuierliche Linien, die die Datenpunkte \u00fcber den Gitterarbeitsbereich verbinden.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr\/>\n<h2>Erweiterte Datenanpassung (Anweisungen)<\/h2>\n<p>Sie k\u00f6nnen das visuelle Erscheinungsbild Ihres Diagrammarbeitsbereichs verfeinern, indem Sie eine Frontmatter-Konfigurationsbl\u00f6cke am absoluten Anfang Ihres Dokumentcode-Ausschnitts einbetten. Dadurch erhalten Sie vollst\u00e4ndige Layoutkontrolle \u00fcber benutzerdefinierte Hex-Farben, Linienst\u00e4rken der Plot-Serien und Sichtbarkeitsfelder f\u00fcr das Gitter.<\/p>\n<h3>XY-Diagramm-Konfigurations-Attribut-Matrix<\/h3>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Eigenschaftskonfigurations-Schl\u00fcssel<\/th>\n<th>Wertoptionen<\/th>\n<th>Visueller Ergebnis<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>showLine<\/code><\/td>\n<td><code>wahr<\/code> | <code>falsch<\/code><\/td>\n<td>Schaltet ein, ob die Hintergrundstrukturachsen-Gitterlinien \u00fcber die Koordinaten angezeigt werden.<\/td>\n<\/tr>\n<tr>\n<td><code>chartWidth<\/code><\/td>\n<td>Ganzzahl (Pixel)<\/td>\n<td>Legt die feste Begrenzungs-Breite der Canvas-Anordnung des Gittersystems fest.<\/td>\n<\/tr>\n<tr>\n<td><code>chartHeight<\/code><\/td>\n<td>Ganzzahl (Pixel)<\/td>\n<td>Legt die feste Begrenzungs-H\u00f6he der Canvas-Anordnung des Gittersystems fest.<\/td>\n<\/tr>\n<tr>\n<td><code>themeVariables.xyChart<\/code><\/td>\n<td>Farbzuordnungs-Arrays<\/td>\n<td>F\u00fcgt explizite hexadezimale Stilfarbbl\u00f6cke (z.\u202fB. <code>backgroundColor<\/code>, <code>titleColor<\/code>, oder benutzerdefinierte Farblistenpl\u00e4tze <code>plotColorPalette<\/code>) in Ihre Diagramme ein.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr\/>\n<h2>Realit\u00e4tsnahes Blueprint: Mehrreihiger technischer Vergleich<\/h2>\n<p>Dieses umfassende Blueprint verfolgt eine Bewertung der Infrastrukturleistung. Es nutzt eine benutzerdefinierte Konfigurationsanweisung, um die Canvas-Abmessungen festzulegen, Hintergrund-Gitterlinienpfade anzuzeigen und eine explizite hexadezimale Farbpalette einzuf\u00fcgen. Es ordnet vier unterschiedliche Quartalsphasen zu und stellt sie als kombiniertes visuelles Kombinationsdiagramm dar (\u00fcberlappende Balkenreihen und Linienreihen zusammen).<\/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:eNpVkDFPwzAQhfdK\/Q9P7hpLTkiakoEBVIkBpBYJGKoOTrg2ltIY2RdI\/z1O2kIZLN29d\/c9+aSU00ll253ZF9MJ0B+rWjsea2Cs380H1wVypa7ERzL7mgukF9XX9vvJtFSAXUeDxjUd6E07o8uG\/Jn4nx+GDDf0YBvrCoiZUnlyH4uL+dlYHr2VboiZ\/kYizJZqrpQKs3L4wpkrS2I9hg9ciHUs1yleyNvOVYQvj2VPVcfGtngmdqbyY1ovdW88NmLdBQo5xCLCb5NcNzfXTSq2w\/rxtC5W5HbWHXQbsk54vLaGvYCClHeIT9cqtcMmzSLMw1uoCLfZiGnC\/bDJBiOIeRLMxfYH8JVz6w==\" 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>Mermaid in VPasCode bearbeiten<\/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:eNpVUD1PwzAQ3Sv1P5zcNUZOSJqSAQlQJYYiEQY6RB2ccq0tjIPsC6T\/jY0\/hpO2EAZL9z7uPfk459PJtrE7vS+mE4DusFXS0TADDPNav5AqIBdiRN6j3isqID2zXjWfK22xAHIt9hwpfMNn6bSsDfpT4v\/8YNJk8K4xjSuAzYTIk9uYncV309CgPUqDRPhniWC2FHMhRPDy\/gunXF4jyaG8zwX2hN43rdui5fDhL+Cm9bvvL+Vau\/f8AcnpV7RQxrxMh9aOy057qFjZhjRpIGYR\/IJkDC7HIGWbfv1wXGcr1J5GHXyprUJNaBkI4Pwa4uPdaumgSrMI5uEtRARX2RBkwiWhynohkHkSxMXmB7o5eFk=\" \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  xychart:\r\n    chartWidth: 700\r\n    chartHeight: 400\r\n    showLine: true\r\n  themeVariables:\r\n    xychart:\r\n      titleColor: \"#0072B1\"\r\n      plotColorPalette: \"#0072B1, #E06000\"\r\n---\r\nxychart-beta\r\n  title \"Ressourcen- vs. Ausf\u00fchrungs-Metriken Q1-Q4\"\r\n  x-axis [\"Quartal 1\", \"Quartal 2\", \"Quartal 3\", \"Quartal 4\"]\r\n  y-axis \"Leistungs-Metrik-Einheiten\" 0 --&gt; 100\r\n  bar [45, 65, 80, 95]\r\n  line [55, 60, 72, 88]<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpVUD1PwzAQ3Sv1P5zcNUZOSJqSAQlQJYYiEQY6RB2ccq0tjIPsC6T\/jY0\/hpO2EAZL9z7uPfk459PJtrE7vS+mE4DusFXS0TADDPNav5AqIBdiRN6j3isqID2zXjWfK22xAHIt9hwpfMNn6bSsDfpT4v\/8YNJk8K4xjSuAzYTIk9uYncV309CgPUqDRPhniWC2FHMhRPDy\/gunXF4jyaG8zwX2hN43rdui5fDhL+Cm9bvvL+Vau\/f8AcnpV7RQxrxMh9aOy057qFjZhjRpIGYR\/IJkDC7HIGWbfv1wXGcr1J5GHXyprUJNaBkI4Pwa4uPdaumgSrMI5uEtRARX2RBkwiWhynohkHkSxMXmB7o5eFk=\" \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:eNpVkDFPwzAQhfdK\/Q9P7hpLTkiakoEBVIkBpBYJGKoOTrg2ltIY2RdI\/z1O2kIZLN29d\/c9+aSU00ll253ZF9MJ0B+rWjsea2Cs380H1wVypa7ERzL7mgukF9XX9vvJtFSAXUeDxjUd6E07o8uG\/Jn4nx+GDDf0YBvrCoiZUnlyH4uL+dlYHr2VboiZ\/kYizJZqrpQKs3L4wpkrS2I9hg9ciHUs1yleyNvOVYQvj2VPVcfGtngmdqbyY1ovdW88NmLdBQo5xCLCb5NcNzfXTSq2w\/rxtC5W5HbWHXQbsk54vLaGvYCClHeIT9cqtcMmzSLMw1uoCLfZiGnC\/bDJBiOIeRLMxfYH8JVz6w==\" 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>Mermaid in VPasCode bearbeiten<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"Uaxrodh\"><img alt=\"\" class=\"alignnone size-full wp-image-932\" decoding=\"async\" height=\"500\" sizes=\"(max-width: 700px) 100vw, 700px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc07cdd4df.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc07cdd4df.png 700w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc07cdd4df-300x214.png 300w\" width=\"700\"\/><\/p>\n<hr\/>\n<p><em><strong>Syntax-Tipp:<\/strong> Wenn mehrere Datendiagramme \u00fcberlagert werden (z.\u202fB. beim Ausf\u00fchren eines <code>bar<\/code> Datensatzes und eines <code>line<\/code> Datensatzes innerhalb derselben Layout-Canvas), wird der Rendering-Engine sie stapeln oder nacheinander in der Reihenfolge zeichnen, in der sie im Text-Skript geschrieben sind. Ordnen Sie Ihre Datensbl\u00f6cke bewusst an, um visuelle Ausschnitte an den Canvas-Linien zu vermeiden.<\/em><\/p>\n<hr\/>\n<h2>H\u00e4ufige Syntax-Fehler &amp; Systembeschr\u00e4nkungen<\/h2>\n<p>Beim Kompilieren von dimensionsbasierten Matrixpfaden k\u00f6nnen einige subtile Konfigurationsfehler die Koordinatenberechnungen st\u00f6ren. Behalten Sie diese Fehlerbehebungsparameter im Auge:<\/p>\n<ul>\n<li><strong>Datentypenl\u00e4nge nicht \u00fcbereinstimmend:<\/strong> Jeder einzelne <code>bar<\/code> oder <code>Linie<\/code>Das Datenreihen-Array *muss* genau die gleiche Anzahl von Eintr\u00e4gen enthalten wie in Ihrem <code>X-Achse<\/code> Listenparameter. Wenn Sie 4 Kategorien auf Ihrer X-Achse haben, aber eine Datenliste mit 5 Zahlen bereitstellen, wird die Diagrammerstellung vollst\u00e4ndig fehlschlagen.<\/li>\n<li><strong>Anf\u00fchrungszeichen-Grenzen:<\/strong> Wenn Sie Kategorien innerhalb der eckigen Klammern einer Achsenliste angeben, m\u00fcssen Textbl\u00f6cke, die Leerzeichen oder Sonderzeichen enthalten, sauber in doppelte Anf\u00fchrungszeichen gesetzt werden (z.\u202fB. <code>[\"Phase 1\", \"Phase 2\"]<\/code>).<\/li>\n<li><strong>Numerische Koordinaten-Grenzen:<\/strong> Wenn Sie manuelle Bereiche auf einer Achsenskala festlegen (z.\u202fB. <code>0 --&gt; 500<\/code>), m\u00fcssen Sie explizit zwei Bindestriche gefolgt von einem Gr\u00f6\u00dfer-als-Zeichen verwenden (<code>--&gt;<\/code>). Wenn Sie einen Bindestrich vergessen oder die Operatorzeichen durch Leerzeichen trennen, wird ein Verarbeitungslayout-Fehler ausgel\u00f6st.<\/li>\n<li><strong>Positive Ganzzahl-Gewichte:<\/strong> Skalenwerte werden linearen Raumbl\u00f6cken zugeordnet. Stellen Sie sicher, dass die an Ihre Reihe \u00fcbergebenen Werte keine nicht-escaped Zeicheninhalte oder leere Parameter-Null-Pl\u00e4tze innerhalb von Arrays enthalten.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ein XY-Chart ist eine umfassende Komponente zur Datenvisualisierung, die verwendet wird, um sowohl Liniendiagramme als auch Balkendiagramme in einer standardm\u00e4\u00dfigen zweidimensionalen Gitterkoordinatenanordnung darzustellen. Eingef\u00fchrt, um \u00e4ltere eigenst\u00e4ndige Diagrammschemata zu ersetzen und zu vereinen, der xychart-beta Rendering-Engine verarbeitet dynamisch benutzerdefinierte numerische&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":16,"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-2090","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 XY Chart Syntax | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free 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\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid XY Chart Syntax | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-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_6a4cc0702c7c7.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"4\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/\",\"name\":\"Mermaid XY Chart Syntax | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a4cc0702c7c7.png\",\"datePublished\":\"2026-07-07T08:59:56+00:00\",\"description\":\"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a4cc0702c7c7.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a4cc0702c7c7.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/vpascode-docs\\\/mermaid-js-xy-chart-syntax-configuration-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mermaid.js XY-Chart-Syntax- &#038; Konfigurationsleitfaden\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid XY Chart Syntax | VPasCode Text to Diagram Guide","description":"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free 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\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/","og_locale":"de_DE","og_type":"article","og_title":"Mermaid XY Chart Syntax | VPasCode Text to Diagram Guide","og_description":"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"4\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/","url":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/","name":"Mermaid XY Chart Syntax | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png","datePublished":"2026-07-07T08:59:56+00:00","description":"Plot line and bar combination graphs from text scripts using Mermaid XY charts in VPasCode, a free diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a4cc0702c7c7.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/de\/docs\/vpascode-docs\/mermaid-js-xy-chart-syntax-configuration-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/de\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/de\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Mermaid.js XY-Chart-Syntax- &#038; Konfigurationsleitfaden"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/de\/#website","url":"https:\/\/www.vpascode.com\/de\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/de\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.vpascode.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/de\/wp-content\/uploads\/sites\/4\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/de\/wp-content\/uploads\/sites\/4\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/de\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/ld_docs\/2090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/media?parent=2090"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/de\/wp-json\/wp\/v2\/ld_collection?post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}