File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1961,6 +1961,8 @@ plots.doCalcdata = function(gd, traces) {
1961
1961
}
1962
1962
}
1963
1963
1964
+ var hasCalcTransform = false ;
1965
+
1964
1966
// transform loop
1965
1967
for ( i = 0 ; i < fullData . length ; i ++ ) {
1966
1968
trace = fullData [ i ] ;
@@ -1978,17 +1980,20 @@ plots.doCalcdata = function(gd, traces) {
1978
1980
1979
1981
_module = transformsRegistry [ transform . type ] ;
1980
1982
if ( _module && _module . calcTransform ) {
1983
+ hasCalcTransform = true ;
1981
1984
_module . calcTransform ( gd , trace , transform ) ;
1982
1985
}
1983
1986
}
1984
1987
}
1985
1988
}
1986
1989
1987
1990
// clear stuff that should recomputed in 'regular' loop
1988
- for ( i = 0 ; i < axList . length ; i ++ ) {
1989
- axList [ i ] . _min = [ ] ;
1990
- axList [ i ] . _max = [ ] ;
1991
- axList [ i ] . _categories = [ ] ;
1991
+ if ( hasCalcTransform ) {
1992
+ for ( i = 0 ; i < axList . length ; i ++ ) {
1993
+ axList [ i ] . _min = [ ] ;
1994
+ axList [ i ] . _max = [ ] ;
1995
+ axList [ i ] . _categories = [ ] ;
1996
+ }
1992
1997
}
1993
1998
1994
1999
// 'regular' loop
You can’t perform that action at this time.
0 commit comments