Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Feature Request: select2d, lasso2d on Heatmaps

Currently you can’t add select2d or lasso2d to the modebar on heatmaps: https://codepen.io/ifland/pen/oGoPaK The behavior is working, and the icons are present so they can be added in manually: https://codepen.io/ifland/pen/ZXvmQz, but this approach isn’t available if you’re working with dash or the python API.

You can subscribe to https://github.com/plotly/plotly.js/issues/170 for the most up-to-date development info.

In the meantime, you try adding an invisible scatter trace to your graph e.g:

{
  x: [/* */],
  y: [/* */],
  opacity: 0
}
1 Like