In this challenge, you are required to set the x attribute so it’s 5 units more than the value you used for the cx attribute on the circle. Set the y attribute the same way that’s used for the cy value on the circle, for the text element.
d for the data to be displayed.
The format for display has to be
There is a space between the comma and the y attribute.
Solution 1 (Click to Show/Hide)
Since, you need to add the x any y attributes similar to those as they have been set for the circle, add this to the
.text((d) => (d + ", " + d))