TOPSInfosol commited on
Commit
5541bd4
·
verified ·
1 Parent(s): f891f4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -7
app.py CHANGED
@@ -186,14 +186,25 @@ def forecast_chronos_data(df_state, date_column, target_column, select_period, f
186
  xaxis_tickfont_size=14,
187
  yaxis_tickfont_size=14,
188
  showlegend=True,
189
- width=1800, # Equivalent to figsize=(30, 10)
190
- height=600,
191
  xaxis=dict(
192
- gridcolor='rgba(128, 128, 128, 0.7)',
193
- gridwidth=1.2,
194
- dtick=3, # Set tick interval to 3 months
195
- griddash='dash'
196
- ),
 
 
 
 
 
 
 
 
 
 
 
197
  yaxis=dict(
198
  gridcolor='rgba(128, 128, 128, 0.7)',
199
  gridwidth=1.2,
 
186
  xaxis_tickfont_size=14,
187
  yaxis_tickfont_size=14,
188
  showlegend=True,
189
+ width=1600, # Equivalent to figsize=(30, 10)
190
+ height=400,
191
  xaxis=dict(
192
+ title="Months",
193
+ tickfont=dict(size=14),
194
+ gridcolor='rgba(128, 128, 128, 0.7)',
195
+ gridwidth=1.2,
196
+ dtick=3,
197
+ griddash='dash',
198
+ rangeslider=dict(visible=True),
199
+ rangeselector=dict(
200
+ buttons=list([
201
+ dict(count=6, label="6m", step="month", stepmode="backward"),
202
+ dict(count=12, label="1y", step="month", stepmode="backward"),
203
+ dict(count=24, label="2y", step="month", stepmode="backward"),
204
+ dict(step="all", label="All")
205
+ ])
206
+ )
207
+ ),
208
  yaxis=dict(
209
  gridcolor='rgba(128, 128, 128, 0.7)',
210
  gridwidth=1.2,