Varun_6_Tutorial1
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2020 population data for 30 countries, sorted by country name. It uses React with SVG rendering through D3 v5, employing D3’s `scaleBand`, `scaleLinear`, `csv` parser, and `format` for axis labels. The axes are custom components (AxisBottom and AxisLeft), and bars are drawn as `<rect>` elements with tooltips using `<title>`. Data is loaded asynchronously via a remote CSV URL, and the chart is styled with a Poppins font and minimal styling.
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