summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Metzger2020-05-23 15:08:14 +0200
committerLukas Metzger2020-05-23 15:08:14 +0200
commit751f2df144e66041ce10bd79a67eb5b86df28478 (patch)
tree3aef7922de369865b6f7e0cab000defe27ab7fcf
parentAdded machine information and some minor fixes (diff)
downloadbwlp-statistics-751f2df144e66041ce10bd79a67eb5b86df28478.tar.gz
bwlp-statistics-751f2df144e66041ce10bd79a67eb5b86df28478.tar.xz
bwlp-statistics-751f2df144e66041ce10bd79a67eb5b86df28478.zip
Added loading indication and minor ui fixes
-rw-r--r--index.py2
-rw-r--r--pages/machines.py12
-rw-r--r--pages/total.py8
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'))
])])
])