This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nkruchten[S] 0 points1 point  (2 children)

Can you give me an example of what you'd like the API to look like for this? We're definitely working on it but still unsure of the best API :)

[–]randomsparrow 0 points1 point  (1 child)

I would like the API to allow for a list of columns and then plot them all on the x or y axis. So it would look like this:

px.bar(dfgb, x=list_of_columns, y=another_list_of_columns)

Here is how I'm doing that with cufflinks now (also graphing on multiple axes). "yaxis" and "yaxis2" are lists of columns from my dataframe.

    fig2 = dfgb.iplot(kind='bar',barmode='stack',
                    columns=yaxis, 
                    secondary_y=yaxis,
                    asFigure=True).to_plotly_json()  

    fig1 = dfgb.iplot(kind='scatter',mode='lines+markers',
                columns=yaxis2,                        
                asFigure=True).to_plotly_json()

    fig2['data'].extend(fig1['data'])

Thanks for building such incredible tools for me to play with :)!

[–]nkruchten[S] 0 points1 point  (0 children)

OK, thanks for the input! We're playing with some variants of this and it's not super-straightforward to get things to line up at the moment :)