# How to force dcc.Graph to resize?

**URL:** <https://community.plotly.com/t/how-to-force-dcc-graph-to-resize/14852>\
**Category:** Dash Python\
**Created:** [October 23, 2018, 9:53am UTC](https://community.plotly.com/t/how-to-force-dcc-graph-to-resize/14852 "2018-10-23T09:53:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Gertoolz](https://avatars.discourse-cdn.com/v4/letter/g/3ab097/32.png) [@Gertoolz](https://community.plotly.com/u/Gertoolz)\
**Post date:** [October 23, 2018, 3:31pm UTC](https://community.plotly.com/t/how-to-force-dcc-graph-to-resize/14852/2 "2018-10-23T15:31:17Z")

</div>

You can try to set height at the layout of the figure that you will insert into the graph.

…  
`@APP.callback(Output('graph', 'figure')`  
…

```
LAYOUT = {'height': <DESIRED>,
          'plot_bgcolor': 'white',
          'paper_bgcolor': 'white'}

figure['layout'].update(LAYOUT)`
```

---

_[View the full topic](https://community.plotly.com/t/how-to-force-dcc-graph-to-resize/14852)._
