🌍 Public
Viewing a saved revision (read-only)
e0be22eaf9b84b2b8222556d6eab2d9f
Starting with Bar Chart
This example shows a horizontal bar chart comparing the weights of four individuals, with names on the y-axis and weight values on the x-axis. The data loads from a CSV file via `d3.csv`, and the chart uses `d3.scaleLinear` for the quantitative axis, `d3.scaleBand` for categorical spacing, and `d3.axisLeft`/`d3.axisBottom` for ticks. Bars render as SVG rectangles with a steelblue fill, positioned using the scales’ computed dimensions and padding.
AI-generated descriptionStarting with Bar Chart