Skip to main content
100%

ICE6

✓ Published0🌍 Public
Aakhila157
Last edited Mar 12, 2023
Created on Mar 7, 2023
Forked from ICE6

This bar chart displays the average star ratings for fifteen books, using data loaded from a CSV file via `d3.csv`. The visualization uses React hooks (`useState`, `useEffect`) to manage the data, while D3 v5 APIs construct the scales and axes: `scaleBand` for the book names on the y-axis, `scaleLinear` for the ratings on the x-axis, and `axisBottom`/`axisLeft` for ticks. Each book’s rating is rendered as an SVG `<rect>` within a `<g>` group, with grid lines and tick labels drawn manually using D3 selections. The chart is embedded in an HTML page that loads React and D3 from CDN.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes