removed player numbers from graph
This commit is contained in:
parent
725198e4c9
commit
078773852b
|
@ -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(),
|
||||
|
|
14
svg.css
14
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 {
|
||||
|
|
|
@ -11,21 +11,11 @@
|
|||
<a href="month.html">last month</a>
|
||||
<a href="4months.html">last 4 months</a>
|
||||
</nav>
|
||||
<svg id='graph' height='200' width='{outer_width}' viewBox='0 10 {outer_width} 200' version='1.1' xmlns='http://www.w3.org/2000/svg'>
|
||||
<text y='200'>0</text>
|
||||
<text y='180'>1</text>
|
||||
<text y='160'>2</text>
|
||||
<text y='140'>3</text>
|
||||
<text y='120'>4</text>
|
||||
<text y='100'>5</text>
|
||||
<text y= '80'>6</text>
|
||||
<text y= '60'>7</text>
|
||||
<text y= '40'>8</text>
|
||||
<text y= '20'>9</text>
|
||||
<svg id='events' x='10' y='-10' width='{inner_width}' height='100%' preserveAspectRatio='none' viewBox='{start} -0.5 {period} 10'>
|
||||
<div class="overflow">
|
||||
<svg id='graph' width='{width}' height='200' viewBox='{start} -0.5 {period} 10' preserveAspectRatio='none' version='1.1' xmlns='http://www.w3.org/2000/svg'>
|
||||
<line id='days' x1='{day_start}' x2='{day_stop}'></line>
|
||||
{events}
|
||||
</svg>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue