Skip to content

Instantly share code, notes, and snippets.

@lisawilliams
Last active March 20, 2017 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisawilliams/0981267174aa278691e7db62e7c4fd5a to your computer and use it in GitHub Desktop.
Save lisawilliams/0981267174aa278691e7db62e7c4fd5a to your computer and use it in GitHub Desktop.
Beginning Of Scatterplot Exercise
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<!-- Example based on http://bl.ocks.org/mbostock/3887118 -->
<!-- Tooltip example from http://www.d3noob.org/2013/01/adding-tooltips-to-d3js-graph.html -->
<style>
/* Here's CSS code that will style our visualization */
body {
font: 11px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.dot {
stroke: #000;
}
.tooltip {
position: absolute;
width: 200px;
height: 28px;
pointer-events: none;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js">
// This "calls" the d3.js library that we use to create our visualization.
</script>
<script>
// This is where we'll put the code for our visualization.
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment