Join Ray Villalobos for an in-depth discussion in this video Modifying attributes and CSS, part of D3.js: Data Visualization.
So let's check it out.…So we'll do d3.selectAll.…And then we'll look for anything with a class of item.…And on the next line I'm going to use this attr, add a class, and…I'll call this class highlight.…Let me go ahead and save that now.…It's not going to show anything here yet.…Although, if we open this up in the Web tools we'll be able to…see that this class has already been added here, but…because we haven't written anything in our CSS it's not showing up.…
- What is D3.js?
- Creating a basic document structure
- Controlling HTML DOM elements
- Binding data to the DOM
- Drawing SVG graphics with D3
- Using ordinal scales
- Adding events and transitions
- Working with data
- Creating and adjusting layouts