score:1

Accepted answer

On line 305 you have for the pie chart:

var svg = d3.select("#pie")

this overwrites the svg you're using within the change() function. You will need to change that to be pie_svg or another unique name.