Skip to main content
100%

Activity6_Task1

✓ Published0🌍 Public
Vvankayalapatimounika2000@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from task-2

This bar chart displays the 2020 population estimates for 30 countries, arranged vertically with bars extending horizontally from a shared origin. The visualization uses a React component with D3 scale functions (`scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis), rendering SVG rectangles via the custom `Marks` component. Data loads asynchronously from a CSV file using D3’s `csv` parser, with axis ticks formatted using `format('.2s')` to abbreviate large numbers. A tooltip appears on each bar through an SVG `<title>` element.

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