change total.json to an array of objects, which is accepted by svg.data().enter()