Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
CChinzorigt Ganbat
Last edited Sep 18, 2020
Created on Sep 17, 2020

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 description
MIT Licensed

Similar vizzes