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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -