π Public
Activity6_Question1
This example shows a horizontal bar chart of population figures for ten countries in the year 2000. The chart uses React with D3 v5, rendering SVG elements through JSX components. It loads CSV data via d3.csv, uses scaleBand for the categorical y-axis and scaleLinear for the numeric x-axis, and formats tick labels with d3.format. The bars and axes are built with custom React components, and tooltips display the population value for each country.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed
Comments
Sign in to join the discussion.