Skip to main content
100%

Barchart

✓ Published0🌍 Public
Ssriram.official9@gmail.com
Last edited Mar 18, 2024
Created on Mar 18, 2024
Forked from Simple Bar Chart

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 description
MIT Licensed

Similar vizzes