Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid: No diagram type detected for text "quadrantChart..." #362

Open
faulty13 opened this issue Nov 8, 2024 · 0 comments
Open

Mermaid: No diagram type detected for text "quadrantChart..." #362

faulty13 opened this issue Nov 8, 2024 · 0 comments

Comments

@faulty13
Copy link

faulty13 commented Nov 8, 2024

Issue
The mermaid renderer doesn't seem to support the same chart types as the online mermaid.live editor. I'm not sure if this is a gap in the mermaid API, or the dash-extensions code.

Console Error:

Error: No diagram type detected for text: 
quadrantChart
    title Reach and engagement of campaigns
    x-axis Low Reach --> High Reach
    y-axis Low Engagement --> High Engagement
    quadrant-1 "We should expand"
    quadrant-2 "Need to promote"
    quadrant-3 "Re-evaluate"
    quadrant-4 "May be improved"...

Example Chart
The code below works in the mermaid.live renderer, but returns the above error in dash.

quadrantChart
    title Reach and engagement of campaigns
    x-axis Low Reach --> High Reach
    y-axis Low Engagement --> High Engagement
    quadrant-1 "We should expand"
    quadrant-2 "Need to promote"
    quadrant-3 "Re-evaluate"
    quadrant-4 "May be improved"
    Campaign A: [0.1, 0.1]
    Campaign B: [0.3, 0.3]
    Campaign C: [0.4, 0.8] 
    Campaign D: [0.8, 0.8] 
    Campaign E: [0.3, 0.7]
    Campaign F: [0.8, 0.2]

Desired Outcome
I can see quadrantChart, and any other missing diagram types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant