Skip to content

Commit 3388c62

Browse files
authored
Merge pull request plotly#100 from plotly/dash-opioid-epidemic
Dash opioid epidemic
2 parents b0f62fd + 2a14896 commit 3388c62

279 files changed

Lines changed: 291081 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/dash-opioid-epidemic/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn --pythonpath apps/dash-opioid-epidemic app:server
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# US opioid epidemic dataset and Dash app
2+
3+
Poison induced death data was downloaded from [CDC Wonder](dash_app_screencast.gif), using cause-of-death codes X40–X44 (unintentional), X60–X64 (suicide), X85 (homicide), or Y10–Y14 (undetermined intent).
4+
5+
[View the Dash app](https://dash-playground.plotly.host/dash-opioid-epidemic/)
6+
7+
## Getting Started
8+
9+
### Running the app locally
10+
11+
First create a virtual environment with conda or venv inside a temp folder, then activate it.
12+
13+
```
14+
virtualenv venv
15+
16+
# Windows
17+
venv\Scripts\activate
18+
# Or Linux
19+
source venv/bin/activate
20+
21+
```
22+
23+
Clone the git repo, then install the requirements with pip
24+
25+
```
26+
27+
git clone https://github.com/plotly/dash-sample-apps
28+
cd dash-sample-apps/apps/dash-opioid-epidemic
29+
pip install -r requirements.txt
30+
31+
```
32+
33+
Run the app
34+
35+
```
36+
37+
python app.py
38+
39+
```
40+
41+
![plotly-dash-screencast](assets/app_screencast.gif)
42+
43+
Dash app inspired by [this Tableau dashboard](https://www.cdc.gov/nchs/data-visualization/drug-poisoning-mortality/)

0 commit comments

Comments
 (0)