VOOZH about

URL: https://www.geeksforgeeks.org/javascript/d3-js-stackoffsetexpand-method/

⇱ D3.js stackOffsetExpand() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js stackOffsetExpand() Method

Last Updated : 29 Sep, 2020

The D3.js stackOrderOffsetExpand() method applies a zero baseline and normalizes the values for each point such that the topline is always one.

Syntax:

d3.stackOrderOffsetExpand(series, order);

Parameters: This function accepts two parameters as mentioned above and described below.

  • series: This is the series based on which offset is expanded.
  • order: This is the ordering of the stack.

Return Value: This method returns no value.

Example:

Output:

👁 Image
Comment
Article Tags: