Small multiple line chart in D3
This small multiple line chart displays the average daily cigarette consumption for smokers across eight countries between the years 2000 and 2010, using data from the CORGIS smoking dataset. Each country’s time series is rendered as a separate line within a small SVG panel, with a shared y-axis scale, while a categorical color legend distinguishes the countries. The visualization is built with D3 v7, using `d3.csv` for data loading, `d3.scaleLinear` for axes, `d3.line` for path generation, and `d3.legendColor` for the color key. The color palette comes from ColorBrewer, and the overall layout follows a referenced small-multiple line chart pattern.
AI-generated descriptionSmall multiple line Chart visualization of the average amount of cigarettes smoked per day by smokers of only 8 countries from the CORGIS dataset 'https://corgis-edu.github.io/corgis/csv/smoking/' in D3. Color legend from Susie Lu and colorbrewer. Referenced to Small multiple for line chart'
*Full Screen to see the complete chart.