7👍
✅
You can use Tracker.autorun to rerun drawChart
whenever reactive data sources it depends on change:
if (Meteor.isClient) {
function drawChart() {
...
}
Tracker.autorun(drawChart());
}
Source:stackexchange.com