Skip to main content
100%

Activity 7

✓ Published0🌍 Public
Vvineelaramulapalli32
Last edited Jul 16, 2023
Created on Jul 16, 2023

This example displays a horizontal bar chart of the top 20 countries by 2020 population, sourced from a CSV file. It renders SVG elements using React and D3 v5, with axes generated by custom AxisLeft and AxisBottom components that use d3.scaleBand and d3.scaleLinear. Population values are transformed from the '2010' column and formatted with d3.format. The visualization uses a green mark color and a Poppins font, with a loading state shown while data is fetched.

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