# Dash drop down not refreshing graph

**URL:** <https://community.plotly.com/t/dash-drop-down-not-refreshing-graph/36898>\
**Category:** Dash Python\
**Created:** [March 30, 2020, 6:23am UTC](https://community.plotly.com/t/dash-drop-down-not-refreshing-graph/36898 "2020-03-30T06:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krisvija](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@krisvija](https://community.plotly.com/u/krisvija)\
**Post date:** [March 30, 2020, 6:23am UTC](https://community.plotly.com/t/dash-drop-down-not-refreshing-graph/36898/1 "2020-03-30T06:23:43Z")

</div>

I am trying to build a bar chart using dash plotly and while the dropdown is getting selected, it is unable to refresh the page with the selected value from dropdown. I am new to Dash. Any help will be appreciated.The graph is ok with the defult value being selected (that is "FII’ in this case), however the moment I select different value ( I have FII,DII,Pro,Total) values in Client\_Type.

```auto
 df = df1[df1['Month'].isin([2,3])]
    app = dash.Dash()
    df = df1[df1['Month'].isin([2,3])]
    app = dash.Dash()
    party_data = []
    for client in df['Client_Type'].unique():
         party_data.append({'label': client, 'value': 'Client_Type'})

   app.layout = html.Div([
   dcc.Graph(id='graph'),
   dcc.Dropdown(id='client-picker',options=party_data,value= 'FII' )

```

])

```auto
  @app.callback(Output('graph', 'figure'),
          [Input('client-picker', 'value')])
def update_figure(abc):
df1 = df[df.Client_Type == abc]
print(df1.head())
date1 = df1['Date']
Fut_Index_Long1 = df1['Fut_Index_Long']

return {
    'data': [go.Bar(x=date1, y=Fut_Index_Long1)]
}

   if __name__ == ' __main__':
app.run_server(debug=True)

```

---

<div class="post-metadata">

**Author:** ![michaelfboxer](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@michaelfboxer](https://community.plotly.com/u/michaelfboxer)\
**Post date:** [March 30, 2020, 12:19pm UTC](https://community.plotly.com/t/dash-drop-down-not-refreshing-graph/36898/2 "2020-03-30T12:19:39Z")

</div>

try

```auto
return go.Figure(data=[go.Bar(x=date1, y=Fut_Index_Long1)])

```

---

<div class="post-metadata">

**Author:** ![krisvija](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@krisvija](https://community.plotly.com/u/krisvija)\
**Post date:** [April 3, 2020, 11:09am UTC](https://community.plotly.com/t/dash-drop-down-not-refreshing-graph/36898/3 "2020-04-03T11:09:19Z")

</div>

Its fixed thanks. the problem was with passing wring argument.
