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

Add support for XY Chart (Mermaid) #60

Closed
Pyroseza opened this issue Jan 26, 2024 · 1 comment · Fixed by #70 · May be fixed by #69
Closed

Add support for XY Chart (Mermaid) #60

Pyroseza opened this issue Jan 26, 2024 · 1 comment · Fixed by #70 · May be fixed by #69
Labels
help wanted Extra attention is needed

Comments

@Pyroseza
Copy link

Pyroseza commented Jan 26, 2024

Add support for XY Chart (Mermaid)

See https://mermaid.js.org/syntax/xyChart.html

Available since 10.6.0

Example from docs

xychart-beta
    title "Sales Revenue"
    x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
    y-axis "Revenue (in $)" 4000 --> 11000
    bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
    line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]

image

Current error as seen in Joplin
image

@SeptemberHX
Copy link
Owner

In theory, updating the mermaid library version of this plugin to the latest should support all current mermaid syntax. However, I have tried to upgrade the mermaid version directly and encountered some compilation issues. My current level of TypeScript may not be able to solve this problem, so I need help from others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
2 participants