Use Plotly.js to build interactive charts for your dashboard.
-
Create a PIE chart that uses data from your samples route (
/samples/<sample>) to display the top 10 samples.-
Use
sample_valuesas the values for the PIE chart -
Use
otu_idsas the labels for the pie chart -
Use
otu_labelsas the hovertext for the chart
-
-
Create a Bubble Chart that uses data from your samples route (
/samples/<sample>) to display each sample.-
Use
otu_idsfor the x values -
Use
sample_valuesfor the y values -
Use
sample_valuesfor the marker size -
Use
otu_idsfor the marker colors -
Use
otu_labelsfor the text values
-
-
Display the sample metadata from the route
/metadata/<sample>- Display each key/value pair from the metadata JSON object somewhere on the page
-
Update all of the plots any time that a new sample is selected.
-
You are welcome to create any layout that you would like for your dashboard. An example dashboard page might look something like the following.
Deploy your Flask app to Heroku.




