Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f4196f9

Browse files
committedApr 11, 2017
Do not layout colorbar if the trace does not have it
1 parent 00355fb commit f4196f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Plotly.plot = function(gd, data, layout, config) {
205205
if(trace.visible !== true || !trace._module.colorbar) {
206206
Plots.autoMargin(gd, 'cb' + trace.uid);
207207
}
208-
else trace._module.colorbar(gd, cd);
208+
else if(trace.marker.colorbar) trace._module.colorbar(gd, cd);
209209
}
210210

211211
Plots.doAutoMargin(gd);

0 commit comments

Comments
 (0)
Please sign in to comment.