Skip to main content
100%

activity-6_Task 1

✓ Published0🌍 Public
1180030215cse@gmail.com
Last edited Oct 20, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This horizontal bar chart displays the population of ten countries for the year 2020, drawn as SVG rectangles using React. The chart uses D3 v5’s `scaleBand` and `scaleLinear` for axes and scales, with `format('.2s')` for tick labels. Data is loaded from a CSV file via D3’s `csv` function, then rendered with custom `AxisBottom`, `AxisLeft`, and `Marks` components.

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