Update app.py
Browse files
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=
|
190 |
-
height=
|
191 |
xaxis=dict(
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
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,
|