Sheep
1
Hey guys I was wondering if you could use cufflinks to create a graph in dash instead of using just plotly.
app = dash.Dash()
app.layout = html.Div([
html.Div([
html.Div([
html.H3(‘Column 1’),
dcc.Graph(id=‘g1’, figure={‘data’: [{‘y’: [1, 2, 3]}]})
], className=“six columns”)
instead using figure I would like to do df.iplot()
KMFR
2
I’ve been wondering this too, did you ever find an answer?
Sheep
3
I haven’t yet. I have been just using plotly syntax, Keep me posted if you have any luck as well!
rafaelc
4
If I’m not mistaken you could use the asFigure
option and then just pass the figure to dcc.Graph
:
figure = df.iplot(kind='scatter', asFigure=True)
app = dash.Dash()
app.layout = html.Div([
html.Div([
html.Div([
html.H3('Column 1'),
dcc.Graph(id='g1', figure=figure)
], className='six columns')
3 Likes
Sheep
5
You’re absolutely right. This worked out great, thanks for the response!