Skip to main content
100%

srinivas tutorial1

✓ Published0🌍 Public
SSrinivasAbburi@my.unt.edu
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This horizontal bar chart displays the 2020 population estimates for 30 countries, with each bar representing a country’s total population. The visualization uses D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering the bars as SVG rectangles via React components. The data is loaded from a remote CSV using D3’s `csv`, and tick labels are formatted with D3’s `format` function, converting values like “1.2G” to “1.2B”. Axes and marks are generated through custom ES6 modules, with tooltips provided by SVG `<title>` elements.

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