prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  x-axis tick labels in Natural Disasters case study need clean up
  See:
  
  ![Screenshot from 2022-06-30 14-20-48](https://user-images.githubusercontent.com/9993/176780327-c5f2ee5d-69e8-46fe-8bb2-89e7e3843e7a.png)
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `altair/examples/natural_disasters.py`
  Content:
  ```
  1 """
  2 Natural Disasters
  3 -----------------
  4 This example shows a visualization of global deaths from natural disasters.
  5 """
  6 # category: case studies
  7 import altair as alt
  8 from vega_datasets import data
  9 
  10 source = data.disasters.url
  11 
  12 alt.Chart(source).mark_circle(
  13     opacity=0.8,
  14     stroke='black',
  15     strokeWidth=1
  16 ).encode(
  17     alt.X('Year:O', axis=alt.Axis(labelAngle=0)),
  18     alt.Y('Entity:N'),
  19     alt.Size('Deaths:Q',
  20         scale=alt.Scale(range=[0, 4000]),
  21         legend=alt.Legend(title='Annual Global Deaths')
  22     ),
  23     alt.Color('Entity:N', legend=None)
  24 ).properties(
  25     width=450,
  26     height=320
  27 ).transform_filter(
  28     alt.datum.Entity != 'All natural disasters'
  29 )
  30
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/altair/examples/natural_disasters.py b/altair/examples/natural_disasters.py
  --- a/altair/examples/natural_disasters.py
  +++ b/altair/examples/natural_disasters.py
  @@ -1,7 +1,7 @@
   """
  -Natural Disasters
  ------------------
  -This example shows a visualization of global deaths from natural disasters.
  +Global Deaths from Natural Disasters
  +------------------------------------
  +This example shows a proportional symbols visualization of deaths from natural disasters by year and type.
   """
   # category: case studies
   import altair as alt
  @@ -9,21 +9,44 @@
   
   source = data.disasters.url
   
  -alt.Chart(source).mark_circle(
  +alt.Chart(source).transform_filter(
  +    alt.datum.Entity != 'All natural disasters'
  +).mark_circle(
       opacity=0.8,
       stroke='black',
  -    strokeWidth=1
  +    strokeWidth=1,
  +    strokeOpacity=0.4
   ).encode(
  -    alt.X('Year:O', axis=alt.Axis(labelAngle=0)),
  -    alt.Y('Entity:N'),
  -    alt.Size('Deaths:Q',
  -        scale=alt.Scale(range=[0, 4000]),
  -        legend=alt.Legend(title='Annual Global Deaths')
  +    x=alt.X('Year:T', title=None, scale=alt.Scale(domain=['1899','2018'])),
  +    y=alt.Y(
  +        'Entity:N',
  +        sort=alt.EncodingSortField(field="Deaths", op="sum", order='descending'),
  +        title=None
  +    ),
  +    size=alt.Size('Deaths:Q',
  +        scale=alt.Scale(range=[0, 2500]),
  +        legend=alt.Legend(title='Deaths', clipHeight=30, format='s')
       ),
  -    alt.Color('Entity:N', legend=None)
  +    color=alt.Color('Entity:N', legend=None),
  +    tooltip=[
  +        "Entity:N", 
  +        alt.Tooltip("Year:T", format='%Y'), 
  +        alt.Tooltip("Deaths:Q", format='~s')
  +    ],
   ).properties(
       width=450,
  -    height=320
  -).transform_filter(
  -    alt.datum.Entity != 'All natural disasters'
  +    height=320,
  +    title=alt.TitleParams(
  +        text="Global Deaths from Natural Disasters (1900-2017)",
  +        subtitle="The size of the bubble represents the total death count per year, by type of disaster",
  +        anchor='start'
  +    )
  +).configure_axisY(
  +    domain=False,
  +    ticks=False,
  +    offset=10
  +).configure_axisX(
  +    grid=False,
  +).configure_view(
  +    stroke=None
   )
  
verification_info: {"golden_diff": "diff --git a/altair/examples/natural_disasters.py b/altair/examples/natural_disasters.py\n--- a/altair/examples/natural_disasters.py\n+++ b/altair/examples/natural_disasters.py\n@@ -1,7 +1,7 @@\n \"\"\"\n-Natural Disasters\n------------------\n-This example shows a visualization of global deaths from natural disasters.\n+Global Deaths from Natural Disasters\n+------------------------------------\n+This example shows a proportional symbols visualization of deaths from natural disasters by year and type.\n \"\"\"\n # category: case studies\n import altair as alt\n@@ -9,21 +9,44 @@\n \n source = data.disasters.url\n \n-alt.Chart(source).mark_circle(\n+alt.Chart(source).transform_filter(\n+    alt.datum.Entity != 'All natural disasters'\n+).mark_circle(\n     opacity=0.8,\n     stroke='black',\n-    strokeWidth=1\n+    strokeWidth=1,\n+    strokeOpacity=0.4\n ).encode(\n-    alt.X('Year:O', axis=alt.Axis(labelAngle=0)),\n-    alt.Y('Entity:N'),\n-    alt.Size('Deaths:Q',\n-        scale=alt.Scale(range=[0, 4000]),\n-        legend=alt.Legend(title='Annual Global Deaths')\n+    x=alt.X('Year:T', title=None, scale=alt.Scale(domain=['1899','2018'])),\n+    y=alt.Y(\n+        'Entity:N',\n+        sort=alt.EncodingSortField(field=\"Deaths\", op=\"sum\", order='descending'),\n+        title=None\n+    ),\n+    size=alt.Size('Deaths:Q',\n+        scale=alt.Scale(range=[0, 2500]),\n+        legend=alt.Legend(title='Deaths', clipHeight=30, format='s')\n     ),\n-    alt.Color('Entity:N', legend=None)\n+    color=alt.Color('Entity:N', legend=None),\n+    tooltip=[\n+        \"Entity:N\", \n+        alt.Tooltip(\"Year:T\", format='%Y'), \n+        alt.Tooltip(\"Deaths:Q\", format='~s')\n+    ],\n ).properties(\n     width=450,\n-    height=320\n-).transform_filter(\n-    alt.datum.Entity != 'All natural disasters'\n+    height=320,\n+    title=alt.TitleParams(\n+        text=\"Global Deaths from Natural Disasters (1900-2017)\",\n+        subtitle=\"The size of the bubble represents the total death count per year, by type of disaster\",\n+        anchor='start'\n+    )\n+).configure_axisY(\n+    domain=False,\n+    ticks=False,\n+    offset=10\n+).configure_axisX(\n+    grid=False,\n+).configure_view(\n+    stroke=None\n )\n", "issue": "x-axis tick labels in Natural Disasters case study need clean up\nSee:\r\n\r\n![Screenshot from 2022-06-30 14-20-48](https://user-images.githubusercontent.com/9993/176780327-c5f2ee5d-69e8-46fe-8bb2-89e7e3843e7a.png)\r\n\n", "before_files": [{"content": "\"\"\"\nNatural Disasters\n-----------------\nThis example shows a visualization of global deaths from natural disasters.\n\"\"\"\n# category: case studies\nimport altair as alt\nfrom vega_datasets import data\n\nsource = data.disasters.url\n\nalt.Chart(source).mark_circle(\n    opacity=0.8,\n    stroke='black',\n    strokeWidth=1\n).encode(\n    alt.X('Year:O', axis=alt.Axis(labelAngle=0)),\n    alt.Y('Entity:N'),\n    alt.Size('Deaths:Q',\n        scale=alt.Scale(range=[0, 4000]),\n        legend=alt.Legend(title='Annual Global Deaths')\n    ),\n    alt.Color('Entity:N', legend=None)\n).properties(\n    width=450,\n    height=320\n).transform_filter(\n    alt.datum.Entity != 'All natural disasters'\n)\n", "path": "altair/examples/natural_disasters.py"}], "after_files": [{"content": "\"\"\"\nGlobal Deaths from Natural Disasters\n------------------------------------\nThis example shows a proportional symbols visualization of deaths from natural disasters by year and type.\n\"\"\"\n# category: case studies\nimport altair as alt\nfrom vega_datasets import data\n\nsource = data.disasters.url\n\nalt.Chart(source).transform_filter(\n    alt.datum.Entity != 'All natural disasters'\n).mark_circle(\n    opacity=0.8,\n    stroke='black',\n    strokeWidth=1,\n    strokeOpacity=0.4\n).encode(\n    x=alt.X('Year:T', title=None, scale=alt.Scale(domain=['1899','2018'])),\n    y=alt.Y(\n        'Entity:N',\n        sort=alt.EncodingSortField(field=\"Deaths\", op=\"sum\", order='descending'),\n        title=None\n    ),\n    size=alt.Size('Deaths:Q',\n        scale=alt.Scale(range=[0, 2500]),\n        legend=alt.Legend(title='Deaths', clipHeight=30, format='s')\n    ),\n    color=alt.Color('Entity:N', legend=None),\n    tooltip=[\n        \"Entity:N\", \n        alt.Tooltip(\"Year:T\", format='%Y'), \n        alt.Tooltip(\"Deaths:Q\", format='~s')\n    ],\n).properties(\n    width=450,\n    height=320,\n    title=alt.TitleParams(\n        text=\"Global Deaths from Natural Disasters (1900-2017)\",\n        subtitle=\"The size of the bubble represents the total death count per year, by type of disaster\",\n        anchor='start'\n    )\n).configure_axisY(\n    domain=False,\n    ticks=False,\n    offset=10\n).configure_axisX(\n    grid=False,\n).configure_view(\n    stroke=None\n)\n", "path": "altair/examples/natural_disasters.py"}]}