Jaynica nunna
✓ Published0🌍 Public
This example presents a horizontal bar chart titled “POPULATION-2010,” visualizing the 2010 population data for 20 countries. The chart uses a Categorical color scheme with green bars and blue axis lines, with country names on the y-axis and population totals on the x-axis formatted using D3’s `format` function (e.g., “B” for billions). Built with React and D3 v5, it loads data from a CSV file via the `d3.csv` parser, then renders an SVG using `scaleBand` for categorical y-positions and `scaleLinear` for the numeric x-axis. Tooltips display each bar’s exact value, and the chart is part of a VizHub example demonstrating local ES6 module imports and D3 integration.
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