FantasticTony commited on
Commit
94e87ff
·
1 Parent(s): 3121baf

:memo: "Revise EV adoption narrative for clarity and impact"

Browse files

Updated the introduction and key sections to enhance readability and emphasize the transformative nature of EV adoption. Improved explanations of trends, regional insights, and national shifts in vehicle registration, making the story more engaging and informative. These changes align the narrative with a focus on sustainability and future transportation goals.

Files changed (1) hide show
  1. app.py +37 -16
app.py CHANGED
@@ -77,18 +77,19 @@ ev_data['Longitude'] = pd.to_numeric(ev_data['Longitude'], errors='coerce')
77
 
78
  # Introduction Story
79
  st.markdown("""
80
- Electric vehicles (EVs) are no longer a niche technology; they represent the future of transportation. From bustling urban hubs to quiet suburban roads, the adoption of EVs is reshaping mobility and environmental policy. This interactive story highlights **Washington State's EV trends**, places them within a **national context**, and explores the remarkable transformation of vehicle technology and registration trends.
81
 
82
- Through maps, charts, and insights, we uncover:
83
- - The **geographic distribution** of EVs in Washington State.
84
- - The rapid growth of EV models over time.
85
- - National trends in vehicle offerings and registration changes.
86
  """)
87
 
88
  # Visualization 1: Geographic Distribution
89
  st.subheader("Where Are Electric Vehicles Adopted the Most?")
90
  st.markdown("""
91
- Washington State's **King County** is at the forefront of EV adoption, with over 107,000 registered EVs. Snohomish and Pierce Counties follow, showing that urban infrastructure and policies are key drivers of EV growth.
 
 
92
  """)
93
 
94
  # Central Interactive Visualization
@@ -141,7 +142,9 @@ model_year_counts = model_year_counts.sort_values('Year')
141
  # Visualization 2: Trend of EV Models
142
  st.subheader("How Have EV Models Evolved Over Time?")
143
  st.markdown("""
144
- The post-2010 era witnessed an explosion in EV models. This surge aligns with major technological advancements, government incentives, and growing consumer awareness.
 
 
145
  """)
146
  fig_year = px.line(
147
  model_year_counts,
@@ -154,9 +157,11 @@ fig_year = px.line(
154
  st.plotly_chart(fig_year, use_container_width=True)
155
 
156
  # Visualization 3: National Trends in Vehicle Offerings
157
- st.subheader("National Light-Duty Vehicle Trends")
158
  st.markdown("""
159
- The national landscape highlights a **shift to clean energy**. Electric and hybrid vehicles have seen exponential growth, while older fuels like **diesel** and **CNG** stagnate or decline.
 
 
160
  """)
161
 
162
  contextual_melted_1 = pd.melt(contextual_df_1, id_vars=['Fuel Type'], var_name='Year', value_name='Models Offered')
@@ -174,7 +179,9 @@ st.plotly_chart(fig_contextual_1, use_container_width=True)
174
  # Visualization 4: Registration Trends
175
  st.subheader("Are EV Registrations Outpacing Traditional Vehicles?")
176
  st.markdown("""
177
- Recent years show **double-digit growth** in electric vehicle registrations, outpacing traditional fuels. Hybrid and electric vehicles dominate registration increases, reflecting shifting consumer preferences.
 
 
178
  """)
179
 
180
  contextual_melted_2 = pd.melt(contextual_df_2, id_vars=['Fuel Type'], var_name='Year', value_name='Change (%)')
@@ -189,14 +196,28 @@ fig_contextual_2 = px.line(
189
  st.plotly_chart(fig_contextual_2, use_container_width=True)
190
 
191
  # Comparative Insights
192
- st.subheader("Key Insights")
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  st.markdown("""
194
- - **King County** dominates EV adoption in Washington State.
195
- - **Post-2010 growth** in EV models highlights technological and policy-driven momentum.
196
- - Nationally, **electric vehicles lead registration growth**, while gasoline and diesel struggle to maintain their foothold.
197
- - Hybrid vehicles serve as a bridge, reflecting steady growth alongside BEVs.
 
198
 
199
- Electric vehicles are no longer a future promise—they are here, driving a revolution in transportation and sustainability.
200
  """)
201
 
202
  # Citations
 
77
 
78
  # Introduction Story
79
  st.markdown("""
80
+ Electric vehicles (EVs) are at the forefront of a transportation revolution. Once seen as a futuristic concept, EVs are now transforming how we move, reducing emissions, and pushing us toward a more sustainable world. Our project examines the growth of EV adoption, starting with **Washington State** as a case study and connecting it to broader **national trends**.
81
 
82
+ In this article, we aim to tell the story of **where EVs are being adopted**, **how the number of EV models has surged over time**, and how the **national vehicle landscape** is shifting away from traditional fuels. By examining both regional and national trends, we provide insights that highlight the significance of EVs in reshaping the transportation industry.
83
+
84
+ The data reveals not just numbers but a powerful narrative about the choices we are making today to shape a cleaner and greener tomorrow.
 
85
  """)
86
 
87
  # Visualization 1: Geographic Distribution
88
  st.subheader("Where Are Electric Vehicles Adopted the Most?")
89
  st.markdown("""
90
+ Our journey begins in **Washington State**, a leader in EV adoption. King County, home to Seattle, stands out with more than **107,000 electric vehicles**—a number far ahead of other counties. Urban density, infrastructure readiness, and local policies encouraging sustainability play a significant role here.
91
+
92
+ This interactive map below lets you explore where EVs are registered across Washington. By selecting different counties, you can see how adoption varies and uncover patterns, such as higher concentrations near metropolitan areas.
93
  """)
94
 
95
  # Central Interactive Visualization
 
142
  # Visualization 2: Trend of EV Models
143
  st.subheader("How Have EV Models Evolved Over Time?")
144
  st.markdown("""
145
+ The timeline of EV adoption tells a fascinating story. For decades, electric vehicles were rare, with little consumer interest and limited technological capabilities. However, starting in **2010**, things began to change. Policy incentives, growing environmental awareness, and advancements in battery technology triggered a surge in EV models.
146
+
147
+ This line chart below captures this growth beautifully, showing a **dramatic increase in EV model releases** after 2010. The trend peaks after 2020, reflecting the combined efforts of government policies, private investment, and growing public interest in clean energy transportation.
148
  """)
149
  fig_year = px.line(
150
  model_year_counts,
 
157
  st.plotly_chart(fig_year, use_container_width=True)
158
 
159
  # Visualization 3: National Trends in Vehicle Offerings
160
+ st.subheader("How Is the U.S. Vehicle Market Changing?")
161
  st.markdown("""
162
+ At the national level, the transformation is equally compelling. This stacked bar chart showcases the number of **light-duty vehicle models** offered by fuel type over time. Notice the rapid growth in **electric vehicles (red)** and **hybrid electric vehicles (green)**, especially in the past two decades.
163
+
164
+ Meanwhile, traditional fuels such as **diesel** and **CNG** have plateaued or declined. This trend highlights the industry's shift toward cleaner and more efficient energy sources, driven by consumer demand and regulatory pressure.
165
  """)
166
 
167
  contextual_melted_1 = pd.melt(contextual_df_1, id_vars=['Fuel Type'], var_name='Year', value_name='Models Offered')
 
179
  # Visualization 4: Registration Trends
180
  st.subheader("Are EV Registrations Outpacing Traditional Vehicles?")
181
  st.markdown("""
182
+ Finally, let’s examine the **percentage change in vehicle registrations** across fuel types. While gasoline and diesel registrations have stagnated, **electric vehicles** and **plug-in hybrids (PHEVs)** have surged, with growth rates exceeding 20% in recent years.
183
+
184
+ This line chart shows the transition clearly: traditional vehicles are gradually being replaced by cleaner alternatives. EV adoption is accelerating, and this momentum is expected to continue as technology improves and infrastructure expands.
185
  """)
186
 
187
  contextual_melted_2 = pd.melt(contextual_df_2, id_vars=['Fuel Type'], var_name='Year', value_name='Change (%)')
 
196
  st.plotly_chart(fig_contextual_2, use_container_width=True)
197
 
198
  # Comparative Insights
199
+ st.subheader("What Did We Learn?")
200
+ st.markdown("""
201
+ The rise of electric vehicles is reshaping transportation at both the state and national levels. Here’s what we learned:
202
+
203
+ 1. **King County** in Washington leads EV adoption, thanks to strong policies, urban infrastructure, and early investments.
204
+ 2. **Post-2010 growth** in EV model availability marks a clear turning point, with manufacturers and policymakers prioritizing cleaner transportation solutions.
205
+ 3. Nationally, EV registrations are growing rapidly, while traditional fuels like gasoline and diesel are showing clear signs of decline.
206
+ 4. **Hybrids and plug-in hybrids** serve as an essential bridge, easing the transition for consumers toward fully electric vehicles.
207
+
208
+ This data tells a story of transformation—one where consumer choices, technological advancements, and environmental responsibility intersect to shape the future of transportation.
209
+ """)
210
+
211
+ # Conclusion
212
+ st.subheader("Conclusion: Shaping a Sustainable Tomorrow")
213
  st.markdown("""
214
+ Electric vehicles are not just a passing trend; they represent a fundamental shift in how we approach transportation, energy consumption, and environmental sustainability. From King County’s dominance in Washington to the surging popularity of EVs across the nation, it’s clear that we are witnessing a significant transformation.
215
+
216
+ However, the work is far from over. To build on this momentum, we need continued investments in **charging infrastructure**, more **affordable EV options**, and stronger **policy incentives** to make EV adoption accessible to all.
217
+
218
+ As individuals, we can support this shift by considering EVs for our next vehicle purchase, advocating for sustainable policies, and spreading awareness about the benefits of clean transportation.
219
 
220
+ Together, we can drive the transition toward a **cleaner, greener, and more sustainable tomorrow**—one electric vehicle at a time.
221
  """)
222
 
223
  # Citations