Using helper.each instead of Array.prototype.map

This commit is contained in:
Christopher Weiss 2015-01-30 11:01:44 -05:00
parent 0f49be56a4
commit b8b7c85c5e

View File

@ -79,6 +79,9 @@
});
helpers.each(data,function(datapoint, index){
if (!datapoint.color) {
datapoint.color = 'hsl(' + (360 * index / data.length) + ', 100%, 50%)';
}
this.addData(datapoint, index, true);
},this);