Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
Kkalyanikotha
Last edited Mar 7, 2022
Created on Mar 7, 2022
This visualization renders a horizontal bar chart of the top 10 most popular drink sales using React and D3 v5, with data loaded from a CSV file via `d3.csv`. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, drawing SVG `<rect>` marks for each bar. Axes ticks and labels are generated manually by mapping over scale domains and tick values. The page background is styled green with maroon bars, and the visualization updates state asynchronously after data fetching.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed