🌍 Public
Viewing a saved revision (read-only)
ff5f89564ef7484686617f6068c39a4d
CS416 Project_2
Mmz4987
Last edited Jul 28, 2021
Created on Jul 18, 2021
The visualization compares average user ratings and prices of Amazon top 50 bestselling books from 2009 to 2019 using two linked bar charts. It renders SVG with d3.v6, using `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisLeft`/`d3.axisBottom` to encode data from a Kaggle CSV. Interactive buttons trigger `init2()` to highlight a selected year with thicker strokes, while an animation-driven `next()` button advances through years sequentially.
AI-generated description