D3.js | d3.scaleIdentity() Function
The d3.scaleIdentity() function in D3.js is used to construct a new identity scale with the unit domain [0, 1] and the unit range [0, 1].Syntax: d3.scaleIdentity().domain(array of values).range(array of values); Parameters: This function does not accept any parameters.Return Value: This function ret