Skip to main content
100%

Activity6_Question1.1

✓ Published0🌍 Public
JJayanth Reddy Sripathi
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task1

This example presents a horizontal bar chart comparing the population of ten countries in the year 2000. It uses D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with the data loaded from a remote CSV file via D3's `csv` function. Two local ES6 modules, `AxisBottom` and `AxisLeft`, render the axes, while the `Marks` module draws green `rect` elements with interactive tooltips. The visualization is built with React, rendering to SVG, and includes a custom tick formatter that converts values to billions.

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