D3.JS Questions and Answers

Explain how you can several classes at once?

To set several classes at once you can use the object literal as

selection.classed({ ‘foo’:true, ‘bar’: false})