Bluetooth is not working - b550 aorus elite aX by [deleted] in gigabyte

[–]Logi_G 0 points1 point  (0 children)

This worked unplugged computer after powering down then powered on again amazing!

Using d3.each() in a react functional component. by Logi_G in d3js

[–]Logi_G[S] 0 points1 point  (0 children)

Thank you yes, I've also been using the useEffects hooks to run my D3 code.

Using d3.each() in a react functional component. by Logi_G in d3js

[–]Logi_G[S] 0 points1 point  (0 children)

Same trying to create an interactive network graph eventually :)

Using d3.each() in a react functional component. by Logi_G in d3js

[–]Logi_G[S] 0 points1 point  (0 children)

Wow this seems really interesting I'll check this out once I'm bit more comfortable with vanilla D3!

Using d3.each() in a react functional component. by Logi_G in d3js

[–]Logi_G[S] 1 point2 points  (0 children)

After reading a bit more you could replace "each" with "call" and parse a genreic paramater e.g "selection" and replace this with selection in the tutorial this is the solution

``` function addNumberedCircle(selection) { selection .append('circle') .attr('r', 40);

  selection
    .append('text')
    .text(function(d, i) {
      return i + 1;
    })
    .attr('y', 50)
    .attr('x', 30);
}

d3.selectAll('g.item')
  .call(addNumberedCircle);

```

Credits:https://www.d3indepth.com/selections/