D3.js bisectCenter() Method
The bisectCenter() method in D3.js is used to return the index of the value closest to the given value in an array of numbers. A subset of the array to be considered can be specified by using the lo and hi parameters. Syntax: d3.bisectCenter( array, x, lo, hi ) Parameters: This method accepts four p