Skip to main content
100%

Data Visuliazation ICE-6

✓ Published0🌍 Public
Aachalasam
Last edited Jun 26, 2022
Created on Jun 26, 2022
Forked from HTML Starter

This example shows the top 10 car models by sales in thousands, rendered as a horizontal bar chart. The visualization loads CSV data from a GitHub gist, slices the first 10 rows, and maps the `Sales_in_thousands` field to bar widths using `d3.scaleLinear`, while `d3.scaleBand` positions the model names along the y-axis. React hooks (`useState`, `useEffect`) manage the asynchronous data loading, and the SVG elements (rectangles, axes, and tick labels) are generated declaratively within a React component, with styling controlled by inline attributes and CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes