File tree Expand file tree Collapse file tree
examples/05_charts/Plotly Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,16 +99,16 @@ def __init__(self, server=None):
9999 def select_plot (self , plot_name ):
100100 self .active_plot_name = plot_name
101101
102- def apply_placement (self , plot_name ):
103- if plot_name is not None and self .active_plot_name is not None :
104- self .update_plot_figure (self .active_plot_name , plot_name )
102+ def apply_placement (self , slot_name ):
103+ if slot_name is not None and self .active_plot_name is not None :
104+ self .update_plot_figure (self .active_plot_name , slot_name )
105105 self .active_plot_name = None
106106
107- def update_plot_figure (self , plot_type , plot_destination ):
108- figure_data = PLOTS .get (plot_type )
107+ def update_plot_figure (self , plot_name , slot_name ):
108+ figure_data = PLOTS .get (plot_name )
109109 if figure_data :
110- self .ctx [plot_destination ].update (figure_data )
111- self .state [plot_destination ] = True # show the plot
110+ self .ctx [slot_name ].update (figure_data )
111+ self .state [slot_name ] = True # show the plot
112112
113113 def _build_ui (self ):
114114 with VAppLayout (self .server , full_height = True ) as self .ui :
You can’t perform that action at this time.
0 commit comments