Skip to main content
100%

Activity 6_Task 1 Question 1.1

✓ Published4🌍 Public
Gguttavenkata745@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from activity 6_Task 1

This bar chart displays the top 10 countries by population for the year 2000, using horizontal bars to facilitate comparison. Built with React and SVG, the visualization renders population values on a linear scale, with formatted tick labels (e.g., "1.2B") for readability. The code leverages D3.js's `scaleBand`, `scaleLinear`, `max`, and `format` functions for layout and number formatting, while the data is fetched and processed from a CSV file using D3's `csv` method. The chart includes clear axis labels and a title, all styled with CSS.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes