0

I am a student who has primarily used languages such as Python and MATLAB, so I am having a bit of trouble with Javascript. The assignment is to create a scatterplot based on this data. I understand how to create the plot, but I can't necessarily figure out how to only extract the integer elements of the set. I typically work with large dictionaries in Python and understand the traversal of those. But since strings and integers are essentially combined here, I am not sure how to traverse this data set. Any help would be greatly appreciated. Thank you!

var scores = [
   { SATM:430, SATV:470, ACT:15, GPA: 2.239 },
   { SATM:560, SATV:350, ACT:16, GPA: 2.488 },
   { SATM:400, SATV:330, ACT:17, GPA: 2.982 },
   { SATM:410, SATV:450, ACT:17, GPA: 2.155 },
   { SATM:430, SATV:460, ACT:17, GPA: 2.712 },
   { SATM:430, SATV:370, ACT:18, GPA: 1.913 }
     ...
     ...

]
Robert Longson
  • 110,343
  • 23
  • 240
  • 227

0 Answers0