Barchart
✓ Published0🌍 Public
This visualization displays iPhone sales data as a set of grouped bar charts, with each chart representing a different year and bars showing sales figures across countries. The code uses D3 v7 to fetch data from a CSV file, then creates separate SVG charts per year, employing `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the quantitative y-axis. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, while hover effects change bar fill color to orange via CSS. The rendering approach is SVG, with a clean layout featuring dashed gridlines and clearly labeled axes.
AI-generated descriptionMIT Licensed