sort date

This commit is contained in:
rloukil 2018-12-31 15:40:15 +01:00
parent 72da607981
commit d8fec72c5b

5
app.js
View file

@ -33,6 +33,11 @@ getData().then((data)=>{
console.log(date);
console.log(ipv4_v6);
date.sort((a, b)=>{
return new Date(b) - new Date(a)
})
var ctx = document.getElementById("myChart").getContext('2d');
var chart = new Chart(ctx, {
type: 'bar',