Skip to main content
100%

Activity6_Q1.2

✓ Published0🌍 Public
Ppmanoj13053@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Fork of Task8_Q1.2

This bar chart visualizes the 2010 populations of the top 20 countries from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering rectangles as SVG marks. A tooltip shows each bar’s exact value, and the x-axis labels are formatted using `format('.2s')` to abbreviate large numbers. The chart is styled with custom tick colors and a green fill, with axes and labels generated by the custom `AxisBottom` and `AxisLeft` components.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes