dcc.Graph figure error

Oh, good idea. However, what would I pass into my figure? I need to pass the function in there?

Btw, I am in a dilemma here. Here is my code here when we were talking about the function of the app.callback I was using to pass into my figure for my graph since it calculates it:

#Callback for submitting everything.
@app.callback(Output('target', 'children'), Input('submit', 'n_clicks'), Input('Categories', 'value'))
def callback(n_clicks, value):
    if (n_clicks != 0):
        if os.path.exists(UPLOAD_DIRECTORY):
            for file in uploaded_files():
                dfs = pd.read_excel(file, sheet_name=value)

As you can see- Please look at the dfs = pd.read_excel(file, sheet_name=value) line.

How would I be able to take the code below it which is contingent upon the dfs and make it into a new and separate function if my sheet_name is contingent upon the input(value) which needs to be defined and passed in to read the users choice for the dropdown?