Spaces:
Sleeping
Sleeping
| import dash | |
| from dash import dcc, html | |
| # example for https://community.plotly.com/t/two-graphs-side-by-side/5312 | |
| external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
| app = dash.Dash(external_stylesheets=external_stylesheets) | |
| # Expose the Flask server instance | |
| server = app.server | |
| 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"), | |
| html.Div([ | |
| html.H3('Column 2'), | |
| dcc.Graph(id='g2', figure={'data': [{'y': [1, 2, 3]}]}) | |
| ], className="six columns"), | |
| ], className="does-not-matter-can-be-container") | |
| ]) | |