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

Pie chart? #80

Closed
PsykeDady opened this issue Nov 27, 2020 · 3 comments
Closed

Pie chart? #80

PsykeDady opened this issue Nov 27, 2020 · 3 comments

Comments

@PsykeDady
Copy link

why i can't write pie chart? maybe i miss something?

if i write this on my terminal:

mmdc -i <(echo 'pie
    title Persone che hanno letto tutto l articolo 
    "Nessuno" : 80.00
    "Nessuno, ma arancio" :  20') -o ciao.png

the output is:

node:internal/process/promises:225
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: Evaluation failed: Error: Parse error on line 1:
pie    title Person
^
Expecting 'NEWLINE', 'SPACE', 'GRAPH', got 'ALPHA'
    at Yt.parseError (file:///usr/local/share/.config/yarn/global/node_modules/mermaid.cli/mermaid.min.js:1:486512)
etc..

other diagrams like sequenceDiagram work well

image

@Yash-Singh1
Copy link
Member

Does:

pie title Persone che hanno letto tutto l articolo
    "Nessuno" : 80.00
    "Nessuno, ma arancio" :  20

Work?

@PsykeDady
Copy link
Author

Does:

pie title Persone che hanno letto tutto l articolo
    "Nessuno" : 80.00
    "Nessuno, ma arancio" :  20

Work?

Same error :\
I tried also with explicit file.
mmmm, are mermaid-cli from mermaidjs repo related to this? seems there are same bug:
mermaidjs/mermaid.cli#81

@PsykeDady
Copy link
Author

SORRY I'M REALLY STUPID !!!!
i installed mermaid.cli and NOT mermaid-cli
What a shame T.T sorry

close bug

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

2 participants