initialize for d3 visualization.