How to update, in the callback function, the property of a chart that is imported from another file?

Hi,

You could just load the figure at startup:

 dcc.Graph(id='map', figure=graph.fig_aus2)

and use the State of the figure to change the properties you want to change:

@app.callback(
    Output('map', 'figure'),
    Input('max_size', 'value'),
    State('map', 'figure')
)
def update_graph(value, current_figure):
    changed_figure = change(current_figure)
    return changed_figure

If you want to reduce the traffic between browser ans server, you could use the Patch() object for partial updates. Some examples of how to do that here: