From 078773852ba5ca7ea900608fa6e894b3a69c19dc Mon Sep 17 00:00:00 2001 From: User <> Date: Wed, 13 Mar 2019 20:31:09 +0100 Subject: [PATCH] removed player numbers from graph --- generate-html.py | 3 +-- svg.css | 14 ++++++-------- template.html | 16 +++------------- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/generate-html.py b/generate-html.py index 92724c4..177f36f 100644 --- a/generate-html.py +++ b/generate-html.py @@ -45,8 +45,7 @@ def make_html(name,period): with open('template.html', 'r') as fin: with open(name+'.html', 'w') as fout: fout.write(fin.read().format( - outer_width = display_scale*period+10, - inner_width = display_scale*period, + width = display_scale*period, start = start, period = period, day_start = scale*datetime.fromtimestamp(start/scale).replace(hour=0,minute=0,second=0,microsecond=0).timestamp(), diff --git a/svg.css b/svg.css index f500be5..94907d9 100644 --- a/svg.css +++ b/svg.css @@ -1,13 +1,11 @@ +.overflow { + overflow-x: auto; + max-width: 100%; +} + #graph { background-color: #EEE; -} - -#events { - transform: scaleY(-1) translateY(-100%); -} - -text { - dominant-baseline: central; + transform: scaleY(-1); } #days { diff --git a/template.html b/template.html index f2d0368..de1b2d5 100644 --- a/template.html +++ b/template.html @@ -11,21 +11,11 @@ last month last 4 months - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - +
+ {events} - +