Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Ssairamisetti3829@gmail.com
Last edited Oct 16, 2024
Created on Oct 16, 2024
Forked from Activity 6

This example shows a horizontal bar chart comparing country populations for 2020, with country names on the y-axis and population values on the x-axis. It loads CSV data dynamically and renders SVG bars using React components. The code builds scales with `d3.scaleBand` and `d3.scaleLinear`, formats tick labels with `d3.format`, and creates custom axis components like `AxisLeft` and `AxisBottom` that generate tick marks and text elements.

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