Created
March 5, 2020 20:04
-
-
Save randyzwitch/7e4b1d00119bf51846a52b4034fe74a2 to your computer and use it in GitHub Desktop.
Dash Interval example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://github.com/omnisci/F1-demo/blob/726c56ba4e8c878abeef81b7cf680bd4d36a4bd2/f1dash/track.py#L56-L60 | |
#dcc.Interval creates an object with no display characteristics, triggering a callback every 'interval' seconds | |
#for anything listening for the id 'track-interval' | |
trackgraph = html.Div([ | |
dcc.Graph(id='track-graph', | |
config={ | |
'displayModeBar': True | |
} | |
), | |
#controls when track and telemetry updates | |
dcc.Interval( | |
id='track-interval', | |
interval=7*1000, # in milliseconds | |
n_intervals=0 | |
) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
but when I create a new page and specify dcc.Location() along with these it didn't work for me
Any solution of it ?
My issue is some how similar to this - plotly/dash#277