Coder Social home page Coder Social logo

plotly_deploy's Introduction

plotly_deploy

Table of Contents

Project Overview
Resources
Objectives
Summary
Challenge Overview
Challenge Objectives
Challenge Summary
Live Demo

Project Overview

In this module, we will use Plotly.js, a JavaScript data visualization library, to create an interactive data visualization for the web. The completed work will be displayed in a portfolio we created.

Resources

Objectives

By the end of this module, we will be able to:

  • Create basic plots with Plotly, including bar charts, line charts, and pie charts.
  • Use D3.json() to fetch external data, such as CSV files and web APIs.
  • Parse data in JSON format.
  • Use functional programming in JavaScript to manipulate data.
  • Use JavaScript’s Math library to manipulate numbers.
  • Use event handlers in JavaScript to add interactivity to a data visualization.
  • How to use interactivity to enhance your visualizations.
  • Deploy an interactive chart to GitHub Pages.

Summary

This is a simple line chart with three data points. The gridlines are supplied automatically.When we place our mouse over the top right corner of the chart, we’ll see a menu appear. It has options such as zoom, zoom out, and pan. This menu also comes with the Plotly library and will be available for every visualization we create.










A line chart isn’t suitable for all data visualizations, however. For example, a line chart will generally do a better job of displaying trends, but a bar chart may be more appropriate to visualize how data is distributed across a number of categories.




A pie chart may be helpful in providing an instant view of the data.






We deployed a our project to GitHub Pages. We have previously used GitHub to make our code available to the public and to work on projects collaboratively. GitHub offers a free service called GitHub Pages to deploy projects like ours, to run code on a GitHub server to make it viewable to the public. Without a server, anyone who wants to view our dashboard would need to download the project files and run a local server, such as Python’s HTTP server. Behind the scenes, GitHub Pages runs a server app for our project, much like Python’s HTTP server. However, whereas the local Python server makes the dashboard available only for the user of the specific computer on which it is run, GitHub Pages makes it available to anyone with an internet connection and a web browser.

Challenge Overview

In this challenge, we have a partially completed dashboard, but need to finish it. We have a completed panel for demographic information and now need to visualize the bacterial data for each volunteer. Specifically, the volunteers should be able to identify the top 10 bacterial species in their belly buttons. That way, if Improbable Beef identifies a species as a candidate to manufacture synthetic beef, our volunteers will be able to identify whether that species is found in quantity in their navel.

Challenge Objectives

The goals of this challenge are for us to:

  • Create a bar chart of the top ten bacterial species in a volunteer’s navel. Use JavaScript to select only the most populous species.
  • Create a bubble chart to visualize the relative frequency of all the bacterial species found in a volunteer’s navel.
  • Complete the demographic information panel, if you have not done so.

Challenge Summary

Instructions

Continue working with the samples.json dataset, and complete the following tasks:

When an individual’s ID is selected, the top 10 bacterial species (OTUs) should be visualized with a bar chart. Create a horizontal bar chart to display the top 10 OTUs found in that individual.

  • Use sample_values as the values for the bar chart.
  • Use otu_ids as the labels for the bar chart.
  • Use otu_labels as the hover text for the chart.




In the Demographics Info panel, display all the key-value pairs of the selected individual’s demographic data.



















Create a bubble chart that displays each sample:
Use otu_ids for the x-axis values.
Use sample_values for the y-axis values.
Use sample_values for the marker size.
Use otu_ids for the marker colors.
Use otu_labels for the text values.






When the dashboard is first opened in a browser, ID 940’s data should be displayed in the dashboard. In other words, the dashboard should not be blank when a user opens it in a browser.

When a new ID number is selected from the dropdown menu, all the plots and the info panel should be updated.

Extension

Adapt the gauge chart from Plotly documentation to plot the weekly washing frequency of the individual.

  • Modify the example gauge code to account for values ranging from 0 through 9.
  • Update the chart whenever a new sample is selected.

Live Demo

View a Live Demo of Plotly Deploy

plotly_deploy's People

Contributors

shannon-goddard avatar

Stargazers

JT5D avatar JiHoon Kim avatar

Watchers

James Cloos avatar  avatar

Forkers

wiseqx stevenyouv

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.