Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Question1.1

Public visualization

Viewing a saved revision (read-only)

65478394c3594b14954198be642134c7

Activity6-Question1.1

0 stars0🌍 Public
Aaashishvinayvasala@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This horizontal bar chart displays the population of ten countries for the year 2000, ordered along the y-axis with bar lengths encoding values on a linear scale. The visualization is built with React, using D3 v5’s `scaleBand` and `scaleLinear` for layout, and renders SVG rectangles via the `Marks` component. Axes are generated with custom `AxisBottom` and `AxisLeft` components, formatting tick labels with `format('.2s')` to abbreviate large numbers. Data is loaded asynchronously from a CSV file using D3’s `csv` parser.

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.