Fix per-hour stats view

The computation now accounts for partial hours
This commit is contained in:
2020-11-16 15:59:45 +01:00
parent accefce65c
commit 62cb06838b
4 changed files with 229 additions and 123 deletions

View File

@ -40,8 +40,8 @@
<div class="chart_histogram">
{{#each this.bars}}
<div class="chart_histogram_col">
<div style="flex-basis: {{this.2}}%;"></div>
<div class="chart_histogram_col_line chart_col_tooltip" style="flex-basis: {{this.1}}%;">
<div style="flex-grow: {{this.2}};"></div>
<div class="chart_histogram_col_line chart_col_tooltip" style="flex-grow: {{this.1}};">
<span class="chart_col_tooltiptext">{{this.1}}&percnt;</span>
</div>
<div class="chart_histogram_col_label">{{this.0}}</div>