midterm1
This chart uses both a bubble chart and a bar chart to compare the number of records and potential threats across 33 San Francisco districts. District names are on the x-axis, with counts on the y-axis, and each district is represented by a circle whose size encodes the number of records and whose color encodes the number of potential threats. Built with D3 v4, the code loads data from a CSV using `d3.csv`, sorts districts by record count, and uses `d3.scaleBand`, `d3.scaleLinear`, `d3.scaleSqrt`, and `d3.scaleSequential` with an orange color interpolator. The SVG output highlights circles on hover by changing their stroke to red, though the underlying data source is a gist with a local file named `forbubblechart.csv`.
AI-generated descriptionBuilt with blockbuilder.org