We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a531f8 commit cf66d2eCopy full SHA for cf66d2e
src/traces/sunburst/calc.js
@@ -192,8 +192,8 @@ exports.calc = function(gd, trace) {
192
if(failed) return;
193
194
// TODO add way to sort by height also?
195
- if ( trace.sort) {
196
- hierarchy.sort(function(a, b) { return b.value - a.value; });
+ if (trace.sort) {
+ hierarchy.sort(function(a, b) { return b.value - a.value; });
197
}
198
199
var pullColor;
0 commit comments