format_num_d3 function

Format numbers with D3