go.scatter is not working after updating dash in python

These codes used to be working to draw until I updated dash module to latest, any idea what’s happening? thanks.

@app.callback(Output('trend-chart', 'figure'),
              [Input('tabs-history', 'value'),Input('symbol', 'value')])
def graph_update(tab,selected_dropdown_value):
    df = None
    if tab == 'tab-24-hours':
        df = getHistoricalData(selected_dropdown_value,'day')
    elif tab == 'tab-1-month':
        df = getHistoricalData(selected_dropdown_value,'month')
    elif tab == 'tab-1-year':
        df = getHistoricalData(selected_dropdown_value,'year')
    if df is not None:
        return {'data': [go.Scatter(x=df['time'],
                                    y=df['close'],
                                    mode='lines+markers')
                            ]
                }
    else:
        return
three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online