Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Task8_Tutorial(1.2)

Public visualization

Fork of Task8_Tutorial(1.2)

0 stars0🌍 Public
Jjyothirmai318@gmail.com
Last edited Apr 7, 2024
Created on Apr 7, 2024

This example shows a horizontal bar chart of the 20 most populous countries in 2010, with country names on the y-axis and population counts on the x-axis. The visualization uses React to render SVG elements, with D3 v5 scaleBand and scaleLinear for axes and bars. Data is loaded from a CSV via d3.csv, and the code implements custom AxisBottom, AxisLeft, and Marks components to display the chart with blue tick lines and green bars.

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