Spaces:
Sleeping
Sleeping
File size: 710 Bytes
d176754 cfa3b9e 3721dde cfa3b9e 98286b2 cfa3b9e 3721dde cfa3b9e 344cd86 cfa3b9e 3721dde cfa3b9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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")
])
|