Skip to main content
100%

Activity 6_Task 1 Question 1.6

✓ Published0🌍 Public
Gguttavenkata745@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024

This example shows a horizontal bar chart of 2020 population estimates for the top 10 countries, with the y-axis listing country names and the x-axis measuring population in billions. It uses React with D3 v5, importing `scaleBand` and `scaleLinear` for scales, and renders SVG via React components. The chart loads CSV data from a GitHub repository using `d3.csv`, formats tick labels with `d3.format`, and each bar includes a `<title>` tooltip showing the formatted population value.

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