Homework 1
This example presents a series of interactive charts exploring the relationship between education level and income, using data from Table_2A.csv and Table_2J.csv. One view is a bar chart of median income by education level, annotated with a red dashed line for the mean and a green linear regression line. Another is a line chart showing months worked over the last four months by education level, using a steelblue path. The code uses D3 v4’s `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` to render SVG graphics.
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)
forked from <a href='http://bl.ocks.org/Tedables/'>Tedables</a>'s block: <a href='http://bl.ocks.org/Tedables/bb9654937115f20f0f7969f6abedb3eb'>Homework 1</a>