D3.js | d3.max() function
The d3.max() function in D3.js is used to returns the maximum value in the given array using natural order. If an array is empty then it returns undefined as output.
Parameters: This function accepts a parameters Array which is an array of elements whose maximum value is to be calculated. Here elements might be integers or any strings.
Return Value: It returns the maximum value.
Below programs illustrate the d3.max() function in D3.js.
60 2 6.8 0.8
undefined c C GeeksforGeeks