How to correctly use @app.callback function?

This might be a helpful read for you: clickData for multiple plots