Skip to main content
100%

Q1_Activity8_VaishaliKonda

✓ Published0🌍 Public
Vvaishalireddy55555@gmail.com
Last edited Apr 15, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A bar chart displays the population of ten countries in the year 2000, sourced from a CSV file loaded via d3.csv. The visualization uses React to render SVG elements, with d3.scaleBand and d3.scaleLinear mapping categorical country names and quantitative population values. The d3.format function formats tick labels using SI notation, replacing 'G' with 'B'. Tooltips, implemented with SVG `<title>` elements, show the exact population value on hover. Axes and bars are styled with CSS, and the chart is rendered within a fixed 960x500 viewport.

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