Hi
I get this result
and this is the code
@app.callback(Output('linegraph001b', 'figure'), [Input('dropdown_line_chart12', 'value')], [Input('dropdown_line_chart22', 'value')],Input('paquito','data'),prevent_initial_call=True,suppress_callback_exceptions=True)#,[Input("intermediate-value",'data'),])
def filter_heatmap(drop1,drop2,data):#
if data:
dff=pd.read_json(data,typ='frame',precise_float=True, orient='table')
dff.replace("-", np.nan, inplace=True)
dff2_=dff.copy()
#dff2_[drop1].dropna()
dff2_[drop1] = dff2_[drop1].sort_values()
dff2_ = dff2_.dropna(subset=[drop1])
dff2_ = dff2_.dropna(subset=[drop2])
#dff2_=pd.DataFrame(dff2_)
figure = px.line(dff2_,x=dff2_[drop1],y=dff2_[drop2])
figure.update_layout(transition_duration=500,template = 'plotly_dark')
return figure
else:
raise PreventUpdate
What can I do to fix this and get a correct order?