You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a rest app that outputs server side rendered plotly plots.
When i pass the built plot through response object with json content type, it somehow transforms the data in the plotly object to columnar form. (Instead of being an array of objects, it becomes objects of arrays.)
I have scratched my head a lot trying to figure out why this happens, and came across this:
Could we have a way of configuring the dataframe='columns' parameter?
As of now, I found a workaround by setting custom encoder on the response object - and I can live with that.
I think that this can bite others as well though.
Thanks for a great package
The text was updated successfully, but these errors were encountered:
I am trying to create a rest app that outputs server side rendered plotly plots.
When i pass the built plot through response object with json content type, it somehow transforms the data in the plotly object to columnar form. (Instead of being an array of objects, it becomes objects of arrays.)
I have scratched my head a lot trying to figure out why this happens, and came across this:
RestRserve/R/json.R
Line 19 in c24c92b
Could we have a way of configuring the dataframe='columns' parameter?
As of now, I found a workaround by setting custom encoder on the response object - and I can live with that.
I think that this can bite others as well though.
Thanks for a great package
The text was updated successfully, but these errors were encountered: