How to handle the scenario is which a figure updates based on a selected data set, but no data has been chosen yet?

Related: How to use data uploaded through a FileInput widget in a param.Parameterized class and handle situation where no data has been uploaded yet?

This topic discussed the same problem, but for classes.