Skip to main content
100%

Activity6_Task1_2

✓ Published0🌍 Public
Hhemalathayella@my.unt.edu
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Activity6_Task1

This example shows a horizontal bar chart of national populations in 2010, with bars representing population size and a green fill color. The chart loads data from a CSV file via `d3.csv`, uses `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the quantitative population axis, and formats tick labels with `d3.format`. It is built with React, where local components `AxisBottom`, `AxisLeft`, and `Marks` define SVG elements, and tooltips reveal exact values via an HTML `<title>` element. The visualization is rendered as an SVG within a React app, using D3 v5 loaded from UNPKG.

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