Chart rendering Delay!

In My dash app, i make 2 treemap charts and one update button with about (7000,15) dataframe.

figure = px.treemap(df.groupby([‘col1’,col2’,‘L1’, ‘L2’,‘L3’,‘L4’]).agg({ ‘col3’:‘sum’}).reset_index(),
path=[‘col1’,‘col2’,‘L1’, ‘L2’,‘L3’,‘L4’], values=‘col3’, color=‘col2’)

This is my treemap and there is another treemap.

Here, my issue is time delay for rendering.
Is there any solution for this?
Do you have any suggestions for improvement??

Help me!!!