@@ -1294,6 +1294,7 @@ function _restyle(gd, aobj, _traces) {
12941294 'autobinx' , 'nbinsx' , 'xbins' , 'xbins.start' , 'xbins.end' , 'xbins.size' ,
12951295 'autobiny' , 'nbinsy' , 'ybins' , 'ybins.start' , 'ybins.end' , 'ybins.size' ,
12961296 'autocontour' , 'ncontours' , 'contours' , 'contours.coloring' ,
1297+ 'contours.operation' , 'contours.value' , 'contours.type' , 'contours.value[0]' , 'contours.value[1]' ,
12971298 'error_y' , 'error_y.visible' , 'error_y.value' , 'error_y.type' ,
12981299 'error_y.traceref' , 'error_y.array' , 'error_y.symmetric' ,
12991300 'error_y.arrayminus' , 'error_y.valueminus' , 'error_y.tracerefminus' ,
@@ -1311,9 +1312,31 @@ function _restyle(gd, aobj, _traces) {
13111312 'line.showscale' , 'line.cauto' , 'line.autocolorscale' , 'line.reversescale' ,
13121313 'marker.line.showscale' , 'marker.line.cauto' , 'marker.line.autocolorscale' , 'marker.line.reversescale' ,
13131314 'xcalendar' , 'ycalendar' ,
1314- 'cumulative' , 'cumulative.enabled' , 'cumulative.direction' , 'cumulative.currentbin'
1315+ 'cumulative' , 'cumulative.enabled' , 'cumulative.direction' , 'cumulative.currentbin' ,
1316+ 'a0' , 'da' , 'b0' , 'db' , 'atype' , 'btype' ,
1317+ 'cheaterslope' , 'carpet' , 'sum' ,
13151318 ] ;
13161319
1320+ var carpetAxisAttributes = [
1321+ 'color' , 'smoothing' , 'title' , 'titlefont' , 'titlefont.size' , 'titlefont.family' ,
1322+ 'titlefont.color' , 'titleoffset' , 'type' , 'autorange' , 'rangemode' , 'range' ,
1323+ 'fixedrange' , 'cheatertype' , 'tickmode' , 'nticks' , 'tickvals' , 'ticktext' ,
1324+ 'ticks' , 'mirror' , 'ticklen' , 'tickwidth' , 'tickcolor' , 'showticklabels' ,
1325+ 'tickfont' , 'tickfont.size' , 'tickfont.family' , 'tickfont.color' , 'tickprefix' ,
1326+ 'showtickprefix' , 'ticksuffix' , 'showticksuffix' , 'showexponent' , 'exponentformat' ,
1327+ 'separatethousands' , 'tickformat' , 'categoryorder' , 'categoryarray' , 'labelpadding' ,
1328+ 'labelprefix' , 'labelsuffix' , 'labelfont' , 'labelfont.family' , 'labelfont.size' ,
1329+ 'labelfont.color' , 'showline' , 'linecolor' , 'linewidth' , 'gridcolor' , 'gridwidth' ,
1330+ 'showgrid' , 'minorgridcount' , 'minorgridwidth' , 'minorgridcolor' , 'startline' ,
1331+ 'startlinecolor' , 'startlinewidth' , 'endline' , 'endlinewidth' , 'endlinecolor' ,
1332+ 'tick0' , 'dtick' , 'arraytick0' , 'arraydtick' , 'hoverformat' , 'tickangle'
1333+ ] ;
1334+
1335+ for ( i = 0 ; i < carpetAxisAttributes . length ; i ++ ) {
1336+ recalcAttrs . push ( 'aaxis.' + carpetAxisAttributes [ i ] ) ;
1337+ recalcAttrs . push ( 'baxis.' + carpetAxisAttributes [ i ] ) ;
1338+ }
1339+
13171340 for ( i = 0 ; i < traces . length ; i ++ ) {
13181341 if ( Registry . traceIs ( fullData [ traces [ i ] ] , 'box' ) ) {
13191342 recalcAttrs . push ( 'name' ) ;
@@ -1657,9 +1680,14 @@ function _restyle(gd, aobj, _traces) {
16571680 doextra ( axlist . map ( rangeAttr ) , [ 0 , 1 ] , 0 ) ;
16581681 }
16591682 flags . docalc = true ;
1683+
1684+ } else if ( replotAttrs . indexOf ( aiAboveArray ) !== - 1 ) {
1685+ flags . doplot = true ;
1686+ } else if ( aiAboveArray . indexOf ( 'aaxis' ) === 0 || aiAboveArray . indexOf ( 'baxis' ) === 0 ) {
1687+ flags . doplot = true ;
1688+ } else if ( autorangeAttrs . indexOf ( aiAboveArray ) !== - 1 ) {
1689+ flags . docalcAutorange = true ;
16601690 }
1661- else if ( replotAttrs . indexOf ( aiAboveArray ) !== - 1 ) flags . doplot = true ;
1662- else if ( autorangeAttrs . indexOf ( aiAboveArray ) !== - 1 ) flags . docalcAutorange = true ;
16631691 }
16641692
16651693 // do we need to force a recalc?
0 commit comments