We’ve got a new video, about the Map data structure in JavaScript. We’ll take you through the basics of how to create and use Map, and then dive right into a fun example. Follow along as we read temperature data from a CSV file into an array using D3.js’s csv() method, and then use a Map to group the temperatures by year. Then we can use that Map to compute the average yearly high and low temperatures, and convert the data back into an array, ready for making a visualization. This is great practice for using Map in JavaScript, so join us and learn how to use Map.

You can get the data and the code from my github repo.

And if you’re interested in learning more about D3.js to visualize data then check out the WickedlySmart course How to visualize data with D3.js.

Don't miss out!

Don't miss out on brain-friendly WickedlySmart updates early access to books and general cool stuff! Just give us your email and we'll send you something about once a week. 

You have Successfully Subscribed!