Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 15 |
""")
|
| 16 |
|
| 17 |
-
# Define task data
|
| 18 |
tasks = [
|
| 19 |
-
{"Phase": "Literature Review", "Start":
|
| 20 |
-
{"Phase": "UG-37 Calculations", "Start":
|
| 21 |
-
{"Phase": "Finite Element Analysis (FEA)", "Start":
|
| 22 |
-
{"Phase": "Comparative Study", "Start":
|
| 23 |
-
{"Phase": "Recommendations", "Start":
|
| 24 |
-
{"Phase": "Thesis & Journal Prep", "Start":
|
| 25 |
-
{"Phase": "Buffer Month", "Start":
|
| 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="
|
| 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 |
|