Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_question1

Public visualization

Activity 6_question1

0 stars0🌍 Public
Ccharishmakalyanapu@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024

This example displays a horizontal bar chart of the top 10 countries by population in 2000, using red bars on a white background. The visualization is rendered as an SVG within a React application, using D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with tick labels formatted via `format('.2s')`. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, and the chart includes axis labels and a title.

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