Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Task_8_Q1_2

Public visualization

Fork of Task_8_Q1_2

0 stars0🌍 Public
YYeshwanth963@gmail.com
Last edited Apr 8, 2024
Created on Apr 8, 2024
Forked from Task_8_Q1_2

This example presents a horizontal bar chart comparing the 2010 populations of 20 countries. The bars are rendered as green SVG rectangles. The chart is built using React, with D3.js v5 providing the `scaleBand` and `scaleLinear` functions for axis scaling, and the `csv` function to load data from a GitHub-hosted CSV file. Custom ES6 module components handle the axes and marks, with the x-axis formatting using D3's `format` API to abbreviate large numbers to billions. Population values are preprocessed by multiplying the raw data by 1000.

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