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

LLM with PIE chart: inputs numbers with characters like number XY%,€,£,$ crash mermaid. #5990

Open
pimpinwannabe opened this issue Oct 22, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@pimpinwannabe
Copy link

pimpinwannabe commented Oct 22, 2024

Description

Mermaid should allow value numbers with "%,$€,£, K, M, B" and ignore those characters to render and take into account only the numerical value

Steps to reproduce

A pie diagram with value generated via LLM frequently include all the %,€,£, coming from any top LLM. Mermaid should tolerate the % and ignore it just to

pie title Pets adopted by volunteers
"Dogs" : 30%
"Cats" : 30%
"Rats" : 40%

pie title Pets adopted by volunteers
    "Dogs" : $76b
    "Cats" : $35b
    "Rats" : $40b

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@pimpinwannabe pimpinwannabe added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant