element outside the body, instead of inside it?-自闭症患者的回答
element outside the body, instead of inside it?
I\'m learning D3 and have come across an issue using the select operator.
Specifically, why does the following code add the element outside th
there is no p element to select, so I would suggest appending the p element before entering your data:
var pData1 = d3.select("body").append("p") pData1.data([1])...
do whatever else you need to do after .data, although there is no need to append another p