OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

how to pass parameters to an anonymous function that is also the parameter of another function in d3.js?

  • Thread starter Thread starter kawsar anwar
  • Start date Start date
K

kawsar anwar

Guest
Code:
svg.selectAll('.node')
        .filter(node => node.id.toLowerCase().includes(para_group))
        .style('opacity', 1)
        .attr("r", 10);

this is from a d3.js-used file, as seen above, "node" is the parameter of an anonymous function which is the parameter of filter() function, does the selectAll() function automatically passes the result as a parameter to filter() function?

<pre><code>svg.selectAll('.node')
.filter(node => node.id.toLowerCase().includes(para_group))
.style('opacity', 1)
.attr("r", 10);
</code></pre>
<p>this is from a d3.js-used file, as seen above, "node" is the parameter of an anonymous function which is the parameter of filter() function, does the selectAll() function automatically passes the result as a parameter to filter() function?</p>
 

Latest posts

Top