SHELLAPANDIANGANHUNGING commited on
Commit
a9b356a
·
verified ·
1 Parent(s): 3678a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -1933,15 +1933,29 @@ if not df_category.empty:
1933
 
1934
  # Layout
1935
  fig.update_layout(
1936
- # title=dict(text="<b>Issue Category Trend vs Frequency (Non-Positive)</b>", x=0.5, y=0.95),
1937
  xaxis=dict(
1938
- title="Category",
1939
  tickangle=45,
1940
  showgrid=True,
1941
  gridcolor="#e0e0e0",
1942
  gridwidth=1,
1943
  tickfont=dict(size=10, color="#003DA5")
1944
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1945
  yaxis=dict(
1946
  title="Trend Slope",
1947
  showgrid=True,
@@ -1969,7 +1983,6 @@ if not df_category.empty:
1969
  fig.add_annotation(
1970
  xref="paper", yref="paper",
1971
  x=0.5, y=0.05,
1972
- text="",
1973
  showarrow=False,
1974
  font=dict(size=12, color="#003DA5"),
1975
  align="center"
 
1933
 
1934
  # Layout
1935
  fig.update_layout(
 
1936
  xaxis=dict(
1937
+ title=None, # matikan default title
1938
  tickangle=45,
1939
  showgrid=True,
1940
  gridcolor="#e0e0e0",
1941
  gridwidth=1,
1942
  tickfont=dict(size=10, color="#003DA5")
1943
  ),
1944
+ annotations=[
1945
+ dict(
1946
+ x=0.5,
1947
+ y=-0.25,
1948
+ xref="paper",
1949
+ yref="paper",
1950
+ text="<b>Category</b>",
1951
+ showarrow=False,
1952
+ font=dict(size=12, color="#003DA5"),
1953
+ textangle=135
1954
+ )
1955
+ ],
1956
+ margin=dict(b=150)
1957
+ )
1958
+
1959
  yaxis=dict(
1960
  title="Trend Slope",
1961
  showgrid=True,
 
1983
  fig.add_annotation(
1984
  xref="paper", yref="paper",
1985
  x=0.5, y=0.05,
 
1986
  showarrow=False,
1987
  font=dict(size=12, color="#003DA5"),
1988
  align="center"