Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
8e763a8
1
Parent(s):
e7028ff
Update game rotation timeline plot to use Start column for x-axis data
Browse files
app.py
CHANGED
@@ -701,7 +701,7 @@ with tab5:
|
|
701 |
fig.update_yaxes(autorange="reversed")
|
702 |
|
703 |
fig.layout.xaxis.type = 'linear'
|
704 |
-
fig.data[0].x = check_rotation.
|
705 |
# Create a color map for each unique player
|
706 |
player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
|
707 |
color_map = dict(zip(check_rotation['PLAYER_NAME'].unique(), player_colors))
|
@@ -738,7 +738,7 @@ with tab5:
|
|
738 |
fig.update_yaxes(autorange="reversed")
|
739 |
|
740 |
fig.layout.xaxis.type = 'linear'
|
741 |
-
fig.data[0].x = check_rotation.
|
742 |
fig.add_vline(x=12, line_width=3, line_dash="dash", line_color="green")
|
743 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
744 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|
|
|
701 |
fig.update_yaxes(autorange="reversed")
|
702 |
|
703 |
fig.layout.xaxis.type = 'linear'
|
704 |
+
fig.data[0].x = check_rotation.Start.tolist()
|
705 |
# Create a color map for each unique player
|
706 |
player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
|
707 |
color_map = dict(zip(check_rotation['PLAYER_NAME'].unique(), player_colors))
|
|
|
738 |
fig.update_yaxes(autorange="reversed")
|
739 |
|
740 |
fig.layout.xaxis.type = 'linear'
|
741 |
+
fig.data[0].x = check_rotation.Start.tolist()
|
742 |
fig.add_vline(x=12, line_width=3, line_dash="dash", line_color="green")
|
743 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
744 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|