mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
fix xychart test cases
This commit is contained in:
@@ -29,8 +29,8 @@
|
|||||||
<acc_descr_multiline>"{" { this.popState(); }
|
<acc_descr_multiline>"{" { this.popState(); }
|
||||||
<acc_descr_multiline>[^\}]* { return "acc_descr_multiline_value"; }
|
<acc_descr_multiline>[^\}]* { return "acc_descr_multiline_value"; }
|
||||||
|
|
||||||
"xychart" {return 'XYCHART';}
|
|
||||||
"xychart-beta" {return 'XYCHART';}
|
"xychart-beta" {return 'XYCHART';}
|
||||||
|
"xychart" {return 'XYCHART';}
|
||||||
(?:"vertical"|"horizontal") {return 'CHART_ORIENTATION'}
|
(?:"vertical"|"horizontal") {return 'CHART_ORIENTATION'}
|
||||||
|
|
||||||
"x-axis" { this.pushState("axis_data"); return "X_AXIS"; }
|
"x-axis" { this.pushState("axis_data"); return "X_AXIS"; }
|
||||||
|
@@ -407,7 +407,7 @@ describe('Testing xychart jison file', () => {
|
|||||||
it('parse multiple bar and line variant 2', () => {
|
it('parse multiple bar and line variant 2', () => {
|
||||||
const str = `
|
const str = `
|
||||||
xychart horizontal
|
xychart horizontal
|
||||||
title Basic xychart
|
title "Basic xychart"
|
||||||
x-axis "this is x axis" [category1, "category 2", category3]
|
x-axis "this is x axis" [category1, "category 2", category3]
|
||||||
y-axis yaxisText 10 --> 150
|
y-axis yaxisText 10 --> 150
|
||||||
bar barTitle1 [23, 45, 56.6]
|
bar barTitle1 [23, 45, 56.6]
|
||||||
|
Reference in New Issue
Block a user