Umar4321 commited on
Commit
c973454
·
verified ·
1 Parent(s): c53c249

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -10
app.py CHANGED
@@ -11,18 +11,18 @@ st.title("📊 Research Proposal Gantt Chart")
11
  st.markdown("""
12
  This Gantt chart outlines the 10-month timeline for your research project:
13
  **Critical Evaluation of ASME Section VIII Rules for Nozzle Reinforcement and Placement**
14
- Each phase is color-coded and aligned with your methodology for formal presentation.
15
  """)
16
 
17
- # Define task data
18
  tasks = [
19
- {"Phase": "Literature Review", "Start": "2025-09-01", "Finish": "2025-10-31", "Color": "SteelBlue"},
20
- {"Phase": "UG-37 Calculations", "Start": "2025-11-01", "Finish": "2025-11-30", "Color": "SlateGray"},
21
- {"Phase": "Finite Element Analysis (FEA)", "Start": "2025-12-01", "Finish": "2026-02-28", "Color": "DarkOrange"},
22
- {"Phase": "Comparative Study", "Start": "2026-03-01", "Finish": "2026-03-31", "Color": "Teal"},
23
- {"Phase": "Recommendations", "Start": "2026-04-01", "Finish": "2026-04-30", "Color": "Olive"},
24
- {"Phase": "Thesis & Journal Prep", "Start": "2026-05-01", "Finish": "2026-05-31", "Color": "Navy"},
25
- {"Phase": "Buffer Month", "Start": "2026-06-01", "Finish": "2026-06-30", "Color": "LightGray"},
26
  ]
27
 
28
  df = pd.DataFrame(tasks)
@@ -40,13 +40,20 @@ fig = px.timeline(
40
 
41
  # Format chart
42
  fig.update_layout(
43
- xaxis_title="Timeline",
44
  yaxis_title="Research Phase",
45
  title_font=dict(size=22, family="Segoe UI"),
46
  font=dict(size=14),
47
  showlegend=False,
48
  margin=dict(l=40, r=40, t=80, b=40),
49
  height=650,
 
 
 
 
 
 
 
50
  )
51
  fig.update_yaxes(autorange="reversed") # Gantt-style top-down
52
 
 
11
  st.markdown("""
12
  This Gantt chart outlines the 10-month timeline for your research project:
13
  **Critical Evaluation of ASME Section VIII Rules for Nozzle Reinforcement and Placement**
14
+ Each phase is color-coded and aligned with your methodology. The timeline is shown in relative months (Month 1 to Month 10.5).
15
  """)
16
 
17
+ # Define task data using relative months
18
  tasks = [
19
+ {"Phase": "Literature Review", "Start": 1.0, "Finish": 2.0, "Color": "SteelBlue"},
20
+ {"Phase": "UG-37 Calculations", "Start": 2.0, "Finish": 3.0, "Color": "SlateGray"},
21
+ {"Phase": "Finite Element Analysis (FEA)", "Start": 3.0, "Finish": 6.0, "Color": "DarkOrange"},
22
+ {"Phase": "Comparative Study", "Start": 6.0, "Finish": 7.0, "Color": "Teal"},
23
+ {"Phase": "Recommendations", "Start": 7.0, "Finish": 8.0, "Color": "Olive"},
24
+ {"Phase": "Thesis & Journal Prep", "Start": 8.0, "Finish": 9.0, "Color": "Navy"},
25
+ {"Phase": "Buffer Month", "Start": 10.0, "Finish": 10.5, "Color": "LightGray"},
26
  ]
27
 
28
  df = pd.DataFrame(tasks)
 
40
 
41
  # Format chart
42
  fig.update_layout(
43
+ xaxis_title="Month",
44
  yaxis_title="Research Phase",
45
  title_font=dict(size=22, family="Segoe UI"),
46
  font=dict(size=14),
47
  showlegend=False,
48
  margin=dict(l=40, r=40, t=80, b=40),
49
  height=650,
50
+ xaxis=dict(
51
+ tickmode="linear",
52
+ tick0=1,
53
+ dtick=1,
54
+ range=[0.5, 11],
55
+ title_font=dict(size=16),
56
+ ),
57
  )
58
  fig.update_yaxes(autorange="reversed") # Gantt-style top-down
59