# Creating multiple graphs that updates on interval

**URL:** <https://community.plotly.com/t/creating-multiple-graphs-that-updates-on-interval/7041>\
**Category:** Dash Python\
**Created:** [November 28, 2017, 12:18am UTC](https://community.plotly.com/t/creating-multiple-graphs-that-updates-on-interval/7041 "2017-11-28T00:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamite](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dynamite](https://community.plotly.com/u/dynamite)\
**Post date:** [November 28, 2017, 12:18am UTC](https://community.plotly.com/t/creating-multiple-graphs-that-updates-on-interval/7041/1 "2017-11-28T00:18:38Z")

</div>

Hi,

I have multiple graphs in dash that updates on an interval. When I have one graph it seems to update fine, but when I have multiple the graphs don’t update and doesnt even load for the first time.

Am I supposed to use one interval for all of them or a different one?

```
    dcc.Graph(id='example-graph1', style={'height': "25%"}),
    dcc.Graph(id='example-graph2', style={'height': "25%"}),
    dcc.Graph(id='example-graph3', style={'height': "25%"}),
    dcc.Graph(id='example-graph4', style={'height': "25%"}),
    dcc.Interval(
        id='interval-component1',
        interval=1 * 1000 # in milliseconds
    ),
    dcc.Interval(
        id='interval-component2',
        interval=1 * 1000 # in milliseconds
    ),
    dcc.Interval(
        id='interval-component3',
        interval=1 * 1000 # in milliseconds
    ),
    dcc.Interval(
        id='interval-component4',
        interval=1 * 1000 # in milliseconds
    )
```

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [November 28, 2017, 2:44am UTC](https://community.plotly.com/t/creating-multiple-graphs-that-updates-on-interval/7041/2 "2017-11-28T02:44:16Z")

</div>

you can use a single interval component to update each graph through a separate callback. you only need to use separate interval components if you want the components to update at different intervals.
