Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0๐ŸŒ Public
Kkenljames
Last edited Sep 17, 2020
Created on Sep 17, 2020

This example shows a horizontal bar chart of population estimates for ten countries, sorted from most to least populous, with countries labeled on the y-axis and population counts scaled along the x-axis. The visualization uses D3 v6 with an SVG rendering, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` to generate ticks. Data is loaded from a CSV file, values are multiplied by 1000 during preprocessing, and bars are appended as rectangles with a steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed