Skip to main content
100%

Activity6Question1.1

✓ Published0🌍 Public
Ssatishvelaga02@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

A horizontal bar chart displays the populations of twenty countries in 2010, using D3's `scaleBand` for the categorical country axis and `scaleLinear` for the quantitative population axis. The chart is rendered as an SVG with React, where the `Marks` component draws green rectangles with tooltips showing formatted values via D3's `format` function. The data is loaded from a GitHub-hosted CSV using `d3.csv`, and custom `AxisBottom` and `AxisLeft` components generate blue tick lines and styled tick labels.

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