Skip to main content
100%

Activy6-Task3

✓ Published1🌍 Public
Ppravallikachowdary16518@gmail.com
Last edited Apr 17, 2024
Created on Apr 17, 2024

This stacked bar chart displays the religious composition of populations across the top 20 countries, with each bar segment representing a religion’s population in millions. A color legend allows interactive highlighting: hovering over a religion dims other segments in both the chart and legend. The visualization uses D3’s `flatRollup`, `stack`, `scaleBand`, and `scaleLinear` APIs to structure the data and render the bars, while a custom `colorLegend` module manages the hover interactions. Population data comes from the included CSV file, and the chart is responsive via the `@curran/responsive-axes` library.

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