Skip to main content
100%

BAR CHART

✓ Published0🌍 Public
Ppriyankachary1701@gmail.com
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from HTML Starter

This bar chart shows the total number of pages per book genre, with genres sorted in descending order along the x-axis and page totals on the y-axis. The visualization uses d3.csv to load a Library_book dataset, then aggregates pages by genre using d3.rollup and d3.sum. The chart is rendered as SVG with d3.scaleBand and d3.scaleLinear for positioning, while d3.axisBottom and d3.axisLeft create the rotated and labeled axes. Each bar is drawn with rounded corners (rx) and styled using CSS custom properties for colors.

AI-generated description
MIT Licensed

Similar vizzes