Recreating a
scatter plot
January 10, 2025
This week I recreated a scatter plot from The New York Times on the deaths in major earthquakes since 1900 in Turkey and Syria. Leanne Abraham, Henry Fountain and K.K. Rebecca Lai participated in its creation.
Warning: Data may be inaccurate compared to the source.Recreation
Highlights
This is the first recreation of 2025 and the second scatter plot I did during the challenge. The base is very similar, but seeing that it would take me a long time to replicate the data, I decided to use random data.
- I only replicated the data of the earthquakes with more deaths, and for the rest, I created a function called randomDate that generates up to 196 records with values within a certain range. Every time the browser is refreshed, new random data will be generated. I use this often to check how a visualization could look, and although it may look amazing, the important thing is that it also works with the real data.
- I love using forEach() for the creation of specific elements. Whether it's text or images, for me it's the most comfortable way to create elements in different positions in the visualization. Of all the ways I've tried, this is the one I feel most comfortable with.