From the course: D3.js Essential Training for Data Scientists
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Finding plugins - D3.js Tutorial
From the course: D3.js Essential Training for Data Scientists
Finding plugins
- [Narrator] In an earlier chapter, we saw a hex bin graphic like this one made with D3. It required an extra file, as well as our D3 file. And here it is, so there's our D3 file being pulled in, or their D3 file to be fair, different from our one. And here's the hex bin file that's being pulled in as well. The extra file adds functionality to the core D3. Do be aware when you look up plugins, many of them are still going to be version three, and they won't work with your version four D3 file. So this example that we're looking at is version four. You can see that you pull the plugin file in, in exactly the same way that you pull in the D3 file. And now, in the code, you can use this new command, D3_hexbin. Now that command might look a bit odd, because it's D3_hexbin instead of D3.hexbin, which is the format that's been taken up until now. And the reason for this is that the naming convention can be really quite different with plugins. Basically, the author defines their own…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.