https://github.com/douglasdrake/myheroku
Heroku app for a visualization dashboard
https://github.com/douglasdrake/myheroku
dashboard flask heroku javascript plots python
Last synced: 7 days ago
JSON representation
Heroku app for a visualization dashboard
- Host: GitHub
- URL: https://github.com/douglasdrake/myheroku
- Owner: douglasdrake
- Created: 2019-06-12T05:26:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:14:44.000Z (over 3 years ago)
- Last Synced: 2025-05-19T19:55:55.203Z (about 1 year ago)
- Topics: dashboard, flask, heroku, javascript, plots, python
- Language: JavaScript
- Homepage: https://bellybuttonbiodiversitydrake.herokuapp.com/
- Size: 147 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# myheroku
# Description
Repo for a dashboard to explore the data described in
[Belly Button Biodiversity DataSet](http://robdunnlab.com/projects/belly-button-biodiversity/)
with graphs built using Plot.ly.
# Methods
1. Flask is used for the GET/POST methods.
2. SQLAlchemy is used to connet to and query the database of samples.
3. JavaScript (D3) is used to respond to menu changes and update the contents of the dashboard.
4. Plot.ly is used to generate the plots.
# Notes:
* A unique color is assigned to each `otu_id` using the function `newMakeColorScale()` in the file `color-scheme.js`. This function interpolates 3666 values from the `hsl(hue, saturation, lightness)` color model.
This allows the colors of the different `otu_id`s to remain constant between the plots and between the samples.
* If there are no observations recorded for a sample (as in sample # 1495), the pie chart and bubble plot will be empty. This is a result of using `let` declarations instead of `var` statements in the functions in `app.js`.
* The dashboard is deployed as an [app on Heroku](https://bb-diversity-app-4e1679014ed8.herokuapp.com/)