What is 'd3.svg.axis()' in d3 version 4?
<p>How can I replace below lines with the new version of D3 API?</p>

<p>I have already replaced <code>scale.linear()</code> with <code>scaleLinear()</code></p>

<pre><code>var xRange = d3.scaleLinear()
    .domain([OIResults.min,OIResults.max]).range([40, 360]);

var yRange = d3.scaleLinear()
    .domain(y_domain).range([360, 40]);
</code></pre>

<p>Below Lines need to be replaced according to the new API: </p>

<pre><code>var xAxis = d3.svg.axis().scale(xRange).tickFormat(function(d) { return d.x;});
var yAxis = d3.svg.axis().scale(yRange).orient("left");
</code></pre>