Skip to main content
100%

activity6_question2.1

✓ Published0🌍 Public
Aaparnachalumuri@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example presents a stacked bar chart that compares the proportion of customer ratings across six technology product categories, including Smartphones, Laptops, and Tablets. The chart shows how ratings are distributed across six defined score ranges, from below 5.0 to above 9.0. Built with D3.js v7, the visualization loads data from a local CSV file and uses `d3.csv` to parse it. The chart employs `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis, with `d3.stack` to create the stacked segments and `d3.schemeSet2` for the color palette.

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