[Fixed]-Scientific notation on axes in plot from django-nvd3

1👍

Use this for scientific notations on y axis

 chart.yAxis.tickFormat(d3.format('.02e'));

for x axis problem try this

this will return log for the x values.

chart.x(function(d){return Math.log10(d.x)});

and this will again covert it to normal number,
your scale will be logarithmic

chart.xAxis.tickFormat(function(d){ return (Math.pow(10,d)).toFixed(2);});

Here is the JSFiddle

Leave a comment