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