Skip to main content
100%

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

✓ Published2🌍 Public
Ggunasindhuja
Last edited Mar 11, 2023
Created on Mar 11, 2023
Forked from HTML Starter

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes