mySelection.style( name, value, [ priority ] ) in D3.js

Set a CSS style property for elements in the selection.

Arguments

nametypedescription
name String
value String If this parameter is not a string it is forced to one.
priority String [optional] Either null or the string "important".
Return Type
Selection

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-style.

See Also