{"size": 873, "ext": "js", "max_stars_repo_path": "attic/examples/demo.js", "max_stars_repo_name": "great-fork/envisionjs", "max_stars_repo_stars_event_min_datetime": "2015-01-02T01:57:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-21T05:51:12.000Z", "max_issues_repo_path": "attic/examples/demo.js", "max_issues_repo_name": "great-fork/envisionjs", "max_issues_repo_issues_event_min_datetime": "2015-02-24T00:02:26.000Z", "max_issues_repo_issues_event_max_datetime": "2020-04-24T12:01:21.000Z", "max_forks_repo_path": "attic/examples/demo.js", "max_forks_repo_name": "great-fork/envisionjs", "max_forks_repo_forks_event_min_datetime": "2015-01-02T14:16:10.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-27T10:28:36.000Z"}
{"max_stars_count": 420, "max_issues_count": 4, "max_forks_count": 107, "avg_line_length": 21.825, "max_line_length": 80, "alphanum_fraction": 0.4879725086}

Event.observe(document, 'dom:loaded', function() {

    HumbleFinance.trackFormatter = function (obj) {
        
        var x = Math.floor(obj.x);
        var data = jsonData[x];
        var text = data.date + " Price: " + data.close + " Vol: " + data.volume;
        
        return text;
    };
    
    HumbleFinance.yTickFormatter = function (n) {
        
        if (n == this.max) {
            return false;
        }
        
        return '$'+n;
    };
    
    HumbleFinance.xTickFormatter = function (n) { 
        
	n = parseInt(n);
	
        if (n == 0) {
            return false;
        }
        
        var date = jsonData[n].date;
        date = date.split(' ');
        date = date[2];
        
        return date; 
    };
    
    HumbleFinance.init('humblefinance', priceData, volumeData, summaryData);
    HumbleFinance.setFlags(flagData);
});
