D3.js stackOrderInsideOut() Method
The D3.js stackOrderInsideOut() method returns a series order such that the larger series (according to the sum of values) are on the inside and the smaller series are on the outside.
Parameters: This function accepts a single parameter as mentioned above and described below.
- series: This is the series based on the ordering of the keys to be ordered.
Return Value: This method returns no value.
Example: The following example demonstrates ordering the stack using d3.stackOrderInsideOut() function.