freud-sensei commited on
Commit
dd20d76
·
verified ·
1 Parent(s): 9ef57b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -23,8 +23,7 @@ df = result_team[team]
23
  fig = px.bar(df, x="경기수", text="경기수", title=f"{team}의 방송사별 중계 횟수 (총 {df['경기수'].sum()}회 중계)")
24
  fig.update_xaxes(range=[0, 55])
25
  fig.update_traces(textposition='outside')
26
- fig.update_layout(yaxis={'categoryorder': 'total ascending'}, yaxis_title="방송사")
27
- fig.update_layout({'dragmode': False,'editable': False})
28
  st.plotly_chart(fig, use_container_width=True)
29
 
30
  bc_names = {"SPO": "SPOTV 및 SPOTV-2", "MS-T": "MBC Sports+", "KN-T": "KBS N Sports", "SS-T": "SBS Sports",
@@ -53,6 +52,5 @@ sr = result_bc[bc_code]
53
  fig = px.bar(sr, y="팀", text="팀", title=f"{bc}의 팀별 중계 횟수 (총 {int(sr.sum())}회 중계)")
54
  fig.update_yaxes(range=[0, max_y])
55
  fig.update_traces(textposition='outside')
56
- fig.update_layout(xaxis_title="팀", yaxis_title="경기수")
57
- fig.update_layout({'dragmode': False,'editable': False})
58
  st.plotly_chart(fig, use_container_width=True)
 
23
  fig = px.bar(df, x="경기수", text="경기수", title=f"{team}의 방송사별 중계 횟수 (총 {df['경기수'].sum()}회 중계)")
24
  fig.update_xaxes(range=[0, 55])
25
  fig.update_traces(textposition='outside')
26
+ fig.update_layout(yaxis={'categoryorder': 'total ascending'}, yaxis_title="방송사", dragmode=False)
 
27
  st.plotly_chart(fig, use_container_width=True)
28
 
29
  bc_names = {"SPO": "SPOTV 및 SPOTV-2", "MS-T": "MBC Sports+", "KN-T": "KBS N Sports", "SS-T": "SBS Sports",
 
52
  fig = px.bar(sr, y="팀", text="팀", title=f"{bc}의 팀별 중계 횟수 (총 {int(sr.sum())}회 중계)")
53
  fig.update_yaxes(range=[0, max_y])
54
  fig.update_traces(textposition='outside')
55
+ fig.update_layout(xaxis_title="팀", yaxis_title="경기수", dragmode=False)
 
56
  st.plotly_chart(fig, use_container_width=True)