attr
Sets an attribute on the SVG element with a string value.
Parameters
name
The name of the attribute.
value
The value of the attribute as a string.
Sets an attribute on the SVG element with a numeric value.
Parameters
name
The name of the attribute.
value
The value of the attribute as a number.