Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 2

Public visualization

Question 2

0 stars0🌍 Public
Ppavanbellam@my.unt.edu
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This example shows fruit sales across three regions as a horizontal stacked bar chart, with each bar segmented by region and color-coded via a legend. It loads data from a CSV file using d3.csv, parses numeric values, and builds the visualization with d3.stack, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the quantitative x-axis. The SVG rendering uses d3.axisLeft and d3.axisBottom for axes, while d3.scaleOrdinal assigns distinct colors to each region.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed