Skip to content

Commit 96431bb

Browse files
committed
reset _numBoxes/_numViolins before calc
1 parent 795220f commit 96431bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/plots.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,6 +2887,9 @@ plots.doCalcdata = function(gd, traces) {
28872887
// Sort axis categories per value if specified
28882888
var sorted = sortAxisCategoriesByValue(axList, gd);
28892889
if(sorted.length) {
2890+
// how many box/violins plots do we have (in case they're grouped)
2891+
fullLayout._numBoxes = 0;
2892+
fullLayout._numViolins = 0;
28902893
// If a sort operation was performed, run calc() again
28912894
for(i = 0; i < sorted.length; i++) calci(sorted[i], true);
28922895
for(i = 0; i < sorted.length; i++) calci(sorted[i], false);

0 commit comments

Comments
 (0)