Use D3.js to draw a donut chart with the data passed via Socket.io