Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3

Public visualization

Viewing a saved revision (read-only)

be353695ecd6440a87356ede1a8e1de9

Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3

0 stars0🌍 Public
RRohith arabati
Last edited Mar 7, 2022
Created on Mar 7, 2022

This bar chart displays sales data for the top 11 best-selling books, sourced from a CSV file. The visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering marks as SVG rectangles within a React `<svg>` element. The code imports specific D3 functions like `select`, `csv`, and `scaleLinear`, and employs React's `useState` and `useEffect` hooks to load and process the data before rendering.

AI-generated description

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

See also React Starter.