Set multiple attributes on all elements in selection instead of using selection.attr for each attribute to set.
Set multiple attributes on all elements in selection instead of using selection.attr for each attribute to set.