working vector extraction and d3 visualization