# COVID19 in California: data structuring and visualizations

**URL:** <https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158>\
**Category:** Staff Picks\
**Tags:** biological-sciences, data-science, medical-sciences, curated-data, graphics-and-visualization, staff-pick, living-systems\
**Created:** [December 8, 2020, 2:27am UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158 "2020-12-08T02:27:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammadb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mohammadb/32/14729_2.png) [@mohammadb](https://community.wolfram.com/u/mohammadb)\
**Post date:** [December 8, 2020, 2:27am UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/1 "2020-12-08T02:27:53Z")

</div>

_MODERATOR NOTE: coronavirus resources & updates:_ [⭐ [COVID] Computational Research HUB For Novel Coronavirus: Data, Code, Visualizations, Notebooks - Staff Picks - WOLFRAM COMMUNITY](https://wolfr.am/coronavirus)

* * *

 ![ICU.png](https://global.discourse-cdn.com/wolfram/original/3X/f/9/f9be44b036df1883d0a09617fcdf4d420e088ab7.png)

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/0c634b5e-ebba-47e3-88ca-56145af3c908)

---

<div class="post-metadata">

**Author:** ![tangentvectors](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tangentvectors/32/9065_2.png) [@tangentvectors](https://community.wolfram.com/u/tangentvectors)\
**Post date:** [December 8, 2020, 3:42am UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/2 "2020-12-08T03:42:57Z")

</div>

Hi Mads! I see you’re just a short jump up the road in Los Angeles. We are lucky to have such rich sources of data here at the State, County, and Municipal levels. One way to help residents understand it is in terms of how fast it’s affecting their population. Here’s an example with death rates, but I think you could adapt the idea to infection rates:

 ![Covid-19-CAperCapitadeathrates.jpg](https://global.discourse-cdn.com/wolfram/original/2X/2/2d71c938def5d5b7ca18aaa5d97a42a677a82f4a.jpeg)

Another approach that seems work are charts of actual data with modeled projections - one portraying the current trend and another with a very optimistic trend:

 ![Covid-19-CAcumulativedeaths.jpg](https://global.discourse-cdn.com/wolfram/original/2X/b/b0444530e5a5321761ed7df185c9cefa25cceb0c.jpeg)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [December 8, 2020, 3:13pm UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/3 "2020-12-08T15:13:48Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial column _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and [Your Profile](http://community.wolfram.com/web/mohammadb) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![dckubler](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dckubler](https://community.wolfram.com/u/dckubler)\
**Post date:** [December 31, 2020, 5:15pm UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/4 "2020-12-31T17:15:18Z")

</div>

That’s a nice source but 56 charts are overwhelming. I wanted to see one or a few counties individually. Digging deeper I saw the counties are Entities so my question is how allow a county to be selected as a user option, text name or otherwise.

---

<div class="post-metadata">

**Author:** ![tangentvectors](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tangentvectors/32/9065_2.png) [@tangentvectors](https://community.wolfram.com/u/tangentvectors)\
**Post date:** [December 31, 2020, 5:39pm UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/5 "2020-12-31T17:39:13Z")

</div>

Yes, if your needs are varying counties on an almost daily basis then building a user interface is warranted. Otherwise if you are interested in more or less the same counties every couple of weeks then batch output like this works:

 ![Covid-19-CAselectedcountiescumulativedeaths.jpg](https://global.discourse-cdn.com/wolfram/original/3X/f/b/fb64ee8a138b1f00c925119fcb58bcf03decdc1e.jpeg)

---

<div class="post-metadata">

**Author:** ![dckubler](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dckubler](https://community.wolfram.com/u/dckubler)\
**Post date:** [February 8, 2021, 9:59pm UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/6 "2021-02-08T21:59:26Z")

</div>

I used the functions to retrieve data for my county. Everything worked fine until the recent surge. On a plot of deaths the latest data was not shown but the plot shading was extended from the last point at a constant level. With help from Wolfram support I learned one had to add **,PlotRange → Full** option to **DateListPlot**. That fixed the problem.

 ![newPlot.png](https://global.discourse-cdn.com/wolfram/original/3X/0/2/0259650f046483a0a82250918a539451d20ae860.png)  
 ![oldPlott.png](https://global.discourse-cdn.com/wolfram/original/2X/7/763d4371fe83ead864e6fa8fd87ed3a163ea024c.png)

---

<div class="post-metadata">

**Author:** ![mohammadb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mohammadb/32/14729_2.png) [@mohammadb](https://community.wolfram.com/u/mohammadb)\
**Post date:** [February 8, 2021, 10:24pm UTC](https://community.wolfram.com/t/covid19-in-california-data-structuring-and-visualizations/17158/7 "2021-02-08T22:24:31Z")

</div>

You can get the data directly by using this resource function: [https://resources.wolframcloud.com/FunctionRepository/resources/CaliforniaCOVID19Data/](https://resources.wolframcloud.com/FunctionRepository/resources/CaliforniaCOVID19Data/)  
For example:

```
ResourceFunction["CaliforniaCOVID19Data"]["Cases"]

```
