How to use the dotaconstants.player_colors function in dotaconstants

To help you get started, we’ve selected a few dotaconstants examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github odota / core / public / js / generateCharts.js View on Github external
window.generateCharts = function generateCharts(data) {
    var color_array = [];
    for (var key in constants.player_colors) {
        color_array.push(constants.player_colors[key]);
    }
    var difference = data.difference;
    var gold = data.gold;
    var xp = data.xp;
    var lh = data.lh;

    var charts = [{
        bindTo: "#chart-diff",
        columns: difference,
        x: 'time',
        type: "area-spline",
        xLabel: 'Game Time (minutes)',
        yLabel: 'Radiant Advantage'
        }, {
        bindTo: "#chart-gold",
github odota / core / public / js / generateCharts.js View on Github external
window.generateCharts = function generateCharts(data) {
    var color_array = [];
    for (var key in constants.player_colors) {
        color_array.push(constants.player_colors[key]);
    }
    var difference = data.difference;
    var gold = data.gold;
    var xp = data.xp;
    var lh = data.lh;

    var charts = [{
        bindTo: "#chart-diff",
        columns: difference,
        x: 'time',
        type: "area-spline",
        xLabel: 'Game Time (minutes)',
        yLabel: 'Radiant Advantage'
        }, {
        bindTo: "#chart-gold",
        columns: gold,