Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
aac38b6
1
Parent(s):
0e8a988
Update game rotation timeline plot with explicit y-axis data and axis configuration
Browse files
app.py
CHANGED
@@ -737,10 +737,12 @@ with tab5:
|
|
737 |
game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
|
738 |
|
739 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
740 |
-
fig.update_yaxes(autorange="reversed")
|
741 |
|
742 |
fig.layout.xaxis.type = 'linear'
|
743 |
fig.data[0].x = check_rotation.Start.tolist()
|
|
|
|
|
|
|
744 |
fig.add_vline(x=12, line_width=3, line_dash="dash", line_color="green")
|
745 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
746 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|
|
|
737 |
game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
|
738 |
|
739 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
|
|
740 |
|
741 |
fig.layout.xaxis.type = 'linear'
|
742 |
fig.data[0].x = check_rotation.Start.tolist()
|
743 |
+
fig.data[0].y = check_rotation.Task.tolist()
|
744 |
+
fig.update_yaxes(autorange="reversed")
|
745 |
+
|
746 |
fig.add_vline(x=12, line_width=3, line_dash="dash", line_color="green")
|
747 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
748 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|