From e2960a3fcf916425b63b6dbe92b8e5ee0e263cf9 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 14 Aug 2019 16:36:02 +0100 Subject: [PATCH] fetching the right data this time at least --- src/app/dashboard/more-graphs-and-tables.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index 12e78b8..8273d67 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -63,9 +63,9 @@ export class MoreStuffComponent implements OnInit { if (useRange == true) { let ranged_data = []; - for (var i = 0; i < ranged_data.data.count; i++) { + for (var i = 0; i < result.data.count; i++) { result.data.map(item => { - if (ranged_data.data[i].date >= start_range && ranged_data.data[i].date <= end_range) { + if (result.data[i].date >= start_range && result.data[i].date <= end_range) { ranged_data.push({ t: item.date, r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5,