ICE-6: Rendering Marks and Channels with React & D3
✓ Published2🌍 Public
This example displays review scores for a selection of video games as a horizontal bar chart, with game names on the y-axis and score values on the x-axis. It uses React for component structure and state management, while D3 v5 functions like `scaleBand`, `scaleLinear`, and `max` handle data scaling and layout. The data is loaded from a CSV file via `d3.csv` and rendered as SVG rectangles. D3’s axis ticks are manually generated through `xScale.ticks()`, and the chart is styled with red gridlines.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed