score:7

Accepted answer

you can use tracker.autorun to rerun drawchart whenever reactive data sources it depends on change:

if (meteor.isclient) {

    function drawchart() {
      ...
    }

    tracker.autorun(drawchart());
}

Related Query

More Query from same tag