We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have written 2 DIV like below
app.layout = html.Div(children=[ html.H1(children='Hello Dash'),
html.Div(children=''' Dash: A web application framework for Python. '''), dcc.Graph( id='example-graph', figure={ 'data': [ {'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'}, {'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'}, ], 'layout': { 'title': 'Dash Data Visualization' } } )
])
app.layout = html.Div(children=[ html.H1(children='Hello Dash1'),
html.Div(children=''' Dash1: A web application framework for Python. '''), dcc.Graph( id='example-graph1', figure={ 'data': [ {'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'}, {'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'}, ], 'layout': { 'title': 'Dash Data Visualization' } } )
But In output I am seeing only 1 DIV the latter one.How to show them as a Dashboards having multiple graphs on same url?
The text was updated successfully, but these errors were encountered:
Hi @bainadeashish - Your app can only have a single app.layout. You'll need something like:
app.layout
app.layout = html.Div([ html.Div(...), html.Graph(...), html.Div(...), html.Graph(...), ])
There are some examples of multiple graphs towards the end of the second chapter of the user guide: https://plot.ly/dash/getting-started-part-2
Also see the community forum to get more help on implementation questions like these: https://community.plot.ly/c/dash
Sorry, something went wrong.
Merge pull request #151 from plotly/chris-dev-tools
1e14342
another devtools pass
No branches or pull requests
I have written 2 DIV like below
app.layout = html.Div(children=[
html.H1(children='Hello Dash'),
])
app.layout = html.Div(children=[
html.H1(children='Hello Dash1'),
])
But In output I am seeing only 1 DIV the latter one.How to show them as a Dashboards having multiple graphs on same url?
The text was updated successfully, but these errors were encountered: