Activity-8_Task - 1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 30 countries in 2020, using a green fill for each bar on a white background. The React application imports D3 functions such as `scaleBand`, `scaleLinear`, `max`, and `format` to compute scales and format tick labels, with the data loaded from a CSV file via `d3.csv`. The chart renders as an SVG, with custom components for the bottom axis (`AxisBottom`), left axis (`AxisLeft`), and rectangular marks (`Marks`), each using D3's scale and tick utilities to position elements and generate tooltips.
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