Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
May 28, 2013
1 parent
63e7821
commit 69ca547
Showing
22 changed files
with
12,176 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
hGraph | ||
======== | ||
|
||
An open source javascript-based web application for visualizing health data. | ||
|
||
###About the REPO### | ||
|
||
The hGraph is an open source project that is being developed and designed to provide an industry standard of presenting health care information to professionals and average citizens alike. | ||
|
||
|
||
###Dependencies### | ||
|
||
The `HGraph` class relies on [d3.js](http://d3js.org/), which is a very popular javascript library for manipulating SVG, specficically for graphs and data plotting. | ||
|
||
Once you have downloaded the latest version, you will need to include in in your html above the `HealthGraph` source code: | ||
|
||
<script src="/path/to/your/d3.js" type="text/javascript"></script> | ||
<script src="/path/to/your/HealthGraph.js" type="text/javascript"></script> | ||
|
||
###Setup### | ||
|
||
During a `window.onload` or similar entry point, the health graph is constructed and intialized by: | ||
|
||
var graph; | ||
window.onload = function(){ | ||
|
||
graph = new HGraph({ | ||
container : document.getElementById("graph_container"), | ||
userdata : { | ||
overallScore : 90, | ||
factors : | ||
[ | ||
{ | ||
label : 'Family History', | ||
score : 80, | ||
}, | ||
{ | ||
label : 'Caloric Intake', | ||
score : 100 | ||
} | ||
] | ||
}; | ||
}); | ||
|
||
graph.initialize(); | ||
|
||
} | ||
|
||
|
||
###Example site### | ||
|
||
To see a live demo, please visit: [hgraph.org](http://hgraph.org/) | ||
|
||
###License### | ||
|
||
The `HGraph` class is licensed under the Apache-2.0 open source license. You can find more information on the Apache-2.0 license at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
hGraph | ||
====== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@font-face { | ||
font-family: 'Droid Sans'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Droid Sans'), local('DroidSans'), url(http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciC3USBnSvpkopQaUR-2r7iU.ttf) format('truetype'); | ||
} | ||
@font-face { | ||
font-family: 'Droid Sans'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/droidsans/v3/EFpQQyG9GqCrobXxL-KRMfEr6Hm6RMS0v1dtXsGir4g.ttf) format('truetype'); | ||
} |
Oops, something went wrong.