Set dark colors & update charts style

This commit is contained in:
2020-11-18 18:04:38 +01:00
parent 62cb06838b
commit e7da3eb44e
4 changed files with 38 additions and 18 deletions

View File

@ -26,6 +26,7 @@ pub fn view(_auth: Authorized, db: State<'_, sled::Db>) -> Result<Template, Stat
secs_last_week: u64,
secs_last_month: u64,
bars_max: f64,
bars: Vec<(u32, f64, f64)>,
}
@ -97,6 +98,7 @@ pub fn view(_auth: Authorized, db: State<'_, sled::Db>) -> Result<Template, Stat
secs_last_week,
secs_last_month,
bars_max: biggest_hour,
bars: (0..24)
.map(|hour| {
let percentage = *stats_per_hour.entry(hour).or_default();