Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.14 KB

File metadata and controls

40 lines (26 loc) · 1.14 KB

US opioid epidemic dataset and Dash app

plotly-dash-screencast

Poison induced death data was downloaded from CDC Wonder, using cause-of-death codes X40–X44 (unintentional), X60–X64 (suicide), X85 (homicide), or Y10–Y14 (undetermined intent).

View the Dash app

Getting Started

Running the app locally

We suggest you to create a separate virtual environment running Python 3 for this app, and install all of the required dependencies there. Run in Terminal/Command Prompt:

git clone https://github.com/plotly/dash-sample-apps
cd dash-sample-apps/apps/dash-opioid-epidemic
python3 -m virtualenv venv

In UNIX system:

source venv/bin/activate

In Windows:

venv\Scripts\activate

To install all of the required packages to this environment, simply run:

pip install -r requirements.txt

and all of the required pip packages, will be installed, and the app will be able to run.

Dash app inspired by this Tableau dashboard