TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How D3 Selections Work

162 点作者 jfirebaugh大约 12 年前

4 条评论

mbostock大约 12 年前
There’s an easter egg of sorts in that you can run the shown code snippets in the JavaScript console, and the results in the console will match the shown diagrams. This is thanks to careful inclusion of off-screen elements.<p>It would be fun to make an interactive tool that generates the diagram directly from the given selection and data (and probably wouldn’t be too hard to repurpose the existing code). But the JavaScript console and element inspector are so useful on their own for learning D3 + DOM, it’s likely more fruitful to encourage people to use the console directly.
评论 #5614744 未加载
评论 #5614820 未加载
shanselman大约 12 年前
This man is a god. I love that his "Videos" are demos of his tech. Inspect element, my friends.
评论 #5614765 未加载
doobius大约 12 年前
I have never met him, but I love Michael Bostock
RobinL大约 12 年前
Thanks for this Mike. My work is more efficient, more enjoyable, and better because of d3. A lot of this relies on your quality, clear tutorials and documentation.