From 751f2df144e66041ce10bd79a67eb5b86df28478 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Sat, 23 May 2020 15:08:14 +0200 Subject: Added loading indication and minor ui fixes --- index.py | 2 +- pages/machines.py | 12 ++++++------ pages/total.py | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/index.py b/index.py index ad9c77f..53b7fb3 100644 --- a/index.py +++ b/index.py @@ -22,7 +22,7 @@ pio.templates['custom'] = dict( title=dict( x = 0.5, xanchor = 'center', - yanchor = 'top', + yanchor = 'bottom', font = dict(size = 25) ), separators=',.', diff --git a/pages/machines.py b/pages/machines.py index b750ddc..62bbfc0 100644 --- a/pages/machines.py +++ b/pages/machines.py @@ -45,23 +45,23 @@ def layout(): ]) ]), dbc.Row([dbc.Col([ - dcc.Graph(id='machines-graph-location') + dcc.Loading(dcc.Graph(id='machines-graph-location')) ])]), dbc.Row([ dbc.Col(width=12, md=6, xl=4, children=[ - dcc.Graph(id='machines-graph-ram') + dcc.Loading(dcc.Graph(id='machines-graph-ram')) ]), dbc.Col(width=12, md=6, xl=4, children=[ - dcc.Graph(id='machines-graph-realcores') + dcc.Loading(dcc.Graph(id='machines-graph-realcores')) ]), dbc.Col(width=12, md=6, xl=4, children=[ - dcc.Graph(id='machines-graph-kvmstate') + dcc.Loading(dcc.Graph(id='machines-graph-kvmstate')) ]), dbc.Col(width=12, xl=6, children=[ - dcc.Graph(id='machines-graph-cpumodel') + dcc.Loading(dcc.Graph(id='machines-graph-cpumodel')) ]), dbc.Col(width=12, xl=6, children=[ - dcc.Graph(id='machines-graph-systemmodel') + dcc.Loading(dcc.Graph(id='machines-graph-systemmodel')) ]) ]) ]) diff --git a/pages/total.py b/pages/total.py index f4d6c90..c22170a 100644 --- a/pages/total.py +++ b/pages/total.py @@ -44,16 +44,16 @@ def layout(): ]) ]), dbc.Row([dbc.Col([ - dcc.Graph(id='total-graph-times') + dcc.Loading(dcc.Graph(id='total-graph-times')) ])]), dbc.Row([dbc.Col([ - dcc.Graph(id='total-graph-session-length') + dcc.Loading(dcc.Graph(id='total-graph-session-length')) ])]), dbc.Row([dbc.Col([ - dcc.Graph(id='total-graph-sessions') + dcc.Loading(dcc.Graph(id='total-graph-sessions')) ])]), dbc.Row([dbc.Col([ - dcc.Graph(id='total-graph-users') + dcc.Loading(dcc.Graph(id='total-graph-users')) ])]) ]) -- cgit v1.2.3-55-g7522