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

Plotting of NaN values #160

Open
jkrimmer opened this issue Jan 12, 2022 · 3 comments
Open

Plotting of NaN values #160

jkrimmer opened this issue Jan 12, 2022 · 3 comments

Comments

@jkrimmer
Copy link

jkrimmer commented Jan 12, 2022

Apparently, moving to the JSON3 package broke the plotting of traces containing NaN values.

 Error: error handling request
│   exception =
│    NaN not allowed to be written in JSON spec

I would expect using JSON3.write with the allow_inf flag set to true to resolve this issue.

Further information:
Julia v1.7.0
Dash v1.1.1
PlotlyJS v0.18.8

@jkrimmer
Copy link
Author

Unfortunately, using the allow_inf flag only allows writing the JSON files containing NaN values. However, dash cannot plot these values... I have not figured out how to resolve this issue, yet.

@HackYardo
Copy link

Maybe you can use nothing to jump over the inf? ref

@jkrimmer
Copy link
Author

jkrimmer commented Feb 4, 2022

Thanks a lot for the suggestion, using nothing instead of Inf or NaN circumvents the issue.
Maybe it would be nice to have this replacement happening inside Dash?

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

Successfully merging a pull request may close this issue.

2 participants