rollup 在本地装好node后用npm install rollup就可以安装好了
http://plnkr.co/edit/KxIGVU1YjWgxDNLSSxCh?p=preview
https://stackoverflow.com/questions/20675617/how-to-add-legend-to-a-pie-chart-using-d3js-and-how-to-centralise-the-pie-chart/22261120#22261120
https://vida.io/documents/gSvr8dAH23eirKQDp
https://stackoverflow.com/questions/26506210/legend-toggling-for-d3-js-pie-chart
https://stackoverflow.com/questions/33890012/how-to-add-legend-to-a-pie-chart-d3-js
https://stackoverflow.com/questions/32298837/how-to-add-a-nice-legend-to-a-d3-pie-chart