Skip to main content
100%

9

✓ Published0🌍 Public
Hharisankarakeluth@my.unt.edu
Last edited Apr 24, 2024
Created on Apr 24, 2024
Forked from Lucky 4D

This example presents two linked charts comparing country demographics: a scatter plot maps population density against growth rate with point size scaled by 2023 population, while a bar chart displays absolute 2023 population figures per country. The code uses D3.js v7, loading CSV data via `d3.csv`, creating scales with `d3.scaleLinear` and `d3.scaleBand`, and rendering SVG circles and rectangles. Axis labels and ticks are generated through `d3.axisBottom` and `d3.axisLeft`, with the bar chart’s country labels rotated for readability. The visualization relies on the countries-table dataset, with all data preprocessing handled through JavaScript’s unary plus operator to coerce numeric values.

AI-generated description

A visualization of Daily Surface Air Temperature, colored by year, with 2024 highlighted in red. Made in collaboration with EJ Fox, leveraging data prepared by Matthias Stahl.

MIT Licensed

Similar vizzes