This commit is contained in:
Luc Mcgrady 2025-07-13 14:03:34 +01:00
parent 17d8528afd
commit 84b2b2bd96
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,6 @@
use std::collections::HashMap;
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
use std::collections::HashMap;
use std::sync::Arc;
use anki_proto::deck_config::deck_config::config::ReviewCardOrder;

View file

@ -270,9 +270,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
});
}
const render_function = workload
? renderWorkloadChart
: renderSimulationChart;
const render_function = workload ? renderWorkloadChart : renderSimulationChart;
tableData = render_function(
svg as SVGElement,

View file

@ -49,8 +49,6 @@ export function renderWorkloadChart(
data: Point[],
subgraph: SimulateWorkloadSubgraph,
) {
const today = new Date();
const xMin = 70;
const xMax = 99;