Skip to main content
100%

Activity-8_Task - 1

✓ Published0🌍 Public
Hharipadmavathim2023@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

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 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