Description
Hi,
Plotly widgets are looking slick!
I have a request regarding GraphWidget:
For the function g.restyle(data), data needs to be a dictionary, where ‘x’ and ‘y’ are lists of lists, e.g.:
data = {'x':[[1,2,3], [2,3,4], 'y':[[1,2,3],[2,3,4]]}
...for the Figure class that’s used to generate a plotly figure on the server, using py.plot and the Data and Scatter objects, you’ll get a list of dictionaries where ‘x’ and ’y’ are lists:
data = [{'x': [1,2,3],’y’:[1,2,3]},{'x': [2,3,4],’y’:[2,3,4]}]
It would save some lines of code if I can just feed the same type of data object to both g.restyle(data) and figure(data=data).
Also, it would be sweet if there would be a function g.iplot() that does the equivalent of py.iplot() but automagically passes the figure data to Plotly.
Please let me know if this is in the plans and on what time scale (or just keep me posted) :]
Merci!