Skip to content

Commit e67232d

Browse files
committed
basechart: sort values by index in tooltip
1 parent 70d408e commit e67232d

File tree

1 file changed

+1
-6
lines changed
  • frontend/express/public/javascripts/countly/vue/components

1 file changed

+1
-6
lines changed

frontend/express/public/javascripts/countly/vue/components/vis.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,7 @@
639639
}
640640

641641
params.sort(function(a, b) {
642-
if (typeof a.value === 'object') {
643-
return b.value[1] - a.value[1];
644-
}
645-
else {
646-
return b.value - a.value;
647-
}
642+
return a.seriesIndex - b.seriesIndex;
648643
});
649644

650645
for (var i = 0; i < params.length; i++) {

0 commit comments

Comments
 (0)