Exercise: Fork the Animated Reusable D3 Scatter Plot and add axis labels.
Hints: You’ll probably need to…
- add new accessors
xLabel
andyLabel
, - use the general update pattern with
.data([null])
, and - disambiguate between the text labels using classes.