Skip to content

Instantly share code, notes, and snippets.

@adamjanes
Last active March 17, 2018 07:40
Show Gist options
  • Save adamjanes/65b32812a88403c5b2c49fc2de450136 to your computer and use it in GitHub Desktop.
Save adamjanes/65b32812a88403c5b2c49fc2de450136 to your computer and use it in GitHub Desktop.
var x = d3.scaleLinear()
.domain([d3.min(data0, function(d){ return d.gpa; }) / 1.05,
d3.max(data0, function(d){ return d.gpa; }) * 1.05])
.range([0, 800]);
var y = d3.scaleLinear()
.domain([d3.min(data0, function(d){ return d.height; }) / 1.05,
d3.max(data0, function(d){ return d.height; }) * 1.05])
.range([500, 0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment