Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clinical-meteor/graphs-piechart
Piechart for Meteor ClinicalFramework using D3 and NVD3.
https://github.com/clinical-meteor/graphs-piechart
Last synced: about 2 months ago
JSON representation
Piechart for Meteor ClinicalFramework using D3 and NVD3.
- Host: GitHub
- URL: https://github.com/clinical-meteor/graphs-piechart
- Owner: clinical-meteor
- Created: 2016-01-12T23:52:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T23:59:06.000Z (about 9 years ago)
- Last Synced: 2024-10-29T16:26:47.285Z (3 months ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## clinical:graphs-piechart
Reported Outcomes piechart for Meteor ClinicalFramework using D3 and NVD3.
==========================
####Package Installation````bash
meteor add clinical:graphs-piechart
````Then add the graph to your application with the following.
````html
{{> 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:
````js
Router.route("/analytics", {
name:"analyticsRoute",
template:"analytics",
onAfterAction: function () {
Graphs.renderReportedOutcomesStats();
}
});
````==========================
#### API````js
// isomorphic object
ReportedOutcome.incrementCount("bucketA");// remote procedure call
Meteor.call('incrementReportedOutcomeCount');
````==========================
####Contributions & Licensing![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)