D3: Map Data to Linear Scale: .map, .scaleLinearForked script below was converted from D3.js v3 to v4.nick3499·Follow1 min read·Mar 2, 2017--ListenShared3.scaleLinear() is a v4 function which requires the d3.v4.min.js library. Replacing v3’s d3.scale.linear().