Skip to main content
100%

Activity 6

✓ Published0🌍 Public
NNithish Karanam
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This example visualizes population data for various countries as a horizontal bar chart, using bar length to represent population size. The chart employs D3.js v6 with SVG rendering for drawing the chart elements, axes, and tick labels. It utilizes `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `format` with custom logic to display large numbers in compact notation (e.g., converting 'G' to 'B'). The data is loaded asynchronously and processed to set domain ranges and render bars with tooltips.

AI-generated description
MIT Licensed

Similar vizzes