Sliders for left and right plots-subplot

Hi all-

I’ve trying to integrate two sliders, one to control plot - subplot left and another to control plot - subplot right on a time-series without success. I’ve coded only one slider to see how it would look, but not working; can someone point out what i may be doing wrong? My code below:


trace1 = go.Scatter(x=df1.index, y=df1['Adj Close'])
trace2 = go.Scatter(x=df2.index, y=df2['Adj Close'])
trace3 = go.Bar(x=df1.index, y=df1['Growth'])
trace4 = go.Bar(x=df2.index, y=df2['Growth'])

layout = dict(
 #title='Time Series with Rangeslider',
        visible = True


fig = tls.make_subplots(rows=2, cols=2, subplot_titles=('Plot 1', 'Plot 2',
                                                      'Plot 3', 'Plot 4'))

fig.append_trace(trace1, 1, 1)
fig.append_trace(trace2, 1, 2)
fig.append_trace(trace3, 2, 1)
fig.append_trace(trace4, 2, 2)

fig['layout'].update(height=800, width=1250, title='Multiple Subplots' +
                                              ' with Titles')