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
Post a Comment