score:3

Accepted answer

You need to assign the new scale to the axis. You should also set domain/range for the new scale:

xScale = d3.scale.pow().exponent(2)
    .domain([0, 10])
    .range([50, 350]);
vis.select('.xaxis').transition().call(xAxis.scale(xScale));

Complete demo here.


Related Query