plotly / dash-slicer

A volume slicer for Dash
https://dash.plotly.com/slicer
MIT License
24 stars 8 forks source link

Add method to clear overlay data #33

Closed emmanuelle closed 3 years ago

emmanuelle commented 3 years ago

At the moment it's possible to clear the overlay data of a slicer by passing an array or zeros but it would be faster to return a list of None. This occurred to me when updating the chest X-ray app where I had to use this mask of zeros to clear the overlay data.

almarklein commented 3 years ago

Good point! Would slicer.create_overlay_data(None) work for an API?

emmanuelle commented 3 years ago

Yes, this would be a good solution I think.