Can someone take a look at my code to see why I am getting the following error message:
TypeError: scatterPlot.exit is not a function
I tried StackOverflow but it wasn’t very helpful.
The specific change I am trying to make is filtering on continent: https://github.com/SabahatPK/6.05/blob/master/js/mainPractice.js
Any help would be much appreciated!
Edit: I know that it is b/c
someData array is empty right before it is used in the data join, but I don’t understand why it is empty?