sort data by timestamp
This commit is contained in:
parent
37dd98026d
commit
b525404d9b
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export default class Graph extends Component {
|
|||
const data = unprocessedData.map(([timestamp, latency]) => ({
|
||||
x: timestamp,
|
||||
y: latency,
|
||||
})).reverse();
|
||||
})).sort(({ x: a }, { x: b }) => a - b);
|
||||
|
||||
return [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue