Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Books with Pages

Public visualization

Viewing a saved revision (read-only)

b55f1e0f0dc14802a7cf6d3395e50c9d

Books with Pages

0 stars1🌍 Public
DDavid Sjoberg
Last edited Nov 24, 2019
Created on Nov 24, 2019
Forked from Books with Pages

This example displays a horizontal bar chart of nine books sorted by page count, with book titles on the y-axis and a linear pages scale on the x-axis. It uses d3.csv to load data, d3.scaleBand and d3.scaleLinear for positioning, and d3.axisLeft and d3.axisBottom with custom tick formatting. The bars are rendered as SVG rectangles with a steelblue fill, and the code removes default axis domains and gridlines. A CSS rule with overflow:hidden removes scroll bars from the body.

AI-generated description

A fork of @leorawe: Books with Pages that shows how to get rid of the scroll bars.

The following CSS was added to the body section:

  margin: 0px;
  overflow: hidden;