Activity_6_Question_1.1
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed