Iteration of Scatterplot of Intentional Homicides
This scatterplot visualizes UN intentional homicide data, plotting each country’s yearly homicide count as a dot. The chart uses d3.scaleLinear for both the year and homicide-value axes, with circles colored by country. It attempts to label every point with its country name using SVG text elements, though the labels overlap. The code loads data via d3.csv, renders SVG circles and text, and includes axis labels for year and homicide count. All plotting is performed with D3 v6’s selection, scale, and axis APIs.
AI-generated descriptionMy iteration of me original scatterplot using the UN Intentional Homicide dataset.
It isn't perfect, I still haven't figured out how to make the country names more clear,
Based on the comment from a classmate: "Hello Lilly-beth, I was looking through your scatterplots and found the first one about homicide rates to be particularly interesting. I think if you decide to keep that viz as a scatterplot for your final project, an interesting iteration would be to highlight the outliers (perhaps display the name of the country, and the homicide count by gender for each). I noticed that there is a rather extreme outlier in 2003 and I would be interested in knowing which country that was. From there it would be interesting to see why it became such an outlier that year (if there was a war going on, or something)."