Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BAR CHART

Public visualization

Viewing a saved revision (read-only)

e046384cca1f4ae9bb969e982d8d7fd6

BAR CHART

0 stars0🌍 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