real-time pie and bar chart using d3
remake