Skip to main content
100%

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

✓ Published0🌍 Public
KKiran3295
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example shows a horizontal bar chart of best-selling car data from a CSV file, displaying the population values for different Toyota models. The chart uses React hooks (`useState`, `useEffect`) to load and manage the data, while D3 v5 functions (`csv`, `scaleBand`, `scaleLinear`, `max`) handle the data parsing and scaling. Bars are rendered as SVG `<rect>` elements, with grid lines and tick labels generated via `xScale.ticks()`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes