aicodingfun commited on
Commit
faa2ab0
·
verified ·
1 Parent(s): 945aedc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,7 +77,7 @@ def plot_interest_over_time(df: pd.DataFrame, title: str):
77
  """使用 Plotly 繪製時間趨勢圖。"""
78
  fig = px.line(df, x=df.index, y=df.columns, title=title, labels={'value': '相對熱度', 'date': '日期', 'variable': '關鍵字'})
79
  fig.update_layout(
80
- template=PLOTLY_TEMPLATE,
81
  paper_bgcolor='rgba(0,0,0,0)',
82
  plot_bgcolor='rgba(0,0,0,0.2)',
83
  legend_title_text=''
@@ -88,7 +88,7 @@ def plot_interest_by_region(df: pd.DataFrame, title: str):
88
  """使用 Plotly 繪製區域熱度長條圖。"""
89
  fig = px.bar(df, x=df.index, y=df.columns[0], title=title, labels={'y': '相對熱度', 'index': '國家/地區'})
90
  fig.update_layout(
91
- template=PLOTLY_TEMPLATE,
92
  paper_bgcolor='rgba(0,0,0,0)',
93
  plot_bgcolor='rgba(0,0,0,0.2)'
94
  )
 
77
  """使用 Plotly 繪製時間趨勢圖。"""
78
  fig = px.line(df, x=df.index, y=df.columns, title=title, labels={'value': '相對熱度', 'date': '日期', 'variable': '關鍵字'})
79
  fig.update_layout(
80
+ # template=PLOTLY_TEMPLATE,
81
  paper_bgcolor='rgba(0,0,0,0)',
82
  plot_bgcolor='rgba(0,0,0,0.2)',
83
  legend_title_text=''
 
88
  """使用 Plotly 繪製區域熱度長條圖。"""
89
  fig = px.bar(df, x=df.index, y=df.columns[0], title=title, labels={'y': '相對熱度', 'index': '國家/地區'})
90
  fig.update_layout(
91
+ # template=PLOTLY_TEMPLATE,
92
  paper_bgcolor='rgba(0,0,0,0)',
93
  plot_bgcolor='rgba(0,0,0,0.2)'
94
  )