gauravlochab commited on
Commit
d7146b8
·
1 Parent(s): f0c8c23

feat: remove x-axis title annotations from combined time series graphs for cleaner presentation

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -860,17 +860,17 @@ def create_combined_time_series_graph(df):
860
  align="center"
861
  )
862
 
863
- # Add x-axis title as annotation to match y-axis annotation style
864
- fig.add_annotation(
865
- x=0.5, # Center of the x-axis
866
- y=-0.15, # Below the x-axis
867
- xref="paper",
868
- yref="paper",
869
- text="Date",
870
- showarrow=False,
871
- font=dict(size=16, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
872
- align="center"
873
- )
874
 
875
  # Update layout for legend
876
  fig.update_layout(
@@ -1105,17 +1105,17 @@ def create_combined_time_series_graph(df):
1105
  align="center"
1106
  )
1107
 
1108
- # Add x-axis title as annotation to match y-axis annotation style
1109
- simple_fig.add_annotation(
1110
- x=0.5, # Center of the x-axis
1111
- y=-0.15, # Below the x-axis
1112
- xref="paper",
1113
- yref="paper",
1114
- text="Date",
1115
- showarrow=False,
1116
- font=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
1117
- align="center"
1118
- )
1119
 
1120
  # Update legend font for fallback graph
1121
  simple_fig.update_layout(
 
860
  align="center"
861
  )
862
 
863
+ # Remove x-axis title annotation
864
+ # fig.add_annotation(
865
+ # x=0.5, # Center of the x-axis
866
+ # y=-0.15, # Below the x-axis
867
+ # xref="paper",
868
+ # yref="paper",
869
+ # text="Date",
870
+ # showarrow=False,
871
+ # font=dict(size=16, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
872
+ # align="center"
873
+ # )
874
 
875
  # Update layout for legend
876
  fig.update_layout(
 
1105
  align="center"
1106
  )
1107
 
1108
+ # Remove x-axis title annotation
1109
+ # simple_fig.add_annotation(
1110
+ # x=0.5, # Center of the x-axis
1111
+ # y=-0.15, # Below the x-axis
1112
+ # xref="paper",
1113
+ # yref="paper",
1114
+ # text="Date",
1115
+ # showarrow=False,
1116
+ # font=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
1117
+ # align="center"
1118
+ # )
1119
 
1120
  # Update legend font for fallback graph
1121
  simple_fig.update_layout(