Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6 Task-1

Public visualization

Viewing a saved revision (read-only)

67463ae01ca14b30b659a422b799736c

Activity6 Task-1

0 stars0🌍 Public
Ssrilekhasridasyam@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This bar chart displays the population of various countries for the year 2020, with countries listed on the y-axis and their population values on the x-axis. The data is loaded from a remote CSV file via D3's `csv` function, with the population values multiplied by 1000. The visualization is rendered as an SVG using React, with D3's `scaleBand` and `scaleLinear` for axis scaling. Horizontal bars are generated as `rect` elements in the `Marks` component, and tooltips using the `title` element show 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.