javascript - d3.js - show large numbers on axis in abbreviated form -


is there way abbreviate large numbers on d3.js axis? recall seeing helper method online cannot find again. abbreviate large numbers reduce chart margins , make easier read.

i.e. 1,000,000 = 1m etc

if can post link d3.js helper class appreciated.

check out link https://bl.ocks.org/mbostock/9764126

this worked me d3 v4:

function make_y_gridlines() {                return d3.axisleft(yscale)                .ticks(10,"s")  } 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -