Working on 4w 3

This commit is contained in:
Brady
2019-09-30 22:29:42 -06:00
parent 21d4f28699
commit f2be979bd6
12 changed files with 413 additions and 8 deletions

4
hw3/d3.js vendored
View File

@@ -5390,8 +5390,8 @@ function contours() {
// Marching squares with isolines stitched into rings.
// Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js
function isorings(values, value, callback) {
var fragmentByStart = new Array,
fragmentByEnd = new Array,
var fragmentByStart = [],
fragmentByEnd = [],
x, y, t0, t1, t2, t3;
// Special case for the first row (y = -1, t2 = t3 = 0).

View File

@@ -24,7 +24,7 @@ function update(data) {
.range([0, 150]);
let bScale = d3.scaleLinear()
.domain([0, d3.max(data, d => d.b)])
.range([0, 150]);
.range([0, 150]
let iScale = d3.scaleLinear()
.domain([0, data.length])
.range([0, 110]);