Hello fellow developers,
I need to display realtime charts from data in some collections.
My use case is very simple :
- client insert data
- chart is updated in real time.
Here is my repo : https://github.com/skini26/TelemetryDashboard
I’m trying using d3.js and nvd3 (I have the two smart packages), but I can’t display anything, I have this following exception :
Exception from Tracker afterFlush function: undefined is not a function
TypeError: undefined is not a function
I know it is caused because of the this.autorun() inside the template.rendered(), but all examples use this and I don’t understand why it’s doing this.
Other question, I want to display the last inserted document in my Temperature collection, how can I do that ? findOne() returns the first one and not the last one.
All the data flow is working, my only real problem is the front end and I’m very bad at it (I an ‘‘old’’ Java EE backend developer).
Thank you in advance.