Skip to content

Commit 8224a81

Browse files
author
darshanr0107
committed
fix xychart test cases
1 parent a3d164f commit 8224a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/mermaid/src/diagrams/xychart/parser/xychart.jison

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<acc_descr_multiline>"{" { this.popState(); }
3030
<acc_descr_multiline>[^\}]* { return "acc_descr_multiline_value"; }
3131

32-
"xychart" {return 'XYCHART';}
3332
"xychart-beta" {return 'XYCHART';}
33+
"xychart" {return 'XYCHART';}
3434
(?:"vertical"|"horizontal") {return 'CHART_ORIENTATION'}
3535

3636
"x-axis" { this.pushState("axis_data"); return "X_AXIS"; }

packages/mermaid/src/diagrams/xychart/parser/xychart.jison.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ describe('Testing xychart jison file', () => {
407407
it('parse multiple bar and line variant 2', () => {
408408
const str = `
409409
xychart horizontal
410-
title Basic xychart
410+
title "Basic xychart"
411411
x-axis "this is x axis" [category1, "category 2", category3]
412412
y-axis yaxisText 10 --> 150
413413
bar barTitle1 [23, 45, 56.6]

0 commit comments

Comments
 (0)