-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
bug/5293_Allow_NaN_For_XYchart #5369
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
|
||
"[" return 'SQUARE_BRACES_START' | ||
"]" return 'SQUARE_BRACES_END' | ||
"NaN" return 'NAN'; | ||
[A-Za-z]+ return 'ALPHA'; | ||
":" return 'COLON'; | ||
\+ return 'PLUS'; | ||
|
@@ -116,6 +117,8 @@ plotData | |
commaSeparatedNumbers | ||
: NUMBER_WITH_DECIMAL COMMA commaSeparatedNumbers { $$ = [Number($NUMBER_WITH_DECIMAL), ...$commaSeparatedNumbers] } | ||
| NUMBER_WITH_DECIMAL { $$ = [Number($NUMBER_WITH_DECIMAL)] } | ||
| NAN COMMA commaSeparatedNumbers { $$ = [Number($NAN), ...$commaSeparatedNumbers] } | ||
| NAN { $$ = [Number($NAN)] } | ||
Comment on lines
+120
to
+121
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like this is a wrong place to represent NaN, because |
||
; | ||
|
||
parseXAxis | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NaN is rather JS-originated, while many programming languages use their own keywords. Why not simply omitting the value?