Skip to main content
100%

Activity 6_Task1

✓ Published0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Activity 6_Task1

This example presents a horizontal bar chart comparing the populations of various countries in 2020, sourced from a CSV file. Rendered as an SVG within React, it uses D3.js modules to manage data processing and scales: `scaleBand` positions the country names on the y-axis, while `scaleLinear` maps population values to the x-axis. Custom ES6 modules (`AxisBottom`, `AxisLeft`, `Marks`) draw the ticks, labels, and bars, with a "POPULATION-2020" footer label. The code imports D3 from UNPKG, demonstrating modular integration.

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