VOOZH about

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

⇱ D3.js stack.keys() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js stack.keys() Method

Last Updated : 7 Sep, 2020

The stack.keys() method makes an array of strings as an argument and returns the stack generator.

Syntax:

 stack.keys([keys])

Parameters: This method accepts a single parameter as mentioned above and described below.

  • domain: This parameter holds an array of strings as key arguments.

Return Value: This method returns the stack generator.

Example:

Output:

👁 Image
Comment
Article Tags:
Article Tags: