mirror of
https://github.com/gosticks/web.git
synced 2026-10-07 07:07:07 +00:00
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:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user