提交 d7e42c69 编写于 作者: D deqingli

refactor(themeRiver): refactor the series of themeRiver

上级 8f7e1fc7
......@@ -218,11 +218,9 @@ var ThemeRiverSeries = SeriesModel.extend({
var timeDim = data.mapDimension('single');
for (var j = 0; j < layerSeries.length; ++j) {
layerSeries[j].indices.sort(comparer);
}
function comparer(index1, index2) {
return data.get(timeDim, index1) - data.get(timeDim, index2);
layerSeries[j].indices.sort(function (index1, index2) {
return data.get(timeDim, index1) - data.get(timeDim, index2);
});
}
return layerSeries;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册