Groundwork for d3. Some works for data formatter.