Skip to content

Instantly share code, notes, and snippets.

@greenmna
Created April 12, 2018 14:07
Show Gist options
  • Save greenmna/a39ceb106427539ec22a4bc9e7fdb8b5 to your computer and use it in GitHub Desktop.
Save greenmna/a39ceb106427539ec22a4bc9e7fdb8b5 to your computer and use it in GitHub Desktop.
Bubble attempt Mambo #5
license: mit
Isolate Source Serotype AMR_Phenotype gene_number
HJ1 Muddy Creek Give - 0
HJ2 Muddy Creek Give - 0
HJ3 Pleasant Run Uganda Strep Sulf Tet 0
HJ4 Pleasant Run Uganda - 0
HJ5 Cook's Creek Rt. 11 Litchfield - 0
HJ6 Cook's Creek Rt. 11 Schwarzengrund - 0
HJ7 Pleasant Run Muenster Strep Sulf Tet 4
HJ8 Pleasant Run Muenster Strep Sulf Tet 4
HJ9 Cook's Creek Rt. 704 Mbandaka - 0
HJ10 Muddy Creek Anatum Tet 1
HJ11 Cook's Creek Rt. 704 Schwarzengrund - 0
HJ12 Cook's Creek Rt. 704 Senftenberg - 0
HJ13 Cook's Creek Rt. 11 Hadar Amp Gent Strep Tet 6
HJ14 Cook's Creek Rt. 11 Hadar Amp Gent Strep Tet 6
HJ15 Cook's Creek Rt. 11 Hadar Amp Gent Strep Tet 6
HJ16 Poultry Litter Cerro - 0
HJ17 Poultry Litter Typhimurium Gent Strep Sulf Tet 6
HJ18 Poultry Litter Typhimurium Gent Strep Sulf Tet 6
HJ19 Poultry Litter Typhimurium Gent Strep Sulf Tet 6
HJ20 Poultry Litter Typhimurium Gent Strep Sulf Tet 6
HJ21 Cook's Creek Rt. 11 Typhimurium - 6
HJ22 Cook's Creek Rt. 704 Muenchen - 0
HJ23 Cook's Creek Rt. 704 Muenchen - 0
HJ24 Pleasant Run Montevideo - 0
HJ25 Pleasant Run Montevideo Strep 0
HJ26 Muddy Creek Senftenberg - 0
HJ27 Cook's Creek Rt. 704 Cerro - 0
HJ28 Cook's Creek Rt. 704 Cerro - 0
HJ29 Cook's Creek Rt. 704 Anatum - 0
HJ30 Cook's Creek Park Braenderup - 0
HJ31 Cook's Creek Park Braenderup - 0
HJ32 Cook's Creek Park Braenderup - 0
HJ33 Muddy Creek Montevideo - 0
HJ38 Cook's Creek Park Typhimurium - 0
HJ39 Cook's Creek Park Typhimurium - 0
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
var bubbleChart = function (){
var width = 800
height = 600;
function chart (selection){
}
chart.width = function (value) {
if (!arguments.length) {return width;}
width = value;
return chart;
}
chart.height = function (value){
if (!arguments.length){return height;}
height = value
return chart;
}
return chart;
}
d3.csv("BIO583_Salmonella_data.csv", function (error, BIO583_Salmonella_data) {
if (error) {
console.error("Error getting or parsing the data");
throw error;
}
var data = BIO583_Salmonella_data
var chart = bubbleChart().width(800).height(600);
d3.select("#chart").data(BIO583_Salmonella_data).call(chart)
var div = d3.select("body")
.selectAll("div")
.data(BIO583_Salmonella_data)
.enter().append("div");
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment