Only show data points when we have the full 10 min

Makes the newer graphs act like the queries over time graph.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2017-06-25 21:10:47 -04:00
parent f79b1ac0b6
commit cbdcf72235
2 changed files with 5 additions and 0 deletions
@@ -65,6 +65,8 @@ class ForwardDestOverTime extends Component {
.then(res => res.json())
.then(res => {
res.over_time = parseObjectForGraph(res.over_time);
// Remove last data point as it's not yet finished
res.over_time[0].splice(-1, 1);
let labels = [];
let timestamps = res.over_time[0];
@@ -83,6 +83,9 @@ class QueryTypesOverTime extends Component {
.then(res => {
res.query_types = parseObjectForGraph(res.query_types);
// Remove last data point as it's not yet finished
res.query_types[0].splice(-1, 1);
let labels = [];
let data_A = [];
let data_AAAA = [];