Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
versionsData = versionsData.concat(versions.map(function(v, index) {
var brightness = 0.2 - (index / versions.length) / 5;
return {
name: v.browser + ' ' + v.browserVersion,
y: toPercent(v.visits, totalVisits),
color: Highcharts.Color(color).brighten(brightness).get()
};
}));
});