Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7Task1.2_2010Data

Public visualization

Activity7Task1.2_2010Data

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed