Skip to main content
100%

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

✓ Published0🌍 Public
YYbg99g
Last edited Mar 7, 2022
Created on Mar 5, 2022

This visualization displays mobile sales figures for ten brands as horizontal bars, using a bar chart format. The React component manages the application state, loading CSV data through d3.csv from a GitHub-hosted dataset. D3's scaleBand and scaleLinear functions map the categorical brand names and numeric sales values to screen coordinates. The chart is rendered as an SVG, with axes and tick marks generated through d3's axis utilities, while React creates the SVG elements declaratively. The chart includes green grid lines and a title, "Mobile Sales," within a web page styled with CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes