d3.select method not working

后端 未结 3 1958
南笙
南笙 2020-12-06 10:26

I am new to datavis and the D3 library and I\'m trying to follow the tut here http://mbostock.github.com/d3/tutorial/bar-1.html

When I run the code, nothing displays

3条回答
  •  广开言路
    2020-12-06 10:45

    Using the inside the body makes it not only available to the tag or any of the but also executes it faster. Also as div is a tag u could create a class eg. one and then use it as d3.select(".one") so that it doesn't coincide.

提交回复
热议问题