Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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",
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,