created D3 histogram