Coder Social home page Coder Social logo

vmueller13 / belly-button-diversity-dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 198 KB

Utilize JSON, HTML, CSS and JavaScript to create a dashboard based off of the belly button diversity dataset from the NC State, Dunn Lab.

HTML 25.49% JavaScript 67.06% CSS 7.45%
dashboard html-css-javascript json

belly-button-diversity-dashboard's Introduction

Belly Button Diversity

My static site is deployed at: https://vmueller13.github.io/belly-button-challenge/

Project Overview

This project explored the Belly Button Diversity dataset found at http://robdunnlab.com/projects/belly-button-biodiversity/. This dataset catalogs the microbes that colonize human navels. Furthermore, the dataset reveals that a micobial species, also called operational taxonomic units, or OTUs, were present in more that 70% of people while the rest species were relatively rare. My dashboard visualizations display the top ten OTUs for each test subject as well as the OTU IDs versus the Sample Values. I was able to add the cool background picture from https://img.freepik.com! I added in my own styles.css file into the index file as a new stylesheet.

Processes and Technologies

To create this dashboard, I first loaded in the URL of the JSON file using d3.json() and logged the data onto the console. Next, I created four different functions: init, createCharts, buildMetadata, and optionChanged. Each of these functions were called in the index file, so when the functions were correct, the dashboard was able to update.

function init() This is the first function in the app.js file because it will initialize the dashboard at start up.

function createCharts(sample) This function first sets up the selectedSampleData so that the top 10 OTUs can be called for each test subject. Once this data has been called, the bar chart and the bubble chart are created and plotted using Plotly.newPlot.

Bubble Chart

function buildMetadata(sample) This function uses d3.json to pull in the data in an array and set the first value always at the first index from the array, this way the dashboard will never be empty and there will always be something displayed.

function optionChanged This is the final function in the project that updates the dashboard when a Test Subject ID is changed. optionChanged and Bar Chart

Challenges

My biggest challenge in completing this project was to have the bar chart and the bubble chart show up on the dashboard. After talkign with TA, Taylor Grafft, and fellow student Kimberly Reitema, I was able to figure out that the names of the functions were already set up in the index.html file and that I needed to name the functions correctly in order for the visualizations to display correctly.

belly-button-diversity-dashboard's People

Contributors

vmueller13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.