Skip to main content
100%

QUESTION-1.2(TASK-1)

✓ Published0🌍 Public
Vvenkataravitarunelisetty@my.unt.edu
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the top 20 countries by 2010 population, with bars sorted in descending order and labeled on the y-axis. The visualization uses React with D3 v5 scaleBand and scaleLinear for positioning, while CSV data is fetched from a GitHub raw URL. SVG rendering is handled through React components (AxisBottom, AxisLeft, Marks), with axis ticks styled via CSS and formatted using D3’s format('.2s') to abbreviate values in billions.

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