Skip to content

Commit df7afb6

Browse files
committed
sort categories by value: fix for histogram
1 parent 270aeb3 commit df7afb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/plots.js

+3
Original file line numberDiff line numberDiff line change
@@ -2858,6 +2858,9 @@ function sortAxisCategoriesByValue(axList, gd) {
28582858
if(fullData.visible !== true) continue;
28592859
var cd = gd.calcdata[traceIndex];
28602860
var type = fullData.type;
2861+
2862+
if(type === 'histogram') delete fullData._autoBinFinished;
2863+
28612864
for(k = 0; k < cd.length; k++) {
28622865
if(type === 'scatter') {
28632866
if(ax._id[0] === 'x') {

0 commit comments

Comments
 (0)