d3.js - d3 units formatting SI with rounding (nvd3 charts) -


i using si units formatting axis using code below. way if value goes 1000 represented 1k, 2.4k etc.

d3.format('s') 

problem cases displaying 13.47899999999k. how can use si units along rounding off 2 decimal places?

you can try d3.format(".2s")


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -