Last active
August 29, 2015 14:17
-
-
Save scottmessinger/ad72585c27e581d95152 to your computer and use it in GitHub Desktop.
Graphing
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
// http://nvd3.org/examples/linePlusBar.html | |
[ | |
{ | |
"key": "Quantity", | |
"bar": true, | |
"color": "#ccf", | |
"values": [ | |
[ | |
1136005200000, | |
1271000.0 | |
], | |
[ | |
1138683600000, | |
1271000.0 | |
], | |
[ | |
1141102800000, | |
1271000.0 | |
], | |
[ | |
1143781200000, | |
0 | |
] | |
] | |
}, | |
{ | |
"key": "Price", | |
"color": "#333", | |
"values": [ | |
[ | |
1136005200000, | |
71.89 | |
], | |
[ | |
1138683600000, | |
75.51 | |
], | |
[ | |
1141102800000, | |
68.49 | |
] | |
] | |
} | |
] |
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
// http://nvd3.org/examples/discreteBar.html | |
[ | |
{ | |
key: "Cumulative Return", | |
values: [ | |
{ | |
"label" : "A Label" , | |
"value" : -29.765957771107 | |
} , | |
{ | |
"label" : "B Label" , | |
"value" : 0 | |
} , | |
{ | |
"label" : "C Label" , | |
"value" : 32.807804682612 | |
} | |
] | |
} | |
] |
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
// http://nvd3.org/examples/cumulativeLine.html | |
[ | |
{ | |
"key": "Series 1", | |
"values": [ | |
[ | |
1025409600000, | |
0 | |
], | |
[ | |
1028088000000, | |
-6.3382185140371 | |
], | |
[ | |
1030766400000, | |
-5.9507873460847 | |
] | |
] | |
} | |
] |
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
// http://nvd3.org/examples/line.html | |
[ | |
{ | |
"key": "Another sine wave", | |
"color": "#7777ff", | |
"area": true, | |
"values": [ | |
{ | |
"x": 0, | |
"y": 0 | |
}, | |
{ | |
"x": 1, | |
"y": 0.09983341664682815 | |
}, | |
{ | |
"x": 2, | |
"y": 0.19866933079506122 | |
} | |
] | |
} | |
] |
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
// http://nvd3.org/examples/multiBar.html | |
[ | |
{ | |
"key": "Stream #0", | |
"values": [ | |
{ | |
"x": 0, | |
"y": 4.68746072733794 | |
}, | |
{ | |
"x": 1, | |
"y": 8.453214340144788 | |
}, | |
{ | |
"x": 2, | |
"y": 10.010677230596723 | |
} | |
] | |
}, | |
{ | |
"key": "Stream #1", | |
"values": [ | |
{ | |
"x": 0, | |
"y": 0.19826874323189259 | |
}, | |
{ | |
"x": 1, | |
"y": 0.19474470678251238 | |
}, | |
{ | |
"x": 2, | |
"y": 0.14958492130972445 | |
} | |
] | |
} | |
] |
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
/** | |
* [SCATTER](http://nvd3.org/examples/scatter.html) | |
*/ | |
[ | |
{ | |
"key": "Group 0", | |
"values": [ | |
{ | |
"x": 0.6396293678966859, | |
"y": 2.445983721748642, | |
"size": 0.9382946721743792, | |
"shape": "circle" | |
}, | |
{ | |
"x": 0.1416902693360411, | |
"y": 0.6263235950529391, | |
"size": 0.3633337817154825, | |
"shape": "circle" | |
}, | |
{ | |
"x": 0.21887498322857987, | |
"y": -0.34922432220795857, | |
"size": 0.7132257849443704, | |
"shape": "circle" | |
} | |
] | |
} | |
] |
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
// http://nvd3.org/examples/pie.html | |
// Note: pie chart data format differs from other charts. Data is only a single dimensinal array. Follow the example. | |
[ | |
{ | |
"label": "One", | |
"value" : 29.765957771107 | |
} , | |
{ | |
"label": "Two", | |
"value" : 0 | |
} , | |
{ | |
"label": "Three", | |
"value" : 32.807804682612 | |
} | |
] |
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
// http://nvd3.org/examples/stackedArea.html | |
{ | |
"key" : "North America" , | |
"values" : [ | |
[ 1025409600000 , 23.041422681023], | |
[ 1028088000000 , 19.854291255832], | |
[ 1030766400000 , 21.02286281168], | |
[ 1033358400000 , 22.093608385173], | |
[ 1036040400000 , 25.108079299458], | |
[ 1038632400000 , 26.982389242348] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment