fetching the right data this time at least
This commit is contained in:
parent
b6c0e1b6dd
commit
e2960a3fcf
1 changed files with 2 additions and 2 deletions
|
@ -63,9 +63,9 @@ export class MoreStuffComponent implements OnInit {
|
||||||
if (useRange == true) {
|
if (useRange == true) {
|
||||||
let ranged_data = [];
|
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 => {
|
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({
|
ranged_data.push({
|
||||||
t: item.date,
|
t: item.date,
|
||||||
r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5,
|
r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5,
|
||||||
|
|
Reference in a new issue