Setting up graphs for dynamically generated datatable id

I have a multi dropdown that will create a datatable for each item. I name the datatable id based on the name of the dropdown so something like datatable-apple, datatable-orange.

I also want to create graphs based on the data in the datatable. The problem I have is that the datatables doesnt have a static id so I can’t create a call back like this:

    Output('table-paging-with-graph-container', "children"),
    [Input('table-paging-with-graph', "data")])
def update_graph(rows):

How to create graphs based on dynamic datatable id?

There isn’t a great way in Dash to use dynamic IDs. All the ids must exist at page launch.