Pie chart is not rendered when we provide any other value except positive number #2472
Labels
Area: Development
Contributor needed
Graph: Pie
Status: Approved
Is ready to be worked on
Type: Bug / Error
Something isn't working or is incorrect
Hi Team,
Pie chart is not rendering If user enters any negative value or any string or blank value for datakey.
As per the syntax of Pie chart it will support only positive value but if user provide any other value it should give some syntax error or warning message.
Expected behavior
It should give syntax error or warning
Screenshots
If applicable, add screenshots to help explain your problem.
Code Sample
pie
title Key elements in Product X
"Calcium" : aa
"Potassium" : -12
"Magnesium" :
If we put above sample in editor it will not render anything
Desktop (please complete the following information):
Note:- I am using mermaid version 8.12.0
The text was updated successfully, but these errors were encountered: