Show empty graphs on startup

master
Dan Howe 5 years ago
parent ff4142da1b
commit 183d2af094

@ -126,7 +126,15 @@ def csv_to_json(contents, name):
[Input('json-storage', 'children')])
def read_json_data(json_data):
if json_data is None:
return html.Div([])
elements = html.Div([
dcc.Graph(),
html.Div([
html.Div([dcc.Graph()], className='six columns'),
]),
html.Div()
])
return elements
info = json.loads(json_data)['info']
df = pd.read_json(json.loads(json_data)['timeseries'], orient='table')

Loading…
Cancel
Save