I found some example to draw lines between dot, but before reinventing the wheel, i want to ask.
Is there an helping function to compute curved line between two x,y points ?
The color correspond to the number of days between this date and another date (2020-03-19 sent to 2020-03-21) , so i’m interested to dynamically draw a not-so-simple U curve between two dots / date when user mouse-hover any dots.
I think that you mean to select .arcs everywhere in your code that you currently select arcs, to select elements with that class. Selecting arcs will attempt to select elements whose tag name is arcs.
Yes if finally found what happen, i need to define a class named .arc if i want to selectAll('arcs') later in my code (for highlight on nodes mouve hover by example)
In my code I defined a variable called arcs that held the selection to all of the arcs, and reused this throughout whenever I needed to access the arcs. I agree that it is a good idea to assign them all a class as you did here.