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 - Feed FileReader from server side files -

java - How to create your own button and Use it with Scene Builder for javafx -

c++ - Drawing a circle in directx 9 -