clinical:graphs-piechart

v2.5.2Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

clinical:graphs-piechart

Reported Outcomes piechart for Meteor ClinicalFramework using D3 and NVD3.

========================== ####Package Installation

meteor add clinical:graphs-piechart

Then add the graph to your application with the following.

1{{> ReportedOutcomesChart }}

Note that you can currently only have one ReportedOutcomesChart on the page at a time. After adding the ReportedOutcomesChart to your document object model, you'll need to subscribe to the collection and render the graph. The best pattern we've found so far is within the router, like so:

1Router.route("/analytics", {
2  name:"analyticsRoute",
3  template:"analytics",
4  onAfterAction: function () {
5    Graphs.renderReportedOutcomesStats();
6  }
7});

==========================

API

1// isomorphic object
2ReportedOutcome.incrementCount("bucketA");
3
4// remote procedure call
5Meteor.call('incrementReportedOutcomeCount');

========================== ####Contributions & Licensing

MIT License