Skip to main content
100%

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

✓ Published17🌍 Public
SSrilekha24
Last edited Mar 5, 2022
Created on Mar 5, 2022

This example shows the best-selling books data as a horizontal bar chart, with each bar’s length encoding the population value from the 1890 column of a CSV file. The visualization uses React components to render SVG marks, while D3’s `scaleBand` and `scaleLinear` compute the positional scales, and `csv` loads the dataset. Grid lines and axis ticks are generated manually from the scales, with bars styled via CSS. The chart updates reactively as data loads, demonstrating integration of React’s state management with D3’s data utilities.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes