Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Hhemanthmaddila13@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population data for 20 countries in 2010, with country names on the y-axis and population values on the x-axis. The visualization uses React components to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for positioning and scaling. Data is loaded asynchronously from a CSV file via `d3.csv`, and each bar includes a native `<title>` element for tooltip display. Axis ticks and labels are generated through custom React components, with numbers formatted using `d3.format`.

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