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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -