A6 Charts
This example presents three coordinated data visualizations built with D3.js v7 and rendered as SVG. It demonstrates a bar chart of daily cigarette consumption in Australia from 1980 to 2012, a diverging bar chart of minimum temperatures across Colorado weather stations, and a scatterplot of cereal nutritional data. The code uses D3's `scaleBand`, `scaleLinear`, and `scaleSequential` APIs to construct the charts, which are loaded from CSV files via `d3.csv`. A color legend is generated using the `d3-svg-legend` library, and the visualizations include axis labels and titles.