James McCool commited on
Commit
b0051d3
·
1 Parent(s): 2582b8c

Restore y-axis auto-reversal and update timeline x-axis data to use delta column

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -703,9 +703,9 @@ with tab5:
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.Start.tolist()
707
  fig.data[0].y = check_rotation.Task.tolist()
708
- # fig.update_yaxes(autorange="reversed")
709
 
710
  # Create a color map for each unique player
711
  player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
 
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.tolist()
707
  fig.data[0].y = check_rotation.Task.tolist()
708
+ fig.update_yaxes(autorange="reversed")
709
 
710
  # Create a color map for each unique player
711
  player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]