Spaces:
Build error
Build error
James McCool
commited on
Commit
·
1d006a5
1
Parent(s):
a755f01
Enhance game rotation timeline plot with task labels and delta-based x-axis
Browse files
app.py
CHANGED
|
@@ -700,9 +700,10 @@ with tab5:
|
|
| 700 |
game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
|
| 701 |
game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
|
| 702 |
|
| 703 |
-
fig = px.timeline(data_frame=check_rotation, x_start='Start', x_end='Finish', y='Resource', range_x=[0,check_rotation["Finish"].max()])
|
| 704 |
|
| 705 |
fig.layout.xaxis.type = 'linear'
|
|
|
|
| 706 |
# fig.update_yaxes(autorange="reversed")
|
| 707 |
|
| 708 |
# Create a color map for each unique player
|
|
|
|
| 700 |
game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
|
| 701 |
game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
|
| 702 |
|
| 703 |
+
fig = px.timeline(data_frame=check_rotation, x_start='Start', x_end='Finish', y='Resource', range_x=[0,check_rotation["Finish"].max()], text='Task')
|
| 704 |
|
| 705 |
fig.layout.xaxis.type = 'linear'
|
| 706 |
+
fig.data[0].x = check_rotation['delta']
|
| 707 |
# fig.update_yaxes(autorange="reversed")
|
| 708 |
|
| 709 |
# Create a color map for each unique player
|