Working on 4w 3
This commit is contained in:
4
hw3/d3.js
vendored
4
hw3/d3.js
vendored
@@ -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).
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user