Skip to content

Commit 0fd7a9f

Browse files
xdumainecursoragent
andcommitted
Document XY chart legend release notes
Follow Mermaid contribution guidance by marking the new docs section with the release token and adding a changeset. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1c8bcb4 commit 0fd7a9f

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/xychart-legends.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': minor
3+
---
4+
5+
feat: add legends for named XY chart line and bar series

docs/syntax/xyChart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ A bar chart offers the capability to graphically depict bars.
9898
1. `bar [2.3, 45, .98, -3.4]` it can have all valid numeric values.
9999
2. `bar "series name" [2.3, 45, .98, -3.4]` adds the bar to the legend.
100100

101-
### Legend
101+
### Legend (v\<MERMAID_RELEASE_VERSION>+)
102102

103103
Named line and bar plots are automatically shown in a legend. Unnamed plots are omitted from the legend.
104104

packages/mermaid/src/docs/syntax/xyChart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ A bar chart offers the capability to graphically depict bars.
8686
1. `bar [2.3, 45, .98, -3.4]` it can have all valid numeric values.
8787
2. `bar "series name" [2.3, 45, .98, -3.4]` adds the bar to the legend.
8888

89-
### Legend
89+
### Legend (v<MERMAID_RELEASE_VERSION>+)
9090

9191
Named line and bar plots are automatically shown in a legend. Unnamed plots are omitted from the legend.
9292

0 commit comments

Comments
 (0)