Skip to content

Instantly share code, notes, and snippets.

@xergioalex
Created August 11, 2018 00:45
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 xergioalex/5f0db647e1387c7062d9f46c969a84e9 to your computer and use it in GitHub Desktop.
Save xergioalex/5f0db647e1387c7062d9f46c969a84e9 to your computer and use it in GitHub Desktop.
fresh block
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
</style>
</head>
<body>
<h1>Scatterplot d3. v4</h1>
<svg width="379" height="400" id="scatter" style="background: blue">
</svg>
<div>lsd lsd lsd lsd </div>
<script>
// Feel free to change or delete any of the code you see in this editor!
var svg = d3.select("#scatter")
var width = svg.attr("width")
console.log(width)
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment