🌍 Public
Viewing a saved revision (read-only)
ab852c1867cd4ab1a901def67ebd8ae6
sales comparision by segment
A horizontal bar chart compares sales across product sub-categories for three customer segments. The visualization uses D3.js v5 to load data from a CSV file and render SVG rectangles, with each segment represented as a separate category. Sales values scale linearly on the x-axis, while sub-categories are positioned on a band scale for the y-axis. The chart includes axes generated with `d3.axisLeft` and `d3.axisBottom`, and the code filters and aggregates the data by segment and sub-category.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.