Skip to main content
100%

New Start towards js by making a Bar chart

✓ Published1🌍 Public
Aachintyatripathi
Last edited Oct 2, 2020
Created on Oct 2, 2020

This bar chart displays the population of the ten most populous countries, using a horizontal layout with countries on the y-axis and population on the x-axis. The visualization loads data from a CSV file and renders it as SVG rectangles. It uses D3 v6 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with a custom tick formatter that abbreviates large numbers using the `format` function. The chart includes axis labels and a title, with margins and a steelblue fill for the bars.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes