Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
Rrychenf1
Last edited Nov 15, 2019
Created on Nov 15, 2019

This example demonstrates a horizontal bar chart visualizing population data for ten countries, with each bar’s length proportional to population size and country names listed on the y-axis. The visualization uses D3 v5’s `csv` loader to import data, `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft`/`axisBottom` to render tick marks. The SVG-based rendering applies a steelblue fill to rectangles, with data values converted from thousands to absolute numbers.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes