{"size": 1170, "ext": "js", "max_stars_repo_path": "static/base.js", "max_stars_repo_name": "greenbrettmichael/TDPortfolioServer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "static/base.js", "max_issues_repo_name": "greenbrettmichael/TDPortfolioServer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/base.js", "max_forks_repo_name": "greenbrettmichael/TDPortfolioServer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5909090909, "max_line_length": 74, "alphanum_fraction": 0.547008547}
var dynamicColors = function() {
    var r = Math.floor(Math.random() * 255);
    var g = Math.floor(Math.random() * 255);
    var b = Math.floor(Math.random() * 255);
    return "rgb(" + r + "," + g + "," + b + ")";
 };

var currentCtx = document.getElementById('currentchart').getContext('2d');
var tickers = ['AAPL', 'MSFT', 'AMZN', 'NFLX', 'USD'];
var percentages = [];
var colors = [];

for (var i in tickers) {
    percentages.push(20);
    colors.push(dynamicColors());
}
var currentChart = new Chart(currentCtx, {
    type: 'doughnut',
    data: {
        labels: tickers,
        datasets: [{
            label: 'Current Portfolio',
            backgroundColor: colors,
            borderColor: 'rgb(255, 99, 132)',
            data: percentages
        }]
    },
    options: {}
});

var nextCtx = document.getElementById('nextchart').getContext('2d');
var nextChart = new Chart(nextCtx, {
    type: 'doughnut',
    data: {
        labels: tickers,
        datasets: [{
            label: 'Current Portfolio',
            backgroundColor: colors,
            borderColor: 'rgb(255, 99, 132)',
            data: percentages
        }]
    },
    options: {}
});