I am able to make a simple Scatter3d plot in dash.
import plotly.graph_objects as go
import dash
import dash_core_components as dcc
import dash_html_components as htmlexternal_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]
app = dash.Dash(name, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
dcc.Graph(
id=‘test’,
figure={
‘data’: [
go.Scatter3d(x=[1],y=[1],z=[1])
]
}
)
])if name == ‘main’:
app.run_server(debug=True)
Trying the same with an Surface graph yields an error ‘t is null’ in the web interface.
import plotly.graph_objects as go
import dash
import dash_core_components as dcc
import dash_html_components as htmlexternal_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]
app = dash.Dash(name, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
dcc.Graph(
id=‘test’,
figure={
‘data’: [
go.Surface(z=[[0,1,2],[3,4,5],[6,7,8]])
]
}
)
])if name == ‘main’:
app.run_server(debug=True)
What could be the problem?