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

"json" format #283

Closed
nicolaskruchten opened this issue Jan 29, 2020 · 1 comment · Fixed by #309
Closed

"json" format #283

nicolaskruchten opened this issue Jan 29, 2020 · 1 comment · Fixed by #309

Comments

@nicolaskruchten
Copy link
Contributor

It would be really helpful for Python users to be able to ask Orca for the "full" version of the figure: plotly/plotly.py#1967

@etpinard
Copy link
Contributor

Yeah, I'd be ok with adding a new format value for Plotly.toImage (and Plotly.downloadImage).

Calling format: 'full-json' would probably be safer if ever we want to have Orca export just the user data/layout specification (this could be useful to e.g. get the axis range after interaction or an annotation position after an edit) without all the "full" keys.

Here's the (very) old function we have in our codebase that cleans fullData and fullLayout :

https://github.com/plotly/plotly.js/blob/3cb1652f1c2ee1eaf20e226813bef6863c15ed90/src/plots/plots.js#L2017-L2127

Fun fact: Plots.graphJson is used in the sendDataToCloud modebar button handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants