Plotly.js: Heatmap legend can't be disabled

Created on 6 Mar 2018  路  2Comments  路  Source: plotly/plotly.js

It seems like showlegend: false for heatmaps is broken. I found this codepen in the docs that should have the legend hidden, but it's still being rendered: https://codepen.io/plotly/pen/WQGgbe. That codepen is linked from this page: https://plot.ly/javascript/configuration-options/#modify-the-edit-chart-link-text.

I couldn't get it to work by placing showlegend: false in either the trace or the layout. I also cherry picked a few previous versions to see if this worked at some point, but couldn't find one.

Thanks for all your hard work!

Most helpful comment

(I don't know why that example has showlegend in it, we'll take that out... but just to be clear, showscale is a trace attribute, not a layout attribute)

All 2 comments

That's because we don't call it a legend, we call it a colorscale, with corresponding showscale attribute.

(I don't know why that example has showlegend in it, we'll take that out... but just to be clear, showscale is a trace attribute, not a layout attribute)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tim-sauchuk picture tim-sauchuk  路  3Comments

jonmmease picture jonmmease  路  3Comments

nicolaskruchten picture nicolaskruchten  路  3Comments

pynklu picture pynklu  路  3Comments

HunterMcGushion picture HunterMcGushion  路  3Comments