Fork of HTML Starter
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the number of units produced by various car manufacturers. The bars are drawn as SVG rectangles, with the x-axis representing the count of units and the y-axis listing manufacturer names. The visualization loads its data from a remote CSV file, which is parsed manually into an array of rows. Using D3.js v7, the code applies a linear scale for the x-axis, a band scale for the categorical y-axis, and appends axis labels and a title directly within the SVG container.
AI-generated descriptionMIT Licensed