Skip to main content
100%

Task-8(Question-1.2)

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

This example displays a horizontal bar chart ranking the populations of the top 20 countries from a CSV dataset, with bars colored light green and axis lines in blue. It loads the data using D3’s `csv` function and renders the chart as SVG elements with React, using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The chart includes formatted tick labels that convert values like billions using D3’s `format` API, and each bar contains a native SVG `<title>` tooltip showing the 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.
MIT Licensed

Similar vizzes