visualize Firebase and Google Chart.

365 views
Skip to first unread message

ade guntoro

unread,
Jul 1, 2017, 9:23:40 AM7/1/17
to Google Visualization API

hai, i'm Ade.
today i just make simple app from firebase and google chart, it's about reading temp from my sensor, at this time i can only display my temperature into Google Chart gauge.
but i still dont really understand about ploting data into google chart like bar or line. can somebody teach me about this ?

and this is my JSON database from firebase ; https://skripsi-adeguntoro.firebaseio.com/sensor.json

thank,
Ade

 dbRef.limitToLast(10).on('child_added', snap => {
       
const data = snap.val();
       
const li = document.createElement('li');
        li
.innerText = data.sensor1+':'+data.nama1;
        li
.id = snap.key;
        firelist
.appendChild(li);
        console
.log(data.sensor1, data.jam, data.tanggal, data.bulan, data.tahun);
   
});Enter code here...


Reply all
Reply to author
Forward
0 new messages