Hello BSen. Welcome to the Dash Community! To do what you’re wanting to do here you would likely want to use to use dcc.State in your callback along these lines.
@app.callback(Output('graph1', 'figure'),
[Input('graph2', 'selectedData')],
[State('graph1', 'figure')])
def update_graph1(selected_data, figure):
figure['layout'] = [whatever you want to change]
return figure
However if your graphs are plotting a lot of data this will be costly in terms of performance. I would recommend looking into this post. Especially this response to help with that.
Best of luck to you BSen!