Spaces:
Build error
Build error
James McCool
commited on
Commit
·
4fa7a87
1
Parent(s):
df1d40d
Swap x-axis data in game rotation timeline plot to use Task instead of Delta
Browse files
app.py
CHANGED
|
@@ -701,8 +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 |
-
fig.data[0].y = check_rotation.Task.tolist()
|
| 706 |
# Create a color map for each unique player
|
| 707 |
player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
|
| 708 |
color_map = dict(zip(check_rotation['PLAYER_NAME'].unique(), player_colors))
|
|
|
|
| 701 |
# fig.update_yaxes(autorange="reversed")
|
| 702 |
|
| 703 |
fig.layout.xaxis.type = 'linear'
|
| 704 |
+
fig.data[0].x = check_rotation.Task.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))
|