VOOZH about

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

⇱ D3.js symbol.type() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js symbol.type() Method

Last Updated : 18 Sep, 2020

The symbol.type() method takes a symbol type, sets the generators symbol that it will generate. The default symbol type, if not set, is d3.symbolCircle.

Syntax:

symbol.type([type])

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

  • type: This is the type of symbol to be set.

Return Value: This method has no return value.

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment
Article Tags:
Article Tags: