my code works final locally but I keep getting timed out when I try to upload this data to Heroku I figure it is because of how big the csv file and all the date it has to read. do y’all have an idea how to fix this issue?
import dash
import plotly.express as px
import dash_html_components as html
import dash_core_components as dcc
import pandas as pd
data = pd.read_csv(‘data45.csv’)
fig = px.scatter(data, x=‘COVID Cases’, y=“Workplace Travel”,
animation_frame=‘Date’, animation_group=‘FIPS’, symbol=‘Masks’,
size=‘Population’, color=‘State’, hover_name=‘County’,
range_x=[1, 200000], range_y=[-90, 50], log_x=True)
fig.update_layout(template=‘plotly_white’)
fig.update_layout(title=‘COVID cases and Workplace Travel by County in US’)
app = dash.Dash()
server = app.server
app.layout = html.Div(children=[
html.Div(“Covid-19”,style={“text-align”: “center”, “font-size”: “40px”, “border-bottom-style”:“solid”,
“width”:“100%”,}),
html.Div(dcc.Graph(id=‘map’,figure=fig))
])
if name == ‘main’:
app.run_server()