Shish's barchart- ice6
✓ Published0🌍 Public
This bar chart shows the average sleep duration for various occupations, with each bar colored distinctly using D3’s `schemeTableau10`. The data is read from a CSV file via `d3.csv`, grouped by occupation with `d3.group`, and aggregated with `d3.mean`. The visualization is built using D3 v7’s SVG rendering, with a band scale (`d3.scaleBand`) for categories and a linear scale for the y-axis. Axis labels are rotated for readability, and the chart is rendered inside a styled HTML container.
AI-generated descriptionMIT Licensed