Iterated Version for Viz Other than Scatter Plot - Sitanshu Rupani
This stacked bar chart visualizes the year-over-year total price of Amazon’s top 50 bestselling books from 2009 to 2019. Individual book prices are aggregated into color-coded buckets, revealing how the combined cost of bestsellers fluctuates annually. The chart uses D3.js (v6) with SVG rendering, employing `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom`/`d3.axisLeft` for tick marks. A legend distinguishes four price ranges (under $10, $10–15, $15–20, over $20), and the dataset comes from a public gist of Amazon bestseller records.
AI-generated descriptionThis viz. is an iteration of the earlier viz., 'Viz Other than Scatter Plot'.
The changes made in this iteration are:-
- Added a title for the Viz
- Changed font of axes to Helvetica
- Converted simple bar chart to a stacked chart, representing price buckets of books with different colors
- Added a legend for above colors
The above viz shows a stacked bar chart from the Amazon Best Sellers Dataset.
It shows the total price of all bestsellers in a particular year.
The colors represent the buckets of the inidividual book prices.
This graph showcases how the prices of bestseller books moves up or down year over year.
The source for this dataset is from this gist Amazon Top 50 Bestselling Books 2009 - 2019.