Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE-6 Bar charts: Done with the help of D3

Public visualization

Viewing a saved revision (read-only)

2f99c20b3fb1427a9e7d238b45f2393e

Fork of ICE-6 Bar charts: Done with the help of D3

0 stars1🌍 Public
TTulluripallavi
Last edited Mar 6, 2022
Created on Mar 6, 2022

This visualization displays information about book sales, presenting a horizontal bar chart that compares the population values for different book categories. The chart uses React with a functional component and the `useState` and `useEffect` hooks to load and process data from a CSV file. D3 v5 functions such as `csv`, `scaleBand`, `scaleLinear`, and `max` are used to parse the data, create the scales, and render the SVG elements, with rectangle widths encoding the data values.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.