Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
4280e79
1
Parent(s):
08ad959
Manually set timeline plot data points for game rotation visualization
Browse files
app.py
CHANGED
@@ -705,6 +705,10 @@ with tab5:
|
|
705 |
fig = px.timeline(data_frame=check_rotation, x_start='Start', x_end='Finish', y='Task', range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
706 |
|
707 |
fig.layout.xaxis.type = 'linear'
|
|
|
|
|
|
|
|
|
708 |
# fig.update_yaxes(autorange="reversed")
|
709 |
|
710 |
# Create a color map for each unique player
|
|
|
705 |
fig = px.timeline(data_frame=check_rotation, x_start='Start', x_end='Finish', y='Task', range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
706 |
|
707 |
fig.layout.xaxis.type = 'linear'
|
708 |
+
fig.data[0].xstart = x_start_vals
|
709 |
+
fig.data[0].xend = x_end_vals
|
710 |
+
fig.data[0].text = text_vals
|
711 |
+
fig.data[0].y = y_vals
|
712 |
# fig.update_yaxes(autorange="reversed")
|
713 |
|
714 |
# Create a color map for each unique player
|