@Bilal wrote:
Our Aim
We’re creating a time series plot in a Django app using dash/plotly. The data being plotted is read from a pandas dataframe which is first pre-processed written to a file, and then sent to the next page via POST request for the interactive dashboard. On updating the dataframe the new plot should be plotted on the dashboard.
Problem
Even though the data is changed the dashboard doesn’t updates. It still shows the plot for the previous dataframe saved in the file. Until or unless the django server is restarted it doesn’t updates.
dcc.interval()
doesn’t do the trick, it also requires the server to be restarted even though you can see the dash app reply in the console log plus it removes the zoom in capability for a graph since, it refreshes the plot. The Django version in use is 2.2.9Anyone who ever came across this? How can this be done?
Posts: 2
Participants: 2