Google News
logo
D3.js - Interview Questions
How to apply multiple classes at once in D3?
To set multiple classes at once you can use the object literal as
selection.classed({ 'foo':true, 'bar': false})
Advertisement