I'm checking last 100000 measurements of humidity and make chart, but on chart I want to show every 100th measurement, how can I modify this code to do this:
firebase.database().ref("Humidity").ref.orderByChild("time").limitToLast(100000).on("child_added",snapshot => {
var a = snapshot.val().wartosc;
var b = (new Date(snapshot.val().time *1000)).toLocaleString("pl-PL");
addData(myChart, b, a);
CodePudding user response:
This should do the trick:
firebase.database().ref("Humidity") //