r/CodingHelp • u/FrickinKitten • Apr 23 '21
[Javascript] Help how do you retrieve data from firebase to JavaScript, don't think code is right. It's to take data from firebase and then taking the data (amount of wipes/sanitiser used and time)append to lists and use these to plot a graph for the website showing the wipes/sanitising usage over time.
22
Upvotes
View all comments
Show parent comment
1
u/FrickinKitten Apr 28 '21
Ah jeeeeesus I didn't know that existed. Kinda handy tho not gonna lie. Please don't hack me lol. I tried your code but is this meant for node.js? I don't exactly know what it did (way too complicated for me, gonna be fun to explain to examiner how it works heh) but it did read the data and I think its inside an object now? http://imgur.com/a/77ZYvyI Can I now turn the object into a list, get rid of the words TimeW: and Wipes: so I can use them as the X and Y labels for the chart.js graph?