fn make_history_datasets(stats: &StatsResponse) -> Vec<Dataset<'_>>