Coded by Stephanie Choi
Referenced during creation of html page templates:
- Mapbox/Leaflet-Mapbox, items in data folder (geojson, csv, topojson), and time series created by and lifted from Alex Cao
- d3 coding for infographics and table created by Kevin Zhao
- SVG images of Michigan and their subsequent interactability, tooltips, and cross-hatching were created by Alex Cao.
- paths and login and authentication behavior coded by Alex Cao.
- dashboard paths coded by Stephanie Choi.
- application.py : flask app that runs templates for opioid dashboard
opioid_dict.py
: definitions, dictionaries, etc. that format the information necessary for flask to process data into the HTML templatesrequirements.txt
: things you need to have installed to run this programtemplates/
about.html
- more information about this project
contact.html
- a page with a contact email
dashboard.html
- bootstrap layout template for dashboard with map positioned on top, then time series under the map, then a series of 3 infographics arranged in a row. under this is a table. the side navigation occupies 1 column.
howtouse.html
- a page (currently empty) with directions on how to use the dashboard. Accessible from
dashboard.html
- a page (currently empty) with directions on how to use the dashboard. Accessible from
landing.html
- a landing page with two data visualizations of EMS-related incidents and ME-related incidents in Michigan
login.html
- a login page with access to the EULA statement.
search.html
- bootstrap layout template for search page. Contains 1 interactable county/city map, radio buttons for data source, and a search bar with autocomplete.
static/
-
css/
aboutcss.css
- styles the about page elements that need to be different than the style specified in landingcss
contactuscss.css
- styles the contact us page elements that need to be different than the style specified in landingcss
landingcss.css
- styles the landing page and child pages of the landing page (contact, about)
logincss.css
- styles the login page
map.css
- formats and styles the mapbox item for
dashboard.html
- formats and styles the mapbox item for
mediaquery.css
- positioning the footer when screen width is less than 992px for
landing.html
- positioning the footer when screen width is less than 992px for
michigan.css
- styles the map and tooltips in
search.html
- styles the map and tooltips in
nondatastyle.css
- styles non-dashboard pages (
search.html
,howtouse.html
)
- styles non-dashboard pages (
print.css
- styles the print view for the dashboard. currently very primitive
style.css
- styles
dashboard.html
- styles
style.json
- a JSON-format file with the Mapbox style information for the main maps used on the dashboard.
tablecharts.css
- styles the d3 infographics (bar graphs and donut) for
dashboard.html
- styles the d3 infographics (bar graphs and donut) for
timetable.css
- styles the d3 time series (2 bar graphs with moving average) for
dashboard.html
- styles the d3 time series (2 bar graphs with moving average) for
-
data/
map_fake_history/
- contains previous versions of map_fake.csv
cities.csv
- names cities of interest and their latitude and longitudes
- used in
search.html
emsData.csv
- counts used in
landing.html
- counts used in
gz_2010_iz_050_00_5m_MI_counties.topojson
- topojson-format information
- used by
search.html
map_fake.csv
- fake data of approximately 2000 coordinates, dates, demographics
- used in
dashboard.html
meData.csv
- counts used in
landing.html
- counts used in
-
geojson/
cities/
- geoJSON-format information about cities of interest
- used by
dashboard.html
counties/
- geoJSON-format information about counties
- used by
dashboard.html
gz_2010_iz_050_00_5m_MI_counties.topojson
- topojson-format information
- used by
search.html
-
images/
- includes favicon (icon_t) and placeholders- hidta.png
- icon.png
- icon_t.png
- the current favicon
- ipc.png
- the IPC banner used on every page
- SOS.png
- SOS_icon_logo_white.png
-
js/
ageChart.js
- creates and updates the bar graphs for age representation
- function definitions are referenced in
dashboard.js
autocomplete.js
- codes the autocomplete search used in
search.html
- codes the autocomplete search used in
dashboard.js
- runs the function definitions defined in
ageChart.js
,genderChart.js
,htmlTable.js
,raceChart.js
, andtimeSeries.js
- function definition for creating infographics from csv defined here
- runs the function definitions defined in
genderChart.js
- creates and updates the gender donut
- function definitions are referenced in
dashboard.js
htmlTable.js
- creates and updates the HTML table
- function definitions are referenced in
dashboard.js
makeLandingMichSvg.js
- creates the d3 svg maps of Michigan counties and cities
- used in
landing.html
makeSearchMichSvg.js
- creates the d3 svg map of Michigan counties and cities
- used in
search.html
map.js
- creates mapbox-leaflet map used in main view
- function definitions are referenced in
dashboard.js
- Flask-created variables are present in-line in
dashboard.html
navfromsearch.js
- codes the navigation to correct dashboard page after a place name is input into the search bar
- used by
search.html
raceChart.js
- creates and updates the bar graphs for race representation
- function definitions are referenced in
dashboard.js
srcFromRadio.js
- selects and sets data source from radio buttons
- used by
search.html
timeSeries.js
- creates and updates the time time series
- function definitions are referenced in
dashboard.js
-
markers/
- svg map markers used by leaflet mapbox indashboard.html
- ambulance_icon_blues.svg
- unused
- hospital_icon_blues.svg
- unused
- morguetable_5.svg
- unused
- green_circle.svg
- ambulance_icon_blues.svg
-