Emoji Kitchen, the Force-Directed Graph | Forrest O. | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Comments (2)
Fabian Iwand
May 26, 2022
You can use selection.filter() to simplify your logic: ~~~ .filter(d => d.collection === "native" && emojiKitchen.hasOwnProperty(
d.id
)) .style("cursor", "pointer") .on("click", (e, d) => { mutable graph = idToGraph(
d.id
); }); ~~~
Forrest O.
May 30, 2022
Nice!
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Forrest O.
19
Reply
Add comment
Subscribe to notifications
9
Emoji Kitchen, the Force-Directed Graph | Forrest O. | Observable