Skip to main content
100%

Fork of Activity6_Question 1.2

✓ Published1🌍 Public
Aajaykumarseelam@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 5, 2024

This example displays a horizontal bar chart comparing the populations of 20 countries for the year 2010, using a bright green fill for the bars. The React application loads data from a remote CSV file via `d3.csv` and renders the visualization as an SVG. It uses D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with custom `AxisBottom`, `AxisLeft`, and `Marks` components. A tooltip showing the population in billions appears on hover, driven by the `<title>` element within each bar.

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.
  • bar chart by using the “Activity6_population” for 20 countries in year 2010
MIT Licensed

Similar vizzes