update d3.js version
make code more concise
add example
add pie() example