this is great. Would you be willing to help me more? look at the code again…
I added a column to the Baseball Teams data set. called Team Icon. The content of that column has a URL link to the Team Logo.
What is going wrong in the Function called Filter?
Something is still wrong with the Function called updateScreen:
40 //I want to use only 15 teams from the data set
41 // the areas needing updated are Year, Rank Baseball Team Name
42 //and Team Home Field
43 //what am i doing wrong on line 45???
44 function updateScreen(){
45 var index = randomNumber(0, filteredTeamNameList.length-1);
I cannot see your dataset when I remix. You will need to post your new dataset csv file here. Also, you have a missing brace in your filter function and your conditional is still incorrect. See the correction I made previously. Line 15 should be changed to filteredTeamNameList = ;
Can you help us with determine why the pictures in the protein category don’ t appear. Is it because the image is blocked by our school? The others seem to output correctly. Image #37 and #10 from the dataset Cereal Nutrition dataset.
Thanks,
Kevin P
I have included the CSV file for Baseball Teams. I added the column for the team logos (pictures) for the first 15 teams. Keep in mind I am not an expert coding machine; in fact, just the opposite. This means I have no idea what I am doing and why some code works and the others do not. I am certain my updateScreen function is not correctly coded, as well as my filter function.
What I am trying to do is to pull just the first 15 teams from the list. In the data set, I added a column and I put a URL to the team logos (pictures) so when the screen updates we can see the team logo. These URLs are in the column named Team Icon.
So, when I press the Get MLB Team button, I want the team logo to appear, the year 1901 (first 15 teams in the list), team ranking, the name of the team and the baseball field where they play. Hopefully my code and design features (attached) will help you help me. And I thank you for any help you can provide.