This file contains hidden or 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
var ALL_CHARTS = [] | |
var REFRESH_ALL_CHARTS = function(){ | |
for(var i = 0; i < ALL_CHARTS.length; i++){ | |
ALL_CHARTS[i].update(); | |
} | |
} | |
nv.addGraph(function() { | |
var chart = nv.models.linePlusBarChart() |
This file contains hidden or 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
/** | |
* Based on node-uuid.js http://gist.github.com/393456 | |
* | |
* Generates a new UUID and passes it to the given callback function. | |
* | |
* Calls uuid.sh - make your own depending on your system. I followed an example here: http://www.redleopard.com/2010/03/bash-uuid-generator/ | |
* | |
* Callback signature is function(err, uuid). | |
*/ | |
exports.create_uuid = (function() { |