Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published1🌍 Public
AArefa Patwary
Last edited Mar 7, 2022
Created on Mar 7, 2022
This example shows the top 11 best-selling book categories using a horizontal bar chart, with bar lengths encoded by book sales and category names listed on the y-axis. The React component loads CSV data via D3’s `csv` method and renders SVG marks using JSX, while D3’s `scaleBand` and `scaleLinear` map categorical and numerical channels. Grid lines and tick labels are generated manually from `xScale.ticks()`, with bars styled through an external CSS file.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed