US population versus crime number
This scatter plot shows the linear relationship between US population and total violent crime numbers from 2015 to 2019, using FBI data. The x-axis maps population and the y-axis maps crime counts, with each circle representing a year. The visualization uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisLeft and d3.axisBottom to render ticks. SVG circles are drawn with an opacity of 0.5 to show overlapping points, and the plot adapts to the full window size via window.innerWidth and window.innerHeight.
AI-generated descriptionData
This scatter plot uses total violent crime data. The original data is collected from FBI's website. This data records all violent crimes reported to FBI from 2015 to 2019 and the population.
Description
This scatter plot shows the linear relationship between the population and the number of crimes. The x-axis represents population,y-axis represents number of crimes. As the population grows, so does the number of crimes.