Skip to main content
100%

Activity 6-Task 3

✓ Published0🌍 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.
MIT Licensed

Similar vizzes