Question: Create selection function Create a function called on _ selection which is tied to the heatmap with an . observe call on the heatmap's selected
Create selection function
Create a function called onselection which is tied to the heatmap with an observe call on the heatmap's selected key.
The function should only allow for one selection at a time ie no multiple cell selection
The function should change the data used in the bars plot based on the cell selected by the user.
NOTE: Be sure to account for the fact that some cell's will result in empty subset dataframes this will lead to an error. To fix this, make sure the bars plot has the value of an empty string on its xaxis B and the value of on the yaxis Mean B when the subset dataframe is an empty string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
