Skip to main content
100%

Question-2(Task-2)

✓ Published0🌍 Public
Vvenkataravitarunelisetty@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

A stacked bar chart displays monthly fruit sales for apples, bananas, and carrots, with each bar normalized to represent 100% of total quantity. The chart uses horizontal bars where segment widths show each fruit's proportional contribution, and hovering reveals precise quantities via a tooltip. The visualization is built with D3.js (v7), using `d3.csv` to load data, `d3.stack` for series stacking, `d3.scaleLinear` and `d3.scaleBand` for axes, and SVG rendering. Data comes from the fruitsales.csv file.

AI-generated description

Analysis of Fruit Sales by Month

This stacked bar chart visualizes the monthly sales quantity of different fruits, including apples, bananas, and carrots. The aim is to provide an overview of fruit sales trends over time. Each bar represents a month, with segments indicating the quantity of each fruit sold. By hovering over each segment, you can view the exact quantity of fruit sold for that month. Total sales quantity is normalized to 1 for each month, representing 100%. This visualization helps to analyze the distribution of fruit sales across different months and provides insights into seasonal trends or variations.

MIT Licensed

Similar vizzes