Skip to main content
100%

Activity_6_Question_1.1

✓ Published0🌍 Public
Vvarshithainaganti@gmail.com
Last edited Oct 20, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This horizontal bar chart displays the population of ten countries for the year 2000, using a logless linear scale. Built with React and rendered as an SVG, it imports D3 v5 functions like `scaleBand`, `scaleLinear`, and `format` to position bars and axes. The chart loads data from a CSV file, uses a custom `useData` hook, and includes separate modules for the bottom axis, left axis, and rectangular marks. Hovering over a bar reveals a native tooltip showing the formatted population value, while axis ticks are styled with blue lines.

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