We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513fcfc commit f309b5fCopy full SHA for f309b5f
src/components/legend/defaults.js
@@ -91,7 +91,7 @@ function groupDefaults(legendId, layoutIn, layoutOut, fullData) {
91
92
var showLegend = Lib.coerce(layoutIn, layoutOut,
93
basePlotLayoutAttributes, 'showlegend',
94
- legendReallyHasATrace && legendTraceCount > 1);
+ legendReallyHasATrace && (legendTraceCount > (legendId === 'legend' ? 1 : 0)));
95
96
// delete legend
97
if(showLegend === false) layoutOut[legendId] = undefined;
0 commit comments