Making a Bar Chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of dividend values for seven companies, with company names on the y-axis and a linear scale for the dividend amounts on the x-axis. The chart uses `d3.csv` to load the data, `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `axisLeft` and `axisBottom` to render the axes. Bars are drawn as SVG `rect` elements with `fill: steelblue`, using `csv` loading and a margin-based layout with an inner plotting area.
AI-generated descriptionMIT Licensed