Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

seamless integration widgets #185

Copy link
Copy link
Closed
Closed
Copy link
@guenp

Description

@guenp
Issue body actions

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.