summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
authorLukas Metzger2020-05-23 14:48:57 +0200
committerLukas Metzger2020-05-23 14:48:57 +0200
commit538d843b76ccf935e805c034013509c1e3577925 (patch)
tree10064b73bc368159966f36e0bae6985f731cf7c4 /index.py
parentFix ids to be unique (diff)
downloadbwlp-statistics-538d843b76ccf935e805c034013509c1e3577925.tar.gz
bwlp-statistics-538d843b76ccf935e805c034013509c1e3577925.tar.xz
bwlp-statistics-538d843b76ccf935e805c034013509c1e3577925.zip
Added machine information and some minor fixes
Diffstat (limited to 'index.py')
-rw-r--r--index.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.py b/index.py
index 14316fa..ad9c77f 100644
--- a/index.py
+++ b/index.py
@@ -9,11 +9,12 @@ import plotly.graph_objects as go
import plotly.express as px
from app import app
-from pages import satellites, total
+from pages import satellites, total, machines
pages = [
{'name': 'Satellites', 'link': '/', 'id': 'satellites', 'layout': satellites.layout},
{'name': 'Total', 'link': '/total', 'id': 'total', 'layout': total.layout},
+ {'name': 'Machines', 'link': '/machines', 'id': 'machines', 'layout': machines.layout},
]
pio.templates['custom'] = dict(
@@ -24,7 +25,8 @@ pio.templates['custom'] = dict(
yanchor = 'top',
font = dict(size = 25)
),
- separators=',.'
+ separators=',.',
+ yaxis_tickformat = ',0f',
)
)
pio.templates.default = 'custom'