Skip to main content
100%

Activity7Task1.2_2010Data

✓ Published0🌍 Public
HHemanthh81
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Hello VizHub

This bar chart displays the population of the top 10 countries in 2010, sourced from a CSV file loaded via `d3.csv`. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with population values formatted using `d3.format`. Bars are rendered as SVG `<rect>` elements with built-in tooltips showing the formatted population. The visualization is built with React, using reusable axis and mark components, and styled with green bars and blue axis 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