import dash
import dash_html_components as html
import dash_core_components as dcc
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], ‘type’:‘bar’,‘name’:‘abc’}]})
], className=“six columns”),
html.Div([
html.H3('Column 2'),
dcc.Graph(id='g2', figure={'data': [{'y': [1, 2, 3],'type':'bar','name':'xyz'}]})
], className="six columns"),
], className="row")
])
app.css.append_css({
‘external_url’: ‘https://codepen.io/chriddyp/pen/bWLwgP.css’
})
if name == ‘main’:
app.run_server(debug=True)
i want a simple gride from my csv file
how can i add that.
(i can plot in plane graph like this)
import pandas as pd
import plotly.graph_objects as go
df = pd.read_csv(’/home/acladmin/Downloads/3_months (1).csv’)
fig = go.Figure(go.Scatter(x = df[‘Code’], y = df[‘Expiration Date’],
name=‘Expiration Date’))
fig.update_layout(title=‘3_months’,
plot_bgcolor=‘rgb(230, 230,230)’,
showlegend=True)
fig.show()
but i want in gride . any suggestion will be helpfull