Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6-Task 3

Public visualization

Viewing a saved revision (read-only)

41ac1d129798465dafb0b35fad1f806c

Activity 6-Task 3

0 stars0🌍 Public
Ppravallikachowdary16518@gmail.com
Last edited Apr 17, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example presents a stacked bar chart that visualizes the religious demographics of various countries, using population as the quantitative value and religion as the categorical color scale. The chart employs D3.js version 7.8.5, leveraging its `scaleLinear`, `scaleBand`, `flatRollup`, and `stack` APIs to aggregate and structure the data from a CSV file. The visualization includes interactive hover effects on the legend, which highlights corresponding bars in the chart, and the axes are rendered using the `@curran/responsive-axes` module.

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.