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).
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