var d3 = require("d3-scale")
// Set the height to the actual value to where you want to shift the coords.
// Most likely based on the size of the element it is contained within
var height = 1;
var y = d3.scaleLinear()
.domain([0,1])
.range([height,0]);
console.log("0 = " + y(0));
console.log("0.5 = " + y(0.5));
console.log("1 = " + y(1));
console.log("100 = " + y(100));
console.log("-100 = " + y(-100));