Spaces:
Sleeping
Sleeping
Shrek29
commited on
Commit
·
c331e29
1
Parent(s):
cc4df1f
Add:Added write-up
Browse files
app.py
CHANGED
@@ -64,3 +64,26 @@ special = alt.vconcat(
|
|
64 |
|
65 |
# Display mixed chart
|
66 |
st.altair_chart(special)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
# Display mixed chart
|
66 |
st.altair_chart(special)
|
67 |
+
|
68 |
+
|
69 |
+
st.divider()
|
70 |
+
st.title("1st Plot Write-UP")
|
71 |
+
st.write("""
|
72 |
+
Boxplot of Unique Shapes
|
73 |
+
The first visualization is a boxplot that highlights the distribution of UFO sighting durations (in seconds) for various unique shapes, categorized by country.
|
74 |
+
The x-axis uses a logarithmic scale to better handle the wide range of duration values, from very short sightings to extremely long ones.
|
75 |
+
The y-axis categorizes the different shapes, providing a clear comparison across them.
|
76 |
+
The choice of color encodes the country of origin for each sighting, using a distinct palette to differentiate between countries like the US, Canada, and Australia. This design choice helps identify patterns or anomalies in specific shapes or countries. If given more time, I would enhance this visualization by adding interactivity, such as tooltips showing additional details (e.g., exact duration, date) and filters to focus on specific countries or shapes.
|
77 |
+
Bar and Line Charts: UFO Sightings by Country and Year
|
78 |
+
""")
|
79 |
+
|
80 |
+
st.title("2nd Plot Write-UP")
|
81 |
+
st.write("""
|
82 |
+
The second set of visualizations comprises a bar chart and a line chart.
|
83 |
+
The bar chart visualizes the total duration of UFO sightings per country using a logarithmic scale on the y-axis to accommodate the large variation in total durations.
|
84 |
+
Each country is represented with distinct colors for clarity.
|
85 |
+
The line chart complements this by showing the average duration of sightings over time for each country, allowing trends to emerge across decades.
|
86 |
+
The use of separate color encodings for countries ensures consistency and readability across both charts.
|
87 |
+
If I had more time, I would refine the line chart by smoothing out noisy data points and adding annotations to highlight significant spikes or trends in specific years.
|
88 |
+
Additionally, I would incorporate hover-based interactivity to display exact values and additional metadata for each data point.
|
89 |
+
""")
|