@@ -247,6 +247,12 @@ def tableau_states(res, states):
247247)
248248interactive_palette = pn .bind (palette , interactive_decomposition )
249249
250+ switch_histogram_boxplot = pn .widgets .RadioButtonGroup (
251+ name = "Switch histogram - boxplot" ,
252+ options = ["Stacked histogram" , "Boxplot" ],
253+ inline = False ,
254+ )
255+
250256interactive_n_bins_auto = pn .bind (n_bins_auto , interactive_decomposition )
251257selector_n_bins = pn .widgets .EditableIntSlider (
252258 name = "Number of bins" ,
@@ -257,13 +263,8 @@ def tableau_states(res, states):
257263 # bar_color="#FFFFFF", # does not work
258264 format = PrintfTickFormatter (format = "%d bins" ),
259265)
266+ conditional_selector_n_bins = pn .bind (display_n_bins , switch_histogram_boxplot )
260267
261- switch_histogram_boxplot = pn .widgets .RadioButtonGroup (
262- name = "Switch histogram - boxplot" ,
263- options = ["Stacked histogram" , "Boxplot" ],
264- inline = False ,
265- width = 400 ,
266- )
267268
268269interactive_figure = pn .bind (
269270 figure ,
@@ -313,11 +314,12 @@ def tableau_states(res, states):
313314 text_fname ,
314315 selector_output ,
315316 selector_inputs_sensitivity ,
316- si_description ,
317- interactive_significance_table ,
318317 decomposition_description ,
319318 selector_inputs_decomposition ,
320319 indicator_explained_variance ,
320+ "## Visualization" ,
321+ switch_histogram_boxplot ,
322+ conditional_selector_n_bins ,
321323 max_width = 350 ,
322324 sizing_mode = "stretch_width" ,
323325).servable (area = "sidebar" )
@@ -336,9 +338,8 @@ def tableau_states(res, states):
336338 )
337339 ),
338340 pn .Spacer (height = 50 ),
339- switch_histogram_boxplot ,
340- pn .Spacer (height = 50 ),
341- selector_n_bins ,
341+ si_description ,
342+ pn .Column (interactive_significance_table , width = 400 ),
342343 ),
343344 pn .Column (
344345 table_description ,
0 commit comments