Homework 1
This interactive D3.js visualization demonstrates the relationship between a person's highest level of education and their total income, using bar charts and histograms generated from CSV data. The visualization features tooltips that display data points on hover, with a red dashed line marking the mean income. Built with D3.v4, the code uses `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` to render responsive SVG charts, while also incorporating a scatterplot of cereal nutritional data with color-coded manufacturers.
AI-generated descriptionThese visulizations are built on top of the Scatterplot and Bar chart examples presented on Piazza. This was originally forked from <a href='http://bl.ocks.org/asielen/'>asielen</a>'s block: <a href='http://bl.ocks.org/asielen/50a527004cb79facf219'>Reusable Line Chart v2</a>, an implementation of a reusable responsive multiline chart, but it largely wasn't used
Contents:
- Reusable modular design
- Responsive design, chart size adjusts with screen size
- Customizable options
- Chart Size
- Margins
- Div Selector
- Chart Colors
- Axis labels
- Toggleable series (click on the legend to toggle series)