Spaces:
Sleeping
Sleeping
gauravlochab
commited on
Commit
·
9c58597
1
Parent(s):
b95e47b
fix: put the values to x axis to the end
Browse files
app.py
CHANGED
|
@@ -1403,15 +1403,15 @@ def create_combined_roi_time_series_graph(df):
|
|
| 1403 |
title=None # Remove the built-in axis title since we're using annotations
|
| 1404 |
)
|
| 1405 |
|
| 1406 |
-
# Update x-axis with better formatting and
|
| 1407 |
-
min_date =
|
| 1408 |
-
max_date =
|
| 1409 |
-
logger.info(f"ROI Graph -
|
| 1410 |
fig.update_xaxes(
|
| 1411 |
showgrid=True,
|
| 1412 |
gridwidth=1,
|
| 1413 |
gridcolor='rgba(0,0,0,0.1)',
|
| 1414 |
-
# Set
|
| 1415 |
range=[min_date, max_date],
|
| 1416 |
autorange=False, # Explicitly disable autoscale
|
| 1417 |
tickformat="%b %d", # Simplified date format without time
|
|
@@ -2111,15 +2111,15 @@ def create_combined_time_series_graph(df):
|
|
| 2111 |
title=None # Remove the built-in axis title since we're using annotations
|
| 2112 |
)
|
| 2113 |
|
| 2114 |
-
# Update x-axis with better formatting and
|
| 2115 |
-
min_date =
|
| 2116 |
-
max_date =
|
| 2117 |
-
logger.info(f"APR Graph -
|
| 2118 |
fig.update_xaxes(
|
| 2119 |
showgrid=True,
|
| 2120 |
gridwidth=1,
|
| 2121 |
gridcolor='rgba(0,0,0,0.1)',
|
| 2122 |
-
# Set
|
| 2123 |
range=[min_date, max_date],
|
| 2124 |
autorange=False, # Explicitly disable autoscale
|
| 2125 |
tickformat="%b %d", # Simplified date format without time
|
|
|
|
| 1403 |
title=None # Remove the built-in axis title since we're using annotations
|
| 1404 |
)
|
| 1405 |
|
| 1406 |
+
# Update x-axis with better formatting and hardcoded date range (June 6 to June 17)
|
| 1407 |
+
min_date = datetime(2025, 6, 6) # Hardcoded start date: June 6, 2025
|
| 1408 |
+
max_date = datetime(2025, 6, 17) # Hardcoded end date: June 17, 2025
|
| 1409 |
+
logger.info(f"ROI Graph - Hardcoded date range: min_date = {min_date}, max_date = {max_date}")
|
| 1410 |
fig.update_xaxes(
|
| 1411 |
showgrid=True,
|
| 1412 |
gridwidth=1,
|
| 1413 |
gridcolor='rgba(0,0,0,0.1)',
|
| 1414 |
+
# Set hardcoded range from June 6 to June 17, 2025
|
| 1415 |
range=[min_date, max_date],
|
| 1416 |
autorange=False, # Explicitly disable autoscale
|
| 1417 |
tickformat="%b %d", # Simplified date format without time
|
|
|
|
| 2111 |
title=None # Remove the built-in axis title since we're using annotations
|
| 2112 |
)
|
| 2113 |
|
| 2114 |
+
# Update x-axis with better formatting and hardcoded date range (June 6 to June 17)
|
| 2115 |
+
min_date = datetime(2025, 6, 6) # Hardcoded start date: June 6, 2025
|
| 2116 |
+
max_date = datetime(2025, 6, 17) # Hardcoded end date: June 17, 2025
|
| 2117 |
+
logger.info(f"APR Graph - Hardcoded date range: min_date = {min_date}, max_date = {max_date}")
|
| 2118 |
fig.update_xaxes(
|
| 2119 |
showgrid=True,
|
| 2120 |
gridwidth=1,
|
| 2121 |
gridcolor='rgba(0,0,0,0.1)',
|
| 2122 |
+
# Set hardcoded range from June 6 to June 17, 2025
|
| 2123 |
range=[min_date, max_date],
|
| 2124 |
autorange=False, # Explicitly disable autoscale
|
| 2125 |
tickformat="%b %d", # Simplified date format without time
|