D3.js transform.invertY() Function
The transform.invertY() function in D3.js library is used to get the inverse transformation of the specified y-coordinate, (y – ty) / k.
transform.invertY( y )
Parameters: This function accepts the following parameter as mentioned above and described below
- y: This parameter is the y-coordinate.
Return value: This function returns the transformed zoom behavior.
Below programs illustrate the transform.invertY() function in D3.js library.