Spaces:
Sleeping
Sleeping
Update pages/1_Player_Stats.py
Browse files- pages/1_Player_Stats.py +3 -2
pages/1_Player_Stats.py
CHANGED
|
@@ -63,8 +63,9 @@ def plot_batting_stats(player_data):
|
|
| 63 |
fig_fours.update_traces(textposition='auto', hovertemplate='%{x}<br>Fours: %{y}')
|
| 64 |
st.plotly_chart(fig_fours, key="batting_fours")
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
|
|
|
| 68 |
fig_sr.update_traces(textposition='top center', hovertemplate='%{x}<br>SR: %{y}')
|
| 69 |
st.plotly_chart(fig_sr, key="batting_strike_rate")
|
| 70 |
|
|
|
|
| 63 |
fig_fours.update_traces(textposition='auto', hovertemplate='%{x}<br>Fours: %{y}')
|
| 64 |
st.plotly_chart(fig_fours, key="batting_fours")
|
| 65 |
|
| 66 |
+
# Strike Rate
|
| 67 |
+
fig_sr = px.line(df_batting, x='Format', y='Strike Rate', title=f"⚡ {player_data['Player']} - Batting Strike Rate 🎯",
|
| 68 |
+
markers=True, text=df_batting['Strike Rate'].round(2), hover_data=['Strike Rate'])
|
| 69 |
fig_sr.update_traces(textposition='top center', hovertemplate='%{x}<br>SR: %{y}')
|
| 70 |
st.plotly_chart(fig_sr, key="batting_strike_rate")
|
| 71 |
|