🌍 Public
Viewing a saved revision (read-only)
3c8b30d35ed54a9ebe3588ea485e8df7
Bar Chart assignment
This bar chart shows average monthly sales trends across a year, with each bar representing a month’s sales value from the CSV dataset. The visualization aggregates and displays repeated monthly entries as individual bars, making seasonal patterns and overall growth apparent. Built with D3.js v7, the code loads data via `d3.csv`, maps values using `d3.scaleBand` and `d3.scaleLinear`, and renders the chart as an SVG. Axes are added with `d3.axisBottom` and `d3.axisLeft`, and the chart is titled “Average Monthly Sales Bar Chart” with a rotated x-axis label for readability.
AI-generated description